BDSLine Class Reference

a class that hold multiple accelerator components More...

#include <BDSLine.hh>

Inheritance diagram for BDSLine:

Inheritance graph
[legend]
Collaboration diagram for BDSLine:

Collaboration graph
[legend]

Public Types

typedef std::vector< BDSAcceleratorComponent
* >::iterator 
BDSLineIterator
 define iterator for ease of reading

Public Member Functions

 BDSLine (G4String name)
 ~BDSLine ()
void addComponent (BDSAcceleratorComponent *component)
BDSLineIterator begin ()
BDSLineIterator end ()
virtual void Initialise ()

Private Member Functions

virtual void BuildContainerLogicalVolume ()
 define pure virtual method

Private Attributes

std::vector< BDSAcceleratorComponent * > line
 vector

Detailed Description

a class that hold multiple accelerator components

Not physically used in Geant4, only as placeholder. Therefore virtual methods are not specified, but could be in the future.

Memory of components is not owned

Definition at line 16 of file BDSLine.hh.


Member Function Documentation

void BDSLine::Initialise (  )  [virtual]

Override the BDSAccelerator::Initialise() function to loop over the line and call that function belonging to each member

Reimplemented from BDSAcceleratorComponent.

Definition at line 16 of file BDSLine.cc.

References begin(), and end().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7