Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 *constoperator[] (G4int i) const
 
G4VProcess *constoperator() (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

◆ G4ProcVector

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

Definition at line 100 of file G4ProcessVector.hh.

Constructor & Destructor Documentation

◆ G4ProcessVector() [1/3]

G4ProcessVector::G4ProcessVector ( )

Definition at line 41 of file G4ProcessVector.cc.

42{
44}
G4ProcVector * pProcVector
std::vector< G4VProcess * > G4ProcVector

◆ G4ProcessVector() [2/3]

G4ProcessVector::G4ProcessVector ( size_t  siz)
explicit

Definition at line 46 of file G4ProcessVector.cc.

47{
48 pProcVector = new G4ProcVector(siz);
49}

◆ G4ProcessVector() [3/3]

G4ProcessVector::G4ProcessVector ( const G4ProcessVector right)

Definition at line 51 of file G4ProcessVector.cc.

52 :pProcVector(0)
53{
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}

◆ ~G4ProcessVector()

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}

Member Function Documentation

◆ clear()

void G4ProcessVector::clear ( )

◆ contains()

G4bool G4ProcessVector::contains ( G4VProcess aProcess) const

◆ entries()

◆ index()

G4int G4ProcessVector::index ( G4VProcess aProcess) const

◆ insert()

G4bool G4ProcessVector::insert ( G4VProcess aProcess)

◆ insertAt()

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

◆ length()

G4int G4ProcessVector::length ( ) const

◆ operator()() [1/2]

G4VProcess *& G4ProcessVector::operator() ( G4int  i)

◆ operator()() [2/2]

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

◆ operator=()

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
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}

◆ operator==()

G4bool G4ProcessVector::operator== ( const G4ProcessVector right) const

◆ operator[]() [1/2]

G4VProcess *& G4ProcessVector::operator[] ( G4int  i)

◆ operator[]() [2/2]

G4VProcess *const & G4ProcessVector::operator[] ( G4int  i) const

◆ removeAt()

G4VProcess * G4ProcessVector::removeAt ( G4int  i)

◆ removeLast()

G4VProcess * G4ProcessVector::removeLast ( )

◆ size()

Member Data Documentation

◆ pProcVector

G4ProcVector* G4ProcessVector::pProcVector
protected

Definition at line 102 of file G4ProcessVector.hh.

Referenced by G4ProcessVector(), operator=(), and ~G4ProcessVector().


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