OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
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::RangeRep ( )

Default constructor.

Definition at line 28 of file RangeRep.cpp.

RangeRep::RangeRep ( PlaceRep f,
PlaceRep l 
)

Constructor from two given places.

Definition at line 38 of file RangeRep.cpp.

RangeRep::RangeRep ( const RangeRep rep)

Definition at line 33 of file RangeRep.cpp.

RangeRep::~RangeRep ( )

Definition at line 43 of file RangeRep.cpp.

Member Function Documentation

void RangeRep::enter ( const FlaggedElmPtr fep) const

Enter an element or line.

Definition at line 71 of file RangeRep.cpp.

References PlaceRep::enter(), first, fullRange, PlaceRep::isActive(), last, and status.

Referenced by MSplit::getColumn(), Survey::getColumn(), Aperture::getColumn(), Twiss::getColumn(), and RangeSelector::visitFlaggedElmPtr().

Here is the call graph for this function:

void RangeRep::initialize ( )

Initialise data for search.

Definition at line 55 of file RangeRep.cpp.

References first, fullRange, PlaceRep::initialize(), last, and status.

Referenced by RangeSelector::execute(), MSplit::getColumn(), Survey::getColumn(), Aperture::getColumn(), and Twiss::getColumn().

Here is the call graph for this function:

bool RangeRep::isActive ( ) const
void RangeRep::leave ( const FlaggedElmPtr fep) const

Leave an element or line.

Definition at line 81 of file RangeRep.cpp.

References first, fullRange, PlaceRep::isActive(), last, PlaceRep::leave(), and status.

Referenced by MSplit::getColumn(), Survey::getColumn(), Aperture::getColumn(), Twiss::getColumn(), and RangeSelector::visitFlaggedElmPtr().

Here is the call graph for this function:

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

Definition at line 47 of file RangeRep.cpp.

References first, fullRange, and last.

void RangeRep::print ( std::ostream &  os) const

Print in input format.

Definition at line 91 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

PlaceRep RangeRep::first
private

Definition at line 71 of file RangeRep.h.

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

bool RangeRep::fullRange
private

Definition at line 75 of file RangeRep.h.

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

PlaceRep RangeRep::last
private

Definition at line 72 of file RangeRep.h.

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

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: