Geant4
10.01.p02
|
#include <UBits.hh>
Public Member Functions | |
UBits (unsigned int nbits=0) | |
UBits (const UBits &) | |
UBits & | operator= (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 |
UBits::UBits | ( | unsigned int | nbits = 0 | ) |
UBits::UBits | ( | const UBits & | original | ) |
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().
void UBits::Compact | ( | ) |
void UBits::Get | ( | char * | array | ) | const |
void UBits::Get | ( | int * | array | ) | const |
|
inline |
Definition at line 101 of file UBits.hh.
References fNBits.
Referenced by UTessellatedSolid::InsideVoxels(), UTessellatedSolid::SafetyFromOutside(), and UTessellatedSolid::Voxelize().
|
inline |
Definition at line 105 of file UBits.hh.
References fNBytes.
Referenced by UTessellatedSolid::AllocatedMemory(), and UVoxelizer::AllocatedMemory().
|
inline |
Definition at line 218 of file UBits.hh.
References TestBitNumber().
void UBits::Output | ( | std::ostream & | os | ) | const |
void UBits::Print | ( | void | ) | const |
|
protected |
void UBits::ResetAllBits | ( | bool | value = false | ) |
Definition at line 387 of file UBits.cc.
References fAllBits, and fNBytes.
Referenced by UVoxelizer::BuildEmpty().
|
inline |
Definition at line 213 of file UBits.hh.
References SetBitNumber().
Referenced by UVoxelizer::BuildEmpty(), and UTessellatedSolid::PrecalculateInsides().
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().
void UBits::Set | ( | unsigned int | nbits, |
const int * | array | ||
) |
|
inline |
Definition at line 173 of file UBits.hh.
References fAllBits, fNBits, and fNBytes.
Referenced by UVoxelizer::BuildBitmasks(), UVoxelizer::BuildEmpty(), UVCSGfaceted::DistanceToIn(), UMultiUnion::DistanceToInCandidates(), UVCSGfaceted::DistanceToOut(), UVCSGfaceted::Inside(), UVCSGfaceted::Normal(), UTessellatedSolid::PrecalculateInsides(), ResetBitNumber(), UVCSGfaceted::SafetyFromInsideSection(), and UTessellatedSolid::SetAllUsingStack().
|
inline |
Definition at line 200 of file UBits.hh.
References fAllBits, and fNBits.
Referenced by UVoxelizer::GetCandidatesAsString(), and operator[]().
unsigned char* UBits::fAllBits |
Definition at line 139 of file UBits.hh.
Referenced by Clear(), Compact(), Get(), UVoxelizer::GetCandidatesVoxelArray(), operator=(), Output(), Print(), ReserveBytes(), ResetAllBits(), Set(), SetBitNumber(), TestBitNumber(), UBits(), and ~UBits().
|
protected |
Definition at line 135 of file UBits.hh.
Referenced by Clear(), Compact(), Get(), GetNbits(), operator=(), Set(), SetBitNumber(), and TestBitNumber().
|
protected |
Definition at line 136 of file UBits.hh.
Referenced by Clear(), Compact(), GetNbytes(), operator=(), Output(), Print(), ReserveBytes(), ResetAllBits(), SetBitNumber(), and UBits().