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

#include <G4ProcTblElement.hh>

Public Member Functions

 G4ProcTblElement (const G4ProcTblElement &right)
 
 G4ProcTblElement (G4VProcess *aProcess)
 
 ~G4ProcTblElement ()
 
G4ProcTblElementoperator= (const G4ProcTblElement &right)
 
G4int operator== (const G4ProcTblElement &right) const
 
G4int operator!= (const G4ProcTblElement &right) const
 

Protected Types

typedef std::vector
< G4ProcessManager * > 
G4ProcMgrVector
 

Protected Member Functions

 G4ProcTblElement ()
 
G4int Length () const
 
void Insert (G4ProcessManager *aProcMgr)
 
void Remove (G4ProcessManager *aProcMgr)
 
G4VProcessGetProcess () const
 
const G4StringGetProcessName () const
 
G4ProcessManagerGetProcessManager (G4int index) const
 
const G4ProcMgrVectorGetProcMgrVector () const
 
G4int GetIndex (const G4ProcessManager *pManager) const
 
G4bool Contains (const G4ProcessManager *pManager) const
 

Friends

class G4ProcessTable
 

Detailed Description

Definition at line 53 of file G4ProcTblElement.hh.

Member Typedef Documentation

typedef std::vector<G4ProcessManager*> G4ProcTblElement::G4ProcMgrVector
protected

Definition at line 77 of file G4ProcTblElement.hh.

Constructor & Destructor Documentation

G4ProcTblElement::G4ProcTblElement ( )
protected

Definition at line 42 of file G4ProcTblElement.cc.

43  :pProcess(0),pProcMgrVector(0)
44 {
45 }
G4ProcTblElement::G4ProcTblElement ( const G4ProcTblElement right)

Definition at line 55 of file G4ProcTblElement.cc.

56  :pProcess(0),pProcMgrVector(0)
57 {
58  *this = right;
59 }
G4ProcTblElement::G4ProcTblElement ( G4VProcess aProcess)

Definition at line 48 of file G4ProcTblElement.cc.

48  :
49  pProcess(aProcess)
50 {
51  pProcMgrVector = new G4ProcMgrVector();
52 }
std::vector< G4ProcessManager * > G4ProcMgrVector
G4ProcTblElement::~G4ProcTblElement ( )

Definition at line 63 of file G4ProcTblElement.cc.

64 {
65  if (pProcMgrVector != 0) {
66  pProcMgrVector->clear();
67  delete pProcMgrVector;
68  }
69 }

Member Function Documentation

G4bool G4ProcTblElement::Contains ( const G4ProcessManager pManager) const
protected

Here is the caller graph for this function:

G4int G4ProcTblElement::GetIndex ( const G4ProcessManager pManager) const
protected
G4VProcess* G4ProcTblElement::GetProcess ( ) const
protected

Here is the caller graph for this function:

G4ProcessManager* G4ProcTblElement::GetProcessManager ( G4int  index) const
protected

Here is the caller graph for this function:

const G4String& G4ProcTblElement::GetProcessName ( ) const
protected

Here is the caller graph for this function:

const G4ProcMgrVector* G4ProcTblElement::GetProcMgrVector ( ) const
inlineprotected

Definition at line 89 of file G4ProcTblElement.hh.

90  { return pProcMgrVector;}
void G4ProcTblElement::Insert ( G4ProcessManager aProcMgr)
protected

Here is the caller graph for this function:

G4int G4ProcTblElement::Length ( ) const
protected

Here is the caller graph for this function:

G4int G4ProcTblElement::operator!= ( const G4ProcTblElement right) const

Definition at line 100 of file G4ProcTblElement.cc.

101 {
102  return (this != &right);
103 }
G4ProcTblElement & G4ProcTblElement::operator= ( const G4ProcTblElement right)

Definition at line 73 of file G4ProcTblElement.cc.

74 {
75  if (this != &right) {
76  pProcess = right.pProcess;
77  // copy all contents in pProcMgrVector
78  if (pProcMgrVector != 0) {
79  pProcMgrVector->clear();
80  delete pProcMgrVector;
81  }
82  pProcMgrVector = new G4ProcMgrVector();
83  G4ProcMgrVector::iterator i;
84  for (i = right.pProcMgrVector->begin(); i!= right.pProcMgrVector->end(); ++i) {
85  pProcMgrVector->push_back(*i);
86  }
87  }
88  return *this;
89 }
std::vector< G4ProcessManager * > G4ProcMgrVector
G4int G4ProcTblElement::operator== ( const G4ProcTblElement right) const

Definition at line 93 of file G4ProcTblElement.cc.

94 {
95  return (this == &right);
96 }
void G4ProcTblElement::Remove ( G4ProcessManager aProcMgr)
protected

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4ProcessTable
friend

Definition at line 56 of file G4ProcTblElement.hh.


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