class
RangeRep
(Return to index)
Representation of a range within a beam line or sequence.
This representation holds two places, defining the beginning and ending
of the range. It keeps track wether we are before, within, or after
the range.
The value may also be "FULL", denoting the complete beam line.
Type: |
Instantiable |
Include file: |
./AbstractObjects/RangeRep.hh |
Synopsis (including inherited members):
- Public members:
-
RangeRep
()
;
-
RangeRep
(PlaceRep&,PlaceRep&)
;
-
RangeRep
(const RangeRep&)
;
-
~RangeRep
()
;
-
const RangeRep& operator=
(const RangeRep&)
;
-
void initialize
()
;
-
bool isActive
()const
;
-
void enter
(const FlaggedElmPtr&)const
;
-
void leave
(const FlaggedElmPtr&)const
;
-
std::ostream& print
(std::ostream&)const
;
Documentation:
- Public members:
-
RangeRep
()
;
- Default constructor.
Construct range for full line (value "FULL").
-
RangeRep
(PlaceRep&,PlaceRep&)
;
- Constructor from two given places.
-
void enter
(const FlaggedElmPtr&)const
;
- Enter an element or line.
Sets the internal state to active, when we enter the specified range.
-
void initialize
()
;
- Initialise data for search.
Sets the internal state to the beginning of the beam line.
-
bool isActive
()const
;
- Test for active range.
Return true, if we are within the specified range.
-
void leave
(const FlaggedElmPtr&)const
;
- Leave an element or line.
Sets the internal state to inactive, when we leave the specified range.
-
std::ostream& print
(std::ostream&)const
;
- Print in input format.
Documentation generated by fci on Mon Feb 7 12:30:06 2000