Geant4  10.01.p02
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, 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 65 of file UBits.cc.

References fAllBits.

Member Function Documentation

void UBits::Clear ( )

Definition at line 73 of file UBits.cc.

References fAllBits, fNBits, and fNBytes.

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

+ Here is the caller graph for this function:

void UBits::Compact ( )

Definition at line 84 of file UBits.cc.

References fAllBits, fNBits, and fNBytes.

void UBits::Get ( char *  array) const

Definition at line 420 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 437 of file UBits.cc.

References Get().

+ Here is the call graph for this function:

unsigned int UBits::GetNbits ( ) const
inline

Definition at line 101 of file UBits.hh.

References fNBits.

Referenced by UTessellatedSolid::InsideVoxels(), UTessellatedSolid::SafetyFromOutside(), and UTessellatedSolid::Voxelize().

+ Here is the caller graph for this function:

unsigned int UBits::GetNbytes ( ) const
inline

Definition at line 105 of file UBits.hh.

References fNBytes.

Referenced by UTessellatedSolid::AllocatedMemory(), and UVoxelizer::AllocatedMemory().

+ Here is the caller graph for this function:

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

Definition at line 45 of file UBits.cc.

References fAllBits, fNBits, and fNBytes.

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

Definition at line 218 of file UBits.hh.

References TestBitNumber().

+ Here is the call graph for this function:

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

Definition at line 355 of file UBits.cc.

References fAllBits, and fNBytes.

void UBits::Print ( void  ) const

Definition at line 370 of file UBits.cc.

References fAllBits, and fNBytes.

void UBits::ReserveBytes ( unsigned int  nbytes)
protected

Definition at line 393 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 387 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 213 of file UBits.hh.

References SetBitNumber().

Referenced by UVoxelizer::BuildEmpty(), and UTessellatedSolid::PrecalculateInsides().

+ 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 408 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 430 of file UBits.cc.

References Set().

+ Here is the call graph for this function:

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

Definition at line 200 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 135 of file UBits.hh.

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

unsigned int UBits::fNBytes
protected

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