class
PlaceRep
(Return to index)
Representation of a place within a beam line or sequence.
This representation holds data to keep track wether the place was
already passed when tracking through the line. The place may be
one of the following:
- "#S", the start of the beam line.
- "#E", the end of the beam line.
- "SELECTED", all selected positions (flag set in FlaggedElmPtr).
- name[occurrence]::name[occurrence]..., denoting a specific place.
Type: |
Instantiable |
Include file: |
./AbstractObjects/PlaceRep.hh |
Synopsis (including inherited members):
- Public members:
-
PlaceRep
()
;
-
PlaceRep
(const string&)
;
-
PlaceRep
(const PlaceRep&)
;
-
~PlaceRep
()
;
-
const PlaceRep& operator=
(const PlaceRep&)
;
-
void append
(const string&,int)
;
-
void initialize
()
;
-
void enter
(const FlaggedElmPtr&)const
;
-
void leave
(const FlaggedElmPtr&)const
;
-
bool isActive
()const
;
-
bool isSelected
()const
;
-
std::ostream& print
(std::ostream&)const
;
-
typedef std::vector<std::pair<string,int> > Data
;
Documentation:
- Public members:
-
PlaceRep
()
;
- Default constructor.
Constructs undefined place.
-
PlaceRep
(const string&)
;
- Construct default place.
Used for places like "#S", "#E", "SELECTED".
-
void append
(const string&,int)
;
- Add a name/occurrence pair.
-
void enter
(const FlaggedElmPtr&)const
;
- Enter an element or line.
Sets the internal state to active, when the specified place is
entered.
-
void initialize
()
;
- Initialise data for search.
Sets the internal state to the beginning of the line.
-
bool isActive
()const
;
- Return status.
Returns true, if we are at the specified place.
-
bool isSelected
()const
;
- Return select flag.
Returns true, if the place has the value "SELECTED".
-
void leave
(const FlaggedElmPtr&)const
;
- Leave an element or line.
Sets the internal state to inactive, when the specified place is
left.
-
std::ostream& print
(std::ostream&)const
;
- Print in input format.
Documentation generated by fci on Mon Feb 7 12:30:05 2000