Geant4  10.02.p03
G4SmartVoxelNode Class Reference

#include <G4SmartVoxelNode.hh>

Collaboration diagram for G4SmartVoxelNode:

Public Member Functions

 G4SmartVoxelNode (G4int pSlice=0)
 
 ~G4SmartVoxelNode ()
 
G4int GetVolume (G4int pVolumeNo) const
 
void Insert (G4int pVolumeNo)
 
G4int GetNoContained () const
 
G4int GetCapacity () const
 
void Reserve (G4int noSlices)
 
void Shrink ()
 
G4int GetMaxEquivalentSliceNo () const
 
void SetMaxEquivalentSliceNo (G4int pMax)
 
G4int GetMinEquivalentSliceNo () const
 
void SetMinEquivalentSliceNo (G4int pMin)
 
G4bool operator== (const G4SmartVoxelNode &v) const
 

Private Attributes

G4int fminEquivalent
 
G4int fmaxEquivalent
 
G4SliceVector fcontents
 

Detailed Description

Definition at line 59 of file G4SmartVoxelNode.hh.

Constructor & Destructor Documentation

◆ G4SmartVoxelNode()

G4SmartVoxelNode::G4SmartVoxelNode ( G4int  pSlice = 0)
inline

Definition at line 63 of file G4SmartVoxelNode.hh.

63  : fminEquivalent(pSlice),
64  fmaxEquivalent(pSlice) {}
Here is the call graph for this function:

◆ ~G4SmartVoxelNode()

G4SmartVoxelNode::~G4SmartVoxelNode ( )

Definition at line 39 of file G4SmartVoxelNode.cc.

40 {
41 }
Here is the caller graph for this function:

Member Function Documentation

◆ GetCapacity()

G4int G4SmartVoxelNode::GetCapacity ( ) const
inline
Here is the caller graph for this function:

◆ GetMaxEquivalentSliceNo()

G4int G4SmartVoxelNode::GetMaxEquivalentSliceNo ( ) const
inline
Here is the caller graph for this function:

◆ GetMinEquivalentSliceNo()

G4int G4SmartVoxelNode::GetMinEquivalentSliceNo ( ) const
inline
Here is the caller graph for this function:

◆ GetNoContained()

G4int G4SmartVoxelNode::GetNoContained ( ) const
inline
Here is the caller graph for this function:

◆ GetVolume()

G4int G4SmartVoxelNode::GetVolume ( G4int  pVolumeNo) const
inline
Here is the caller graph for this function:

◆ Insert()

void G4SmartVoxelNode::Insert ( G4int  pVolumeNo)
inline
Here is the caller graph for this function:

◆ operator==()

G4bool G4SmartVoxelNode::operator== ( const G4SmartVoxelNode v) const

Definition at line 48 of file G4SmartVoxelNode.cc.

49 {
50  G4int maxNode=GetNoContained();
51  if (maxNode==v.GetNoContained())
52  {
53  for (G4int node=0;node<maxNode;node++)
54  {
55  if (GetVolume(node)!=v.GetVolume(node))
56  {
57  return false;
58  }
59  }
60  return true;
61  }
62  return false;
63 }
G4int GetNoContained() const
int G4int
Definition: G4Types.hh:78
G4int GetVolume(G4int pVolumeNo) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reserve()

void G4SmartVoxelNode::Reserve ( G4int  noSlices)
inline
Here is the caller graph for this function:

◆ SetMaxEquivalentSliceNo()

void G4SmartVoxelNode::SetMaxEquivalentSliceNo ( G4int  pMax)
inline
Here is the caller graph for this function:

◆ SetMinEquivalentSliceNo()

void G4SmartVoxelNode::SetMinEquivalentSliceNo ( G4int  pMin)
inline
Here is the caller graph for this function:

◆ Shrink()

void G4SmartVoxelNode::Shrink ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ fcontents

G4SliceVector G4SmartVoxelNode::fcontents
private

Definition at line 110 of file G4SmartVoxelNode.hh.

◆ fmaxEquivalent

G4int G4SmartVoxelNode::fmaxEquivalent
private

Definition at line 109 of file G4SmartVoxelNode.hh.

◆ fminEquivalent

G4int G4SmartVoxelNode::fminEquivalent
private

Definition at line 108 of file G4SmartVoxelNode.hh.


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