Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4SmartVoxelNode Class Reference

#include <G4SmartVoxelNode.hh>

Public Member Functions

 G4SmartVoxelNode (G4int pSlice=0)
 
 ~G4SmartVoxelNode ()
 
G4int GetVolume (G4int pVolumeNo) const
 
void Insert (G4int pVolumeNo)
 
size_t GetNoContained () const
 
size_t 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
 

Detailed Description

Definition at line 55 of file G4SmartVoxelNode.hh.

Constructor & Destructor Documentation

◆ G4SmartVoxelNode()

G4SmartVoxelNode::G4SmartVoxelNode ( G4int  pSlice = 0)
inline

Definition at line 59 of file G4SmartVoxelNode.hh.

59 : fminEquivalent(pSlice),
60 fmaxEquivalent(pSlice) {}

◆ ~G4SmartVoxelNode()

G4SmartVoxelNode::~G4SmartVoxelNode ( )

Definition at line 36 of file G4SmartVoxelNode.cc.

37{
38}

Member Function Documentation

◆ GetCapacity()

size_t G4SmartVoxelNode::GetCapacity ( ) const
inline

◆ GetMaxEquivalentSliceNo()

◆ GetMinEquivalentSliceNo()

◆ GetNoContained()

◆ GetVolume()

◆ Insert()

void G4SmartVoxelNode::Insert ( G4int  pVolumeNo)
inline

◆ operator==()

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

Definition at line 45 of file G4SmartVoxelNode.cc.

46{
47 size_t maxNode = GetNoContained();
48 if (maxNode == v.GetNoContained())
49 {
50 for (size_t node=0; node<maxNode; ++node)
51 {
52 if (GetVolume(node) != v.GetVolume(node))
53 {
54 return false;
55 }
56 }
57 return true;
58 }
59 return false;
60}
G4int GetVolume(G4int pVolumeNo) const
size_t GetNoContained() const

◆ Reserve()

void G4SmartVoxelNode::Reserve ( G4int  noSlices)
inline

◆ SetMaxEquivalentSliceNo()

void G4SmartVoxelNode::SetMaxEquivalentSliceNo ( G4int  pMax)
inline

◆ SetMinEquivalentSliceNo()

void G4SmartVoxelNode::SetMinEquivalentSliceNo ( G4int  pMin)
inline

◆ Shrink()

void G4SmartVoxelNode::Shrink ( )
inline

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