A++ » INCLUDE » TBits

class TBits: public TObject


TBits

Container of bits.


Function Members (Methods)

public:
virtual~TBits()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* option = "")
virtual TObject*TObject::Clone(const char* newname = "") const
voidCompact()
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
UInt_tCountBits(UInt_t startBit = 0) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
UInt_tFirstNullBit(UInt_t startBit = 0) const
UInt_tFirstSetBit(UInt_t startBit = 0) const
voidGet(Char_t* array) const
voidGet(UChar_t* array) const
voidGet(Short_t* array) const
voidGet(UShort_t* array) const
voidGet(Int_t* array) const
voidGet(UInt_t* array) const
voidGet(Long64_t* array) const
voidGet(ULong64_t* array) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
UInt_tGetNbits() const
UInt_tGetNbytes() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
UInt_tLastNullBit(UInt_t startBit = 999999999) const
UInt_tLastSetBit(UInt_t startBit = 999999999) const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
Bool_toperator!=(const TBits& other) const
TBits&operator&=(const TBits& rhs)
TBitsoperator<<(UInt_t rhs)
TBits&operator<<=(UInt_t rhs)
TBits&operator=(const TBits&)
Bool_toperator==(const TBits& other) const
TBitsoperator>>(UInt_t rhs)
TBits&operator>>=(UInt_t rhs)
TBits::TReferenceoperator[](UInt_t bitnumber)
Bool_toperator[](UInt_t bitnumber) const
TBits&operator^=(const TBits& rhs)
TBits&operator|=(const TBits& rhs)
TBitsoperator~()
voidOutput(ostream&) const
virtual voidPaint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidResetAllBits(Bool_t value = kFALSE)
voidTObject::ResetBit(UInt_t f)
voidResetBitNumber(UInt_t bitnumber)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidSet(UInt_t nbits, const Char_t* array)
voidSet(UInt_t nbits, const UChar_t* array)
voidSet(UInt_t nbits, const Short_t* array)
voidSet(UInt_t nbits, const UShort_t* array)
voidSet(UInt_t nbits, const Int_t* array)
voidSet(UInt_t nbits, const UInt_t* array)
voidSet(UInt_t nbits, const Long64_t* array)
voidSet(UInt_t nbits, const ULong64_t* array)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetBitNumber(UInt_t bitnumber, Bool_t value = kTRUE)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
TBits(UInt_t nbits = 8)
TBits(const TBits&)
Bool_tTObject::TestBit(UInt_t f) const
Bool_tTestBitNumber(UInt_t bitnumber) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
voidDoAndEqual(const TBits& rhs)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidDoFlip()
voidDoLeftShift(UInt_t shift)
voidDoOrEqual(const TBits& rhs)
voidDoRightShift(UInt_t shift)
voidDoXorEqual(const TBits& rhs)
voidTObject::MakeZombie()
voidReserveBytes(UInt_t nbytes)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
UChar_t*fAllBits[fNbytes] array of UChars
UInt_tfNbitsHighest bit set + 1
UInt_tfNbytesNumber of UChars in fAllBits

Class Charts

Inheritance Chart:
TObject
TBits

Function documentation

void SetBitNumber(UInt_t bitnumber, Bool_t value = kTRUE)
 Set bit number 'bitnumber' to be value
Bool_t TestBitNumber(UInt_t bitnumber) const
 Return the current value of the bit
void ResetBitNumber(UInt_t bitnumber)
Bool_t operator[](UInt_t bitnumber) const
void ReserveBytes(UInt_t nbytes)
void DoAndEqual(const TBits& rhs)
void DoOrEqual(const TBits& rhs)
void DoXorEqual(const TBits& rhs)
void DoLeftShift(UInt_t shift)
void DoRightShift(UInt_t shift)
void DoFlip()
TBits(UInt_t nbits = 8)
TBits(const TBits& )
TBits& operator=(const TBits& )
virtual ~TBits()
Bool_t operator~()
 Flips the bit
void ResetAllBits(Bool_t value = kFALSE)
----- bit manipulation
----- (note the difference with TObject's bit manipulations)
TBits::TReference operator[](UInt_t bitnumber)
----- Accessors and operator
{ return TReference(*this,bitnumber); }
TBits& operator&=(const TBits& rhs)
{ DoAndEqual(rhs); return *this; }
TBits& operator|=(const TBits& rhs)
{ DoOrEqual(rhs); return *this; }
TBits& operator^=(const TBits& rhs)
{ DoXorEqual(rhs); return *this; }
TBits& operator<<=(UInt_t rhs)
{ DoLeftShift(rhs); return *this; }
TBits& operator>>=(UInt_t rhs)
{ DoRightShift(rhs); return *this; }
TBits operator<<(UInt_t rhs)
{ return TBits(*this)<<= rhs; }
TBits operator>>(UInt_t rhs)
{ return TBits(*this)>>= rhs; }
void Set(UInt_t nbits, const Char_t* array)
----- Optimized setters
 Each of these will replace the contents of the receiver with the bitvector
 in the parameter array.  The number of bits is changed to nbits.  If nbits
 is smaller than fNbits, the receiver will NOT be compacted.
void Set(UInt_t nbits, const UChar_t* array)
{ Set(nbits, (const Char_t*)array); }
void Set(UInt_t nbits, const Short_t* array)
void Set(UInt_t nbits, const UShort_t* array)
{ Set(nbits, (const Short_t*)array); }
void Set(UInt_t nbits, const Int_t* array)
void Set(UInt_t nbits, const UInt_t* array)
{ Set(nbits, (const Int_t*)array); }
void Set(UInt_t nbits, const Long64_t* array)
void Set(UInt_t nbits, const ULong64_t* array)
{ Set(nbits, (const Long64_t*)array); }
void Get(Char_t* array) const
----- Optimized getters
 Each of these will replace the contents of the parameter array with the
 bits in the receiver.  The parameter array must be large enough to hold
 all of the bits in the receiver.
 Note on semantics: any bits in the parameter array that go beyond the
 number of the bits in the receiver will have an unspecified value.  For
 example, if you call Get(Int*) with an array of one integer and the TBits
 object has less than 32 bits, then the remaining bits in the integer will
 have an unspecified value.
void Get(UChar_t* array) const
{ Get((Char_t*)array); }
void Get(Short_t* array) const
void Get(UShort_t* array) const
{ Get((Short_t*)array); }
void Get(Int_t* array) const
void Get(UInt_t* array) const
{ Get((Int_t*)array); }
void Get(Long64_t* array) const
void Get(ULong64_t* array) const
{ Get((Long64_t*)array); }
void Clear(Option_t* option = "")
----- Utilities
void Compact()
UInt_t CountBits(UInt_t startBit = 0) const
UInt_t FirstNullBit(UInt_t startBit = 0) const
UInt_t FirstSetBit(UInt_t startBit = 0) const
UInt_t LastNullBit(UInt_t startBit = 999999999) const
UInt_t LastSetBit(UInt_t startBit = 999999999) const
UInt_t GetNbits() const
{ return fNbits; }
UInt_t GetNbytes() const
{ return fNbytes; }
Bool_t operator==(const TBits& other) const
Bool_t operator!=(const TBits& other) const
{ return !(*this==other); }
void Paint(Option_t* option = "")
void Print(Option_t* option = "") const
void Output(ostream& ) const