Geant4  10.00.p01
UBits Class Reference

#include <UBits.hh>

Public Member Functions

 UBits (unsigned int nbits=0)
 
 UBits (const UBits &)
 
UBitsoperator= (const UBits &rhs)
 
virtual ~UBits ()
 
void ResetAllBits (bool value=false)
 
void ResetBitNumber (unsigned int bitnumber)
 
void SetBitNumber (unsigned int bitnumber, bool value=true)
 
bool TestBitNumber (unsigned int bitnumber) const
 
bool operator[] (unsigned int bitnumber) const
 
void Set (unsigned int nbits, const char *array)
 
void Set (unsigned int nbits, const int *array)
 
void Get (char *array) const
 
void Get (int *array) const
 
void Clear ()
 
void Compact ()
 
unsigned int GetNbits () const
 
unsigned int GetNbytes () const
 
void Print () const
 
void Output (std::ostream &) const
 

Public Attributes

unsigned char * fAllBits
 

Protected Member Functions

void ReserveBytes (unsigned int nbytes)
 

Protected Attributes

unsigned int fNBits
 
unsigned int fNBytes
 

Detailed Description

Definition at line 38 of file UBits.hh.

Constructor & Destructor Documentation

UBits::UBits ( unsigned int  nbits = 0)

Definition at line 20 of file UBits.cc.

References fAllBits, fNBits, and fNBytes.

UBits::UBits ( const UBits original)

Definition at line 32 of file UBits.cc.

References fAllBits, and fNBytes.

UBits::~UBits ( )
virtual

Definition at line 64 of file UBits.cc.

References fAllBits.

Member Function Documentation

void UBits::Clear ( )

Definition at line 72 of file UBits.cc.

References fAllBits, fNBits, and fNBytes.

Referenced by UVoxelizer::BuildBitmasks(), UVoxelizer::BuildEmpty(), and UVoxelizer::Voxelize().

+ Here is the caller graph for this function:

void UBits::Compact ( )

Definition at line 83 of file UBits.cc.

References fAllBits, fNBits, and fNBytes.

void UBits::Get ( char *  array) const

Definition at line 419 of file UBits.cc.

References fAllBits, and fNBits.

Referenced by Get().

+ Here is the caller graph for this function:

void UBits::Get ( int *  array) const

Definition at line 436 of file UBits.cc.

References Get().

+ Here is the call graph for this function:

unsigned int UBits::GetNbits ( ) const
inline

Definition at line 120 of file UBits.hh.

References fNBits.

unsigned int UBits::GetNbytes ( ) const
inline

Definition at line 124 of file UBits.hh.

References fNBytes.

Referenced by UVoxelizer::AllocatedMemory().

+ Here is the caller graph for this function:

UBits & UBits::operator= ( const UBits rhs)

Definition at line 44 of file UBits.cc.

References fAllBits, fNBits, and fNBytes.

bool UBits::operator[] ( unsigned int  bitnumber) const
inline

Definition at line 217 of file UBits.hh.

References TestBitNumber().

+ Here is the call graph for this function:

void UBits::Output ( std::ostream &  os) const

Definition at line 354 of file UBits.cc.

References fAllBits, and fNBytes.

void UBits::Print ( void  ) const

Definition at line 369 of file UBits.cc.

References fAllBits, and fNBytes.

void UBits::ReserveBytes ( unsigned int  nbytes)
protected

Definition at line 392 of file UBits.cc.

References fAllBits, and fNBytes.

Referenced by Set().

+ Here is the caller graph for this function:

void UBits::ResetAllBits ( bool  value = false)

Definition at line 386 of file UBits.cc.

References fAllBits, and fNBytes.

Referenced by UVoxelizer::BuildEmpty().

+ Here is the caller graph for this function:

void UBits::ResetBitNumber ( unsigned int  bitnumber)
inline

Definition at line 212 of file UBits.hh.

References SetBitNumber().

Referenced by UVoxelizer::BuildEmpty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void UBits::Set ( unsigned int  nbits,
const char *  array 
)

Definition at line 407 of file UBits.cc.

References fAllBits, fNBits, and ReserveBytes().

Referenced by UVoxelizer::DisplayListNodes(), and Set().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void UBits::Set ( unsigned int  nbits,
const int *  array 
)

Definition at line 429 of file UBits.cc.

References Set().

+ Here is the call graph for this function:

void UBits::SetBitNumber ( unsigned int  bitnumber,
bool  value = true 
)
inline

Definition at line 172 of file UBits.hh.

References fAllBits, fNBits, and fNBytes.

Referenced by UVoxelizer::BuildBitmasks(), UVoxelizer::BuildEmpty(), UVCSGfaceted::DistanceToIn(), UVCSGfaceted::DistanceToOut(), UVCSGfaceted::Inside(), UVCSGfaceted::Normal(), ResetBitNumber(), and UVCSGfaceted::SafetyFromInsideSection().

+ Here is the caller graph for this function:

bool UBits::TestBitNumber ( unsigned int  bitnumber) const
inline

Definition at line 199 of file UBits.hh.

References fAllBits, and fNBits.

Referenced by UVoxelizer::GetCandidatesAsString(), and operator[]().

+ Here is the caller graph for this function:

Member Data Documentation

unsigned int UBits::fNBits
protected

Definition at line 46 of file UBits.hh.

Referenced by Clear(), Compact(), Get(), GetNbits(), operator=(), Set(), SetBitNumber(), TestBitNumber(), and UBits().

unsigned int UBits::fNBytes
protected

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