Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ProcessVector Class Reference

#include <G4ProcessVector.hh>

Public Member Functions

 G4ProcessVector ()
 
 G4ProcessVector (size_t)
 
 G4ProcessVector (const G4ProcessVector &)
 
virtual ~G4ProcessVector ()
 
G4ProcessVectoroperator= (const G4ProcessVector &right)
 
G4bool operator== (const G4ProcessVector &right) const
 
G4int entries () const
 
G4int length () const
 
G4int size () const
 
G4int index (G4VProcess *aProcess) const
 
G4bool contains (G4VProcess *aProcess) const
 
G4bool insert (G4VProcess *aProcess)
 
G4bool insertAt (G4int i, G4VProcess *aProcess)
 
G4VProcessremoveAt (G4int i)
 
G4VProcessremoveLast ()
 
void clear ()
 
G4VProcess *const & operator[] (G4int i) const
 
G4VProcess *const & operator() (G4int i) const
 
G4VProcess *& operator[] (G4int i)
 
G4VProcess *& operator() (G4int i)
 

Protected Types

typedef std::vector< G4VProcess * > G4ProcVector
 

Protected Attributes

G4ProcVectorpProcVector
 

Detailed Description

Definition at line 46 of file G4ProcessVector.hh.

Member Typedef Documentation

typedef std::vector<G4VProcess*> G4ProcessVector::G4ProcVector
protected

Definition at line 100 of file G4ProcessVector.hh.

Constructor & Destructor Documentation

G4ProcessVector::G4ProcessVector ( )

Definition at line 41 of file G4ProcessVector.cc.

42 {
43  pProcVector = new G4ProcVector();
44 }
G4ProcVector * pProcVector
std::vector< G4VProcess * > G4ProcVector
G4ProcessVector::G4ProcessVector ( size_t  siz)
explicit

Definition at line 46 of file G4ProcessVector.cc.

47 {
48  pProcVector = new G4ProcVector(siz);
49 }
G4ProcVector * pProcVector
std::vector< G4VProcess * > G4ProcVector
G4ProcessVector::G4ProcessVector ( const G4ProcessVector right)

Definition at line 51 of file G4ProcessVector.cc.

52  :pProcVector(0)
53 {
54  pProcVector = new G4ProcVector();
55 
56  // copy all contents in pProcVector
57  //
58  G4ProcVector::iterator i;
59  for (i = right.pProcVector->begin(); i!= right.pProcVector->end(); ++i){
60  pProcVector->push_back(*i);
61  }
62 }
G4ProcVector * pProcVector
std::vector< G4VProcess * > G4ProcVector
G4ProcessVector::~G4ProcessVector ( )
virtual

Definition at line 66 of file G4ProcessVector.cc.

67 {
68  // delete pProcVector
69  //
70  if (pProcVector != 0 ){
71  pProcVector->clear();
72  delete pProcVector;
73  }
74 }
G4ProcVector * pProcVector

Member Function Documentation

void G4ProcessVector::clear ( )

Here is the caller graph for this function:

G4bool G4ProcessVector::contains ( G4VProcess aProcess) const

Here is the caller graph for this function:

G4int G4ProcessVector::entries ( ) const

Here is the caller graph for this function:

G4int G4ProcessVector::index ( G4VProcess aProcess) const
G4bool G4ProcessVector::insert ( G4VProcess aProcess)

Here is the caller graph for this function:

G4bool G4ProcessVector::insertAt ( G4int  i,
G4VProcess aProcess 
)

Here is the caller graph for this function:

G4int G4ProcessVector::length ( ) const

Here is the caller graph for this function:

G4VProcess* const& G4ProcessVector::operator() ( G4int  i) const
G4VProcess* & G4ProcessVector::operator() ( G4int  i)
G4ProcessVector & G4ProcessVector::operator= ( const G4ProcessVector right)

Definition at line 78 of file G4ProcessVector.cc.

79 {
80  if (this != &right){
81  // delete pProcVector
82  if (pProcVector != 0 ){
83  pProcVector->clear();
84  delete pProcVector;
85  }
86 
87  pProcVector = new G4ProcVector();
88 
89  // copy all contents in pProcVector
90  //
91  G4ProcVector::iterator i;
92  for (i = right.pProcVector->begin(); i!= right.pProcVector->end(); ++i){
93  pProcVector->push_back(*i);
94  }
95  }
96  return *this;
97 }
G4ProcVector * pProcVector
std::vector< G4VProcess * > G4ProcVector
G4bool G4ProcessVector::operator== ( const G4ProcessVector right) const
G4VProcess* const& G4ProcessVector::operator[] ( G4int  i) const
G4VProcess* & G4ProcessVector::operator[] ( G4int  i)
G4VProcess* G4ProcessVector::removeAt ( G4int  i)

Here is the caller graph for this function:

G4VProcess* G4ProcessVector::removeLast ( )

Here is the caller graph for this function:

G4int G4ProcessVector::size ( ) const

Member Data Documentation

G4ProcVector* G4ProcessVector::pProcVector
protected

Definition at line 102 of file G4ProcessVector.hh.


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