|
OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
Representation of a range within a beam line or sequence. More...
#include <RangeRep.h>

Public Member Functions | |
| RangeRep () | |
| Default constructor. More... | |
| RangeRep (PlaceRep &f, PlaceRep &l) | |
| Constructor from two given places. More... | |
| RangeRep (const RangeRep &) | |
| ~RangeRep () | |
| const RangeRep & | operator= (const RangeRep &) |
| void | initialize () |
| Initialise data for search. More... | |
| bool | isActive () const |
| Test for active range. More... | |
| void | enter (const FlaggedElmPtr &) const |
| Enter an element or line. More... | |
| void | leave (const FlaggedElmPtr &) const |
| Leave an element or line. More... | |
| void | print (std::ostream &os) const |
| Print in input format. More... | |
Private Attributes | |
| PlaceRep | first |
| PlaceRep | last |
| bool | fullRange |
| bool | status |
Representation of a range within a beam line or sequence.
Definition at line 34 of file RangeRep.h.
| RangeRep::RangeRep | ( | ) |
Default constructor.
Definition at line 27 of file RangeRep.cpp.
Constructor from two given places.
Definition at line 37 of file RangeRep.cpp.
| RangeRep::RangeRep | ( | const RangeRep & | rep | ) |
Definition at line 32 of file RangeRep.cpp.
| RangeRep::~RangeRep | ( | ) |
Definition at line 42 of file RangeRep.cpp.
| void RangeRep::enter | ( | const FlaggedElmPtr & | fep | ) | const |
Enter an element or line.
Definition at line 70 of file RangeRep.cpp.
References PlaceRep::enter(), first, fullRange, PlaceRep::isActive(), last, and status.
Referenced by RangeSelector::visitFlaggedElmPtr().

| void RangeRep::initialize | ( | ) |
Initialise data for search.
Definition at line 54 of file RangeRep.cpp.
References first, fullRange, PlaceRep::initialize(), last, and status.
Referenced by RangeSelector::execute().

| bool RangeRep::isActive | ( | ) | const |
Test for active range.
Definition at line 65 of file RangeRep.cpp.
References status.
Referenced by RangeSelector::handleElement(), and Selector::handleElement().
| void RangeRep::leave | ( | const FlaggedElmPtr & | fep | ) | const |
Leave an element or line.
Definition at line 80 of file RangeRep.cpp.
References first, fullRange, PlaceRep::isActive(), last, PlaceRep::leave(), and status.
Referenced by RangeSelector::visitFlaggedElmPtr().

Definition at line 46 of file RangeRep.cpp.
| void RangeRep::print | ( | std::ostream & | os | ) | const |
Print in input format.
Definition at line 90 of file RangeRep.cpp.
References first, fullRange, last, and PlaceRep::print().
Referenced by operator<<().

|
private |
Definition at line 71 of file RangeRep.h.
Referenced by enter(), initialize(), leave(), operator=(), and print().
|
private |
Definition at line 75 of file RangeRep.h.
Referenced by enter(), initialize(), leave(), operator=(), and print().
|
private |
Definition at line 72 of file RangeRep.h.
Referenced by enter(), initialize(), leave(), operator=(), and print().
|
mutableprivate |
Definition at line 78 of file RangeRep.h.
Referenced by enter(), initialize(), isActive(), and leave().