OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Private Attributes | List of all members
RangeRep Class Reference

Representation of a range within a beam line or sequence. More...

#include <RangeRep.h>

Collaboration diagram for RangeRep:
Collaboration graph
[legend]

Public Member Functions

 RangeRep ()
 Default constructor. More...
 
 RangeRep (PlaceRep &f, PlaceRep &l)
 Constructor from two given places. More...
 
 RangeRep (const RangeRep &)
 
 ~RangeRep ()
 
const RangeRepoperator= (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
 

Detailed Description

Representation of a range within a beam line or sequence.

Definition at line 34 of file RangeRep.h.

Constructor & Destructor Documentation

◆ RangeRep() [1/3]

RangeRep::RangeRep ( )

Default constructor.

Definition at line 27 of file RangeRep.cpp.

◆ RangeRep() [2/3]

RangeRep::RangeRep ( PlaceRep f,
PlaceRep l 
)

Constructor from two given places.

Definition at line 37 of file RangeRep.cpp.

◆ RangeRep() [3/3]

RangeRep::RangeRep ( const RangeRep rep)

Definition at line 32 of file RangeRep.cpp.

◆ ~RangeRep()

RangeRep::~RangeRep ( )

Definition at line 42 of file RangeRep.cpp.

Member Function Documentation

◆ enter()

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().

Here is the call graph for this function:

◆ initialize()

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().

Here is the call graph for this function:

◆ isActive()

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().

◆ leave()

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().

Here is the call graph for this function:

◆ operator=()

const RangeRep & RangeRep::operator= ( const RangeRep rep)

Definition at line 46 of file RangeRep.cpp.

References first, fullRange, and last.

◆ print()

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<<().

Here is the call graph for this function:

Member Data Documentation

◆ first

PlaceRep RangeRep::first
private

Definition at line 71 of file RangeRep.h.

Referenced by enter(), initialize(), leave(), operator=(), and print().

◆ fullRange

bool RangeRep::fullRange
private

Definition at line 75 of file RangeRep.h.

Referenced by enter(), initialize(), leave(), operator=(), and print().

◆ last

PlaceRep RangeRep::last
private

Definition at line 72 of file RangeRep.h.

Referenced by enter(), initialize(), leave(), operator=(), and print().

◆ status

bool RangeRep::status
mutableprivate

Definition at line 78 of file RangeRep.h.

Referenced by enter(), initialize(), isActive(), and leave().


The documentation for this class was generated from the following files: