TBits


class description - source file - inheritance tree

class TBits : public TObject

    private:
public:
TBits TBits(UInt_t nbits = 8) TBits TBits(const TBits&) virtual void ~TBits() static TClass* Class() void Compact() UInt_t CountBits() const UInt_t GetNbits() UInt_t GetNbytes() virtual TClass* IsA() const TBits& operator=(const TBits&) virtual void Paint(Option_t* option) virtual void Print(Option_t* option) const void ResetAllBits(Bool_t value = kFALSE) void ResetBitNumber(UInt_t bitnumber) void SetBitNumber(UInt_t bitnumber, Bool_t value = kTRUE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Bool_t TestBitNumber(UInt_t bitnumber) const

Data Members

private:
protected:
UInt_t fNbits Number of bits (around fNbytes*8) UInt_t fNbytes Number of UChars in fAllBits UChar_t* fAllBits [fNbytes] array of UChars

Class Description


TBits(UInt_t nbits) : fNbits(nbits)
 TBits constructor.  All bits set to 0

TBits(const TBits &original) : TObject(original), fNbits(original.fNbits), fNbytes(original.fNbytes)
 TBits copy constructor

~TBits()
 TBits destructor

void Compact()
 Reduce the storage used by the object to a minimun

UInt_t CountBits() const
 Return number of bits set to 1

void Paint(Option_t *option)
 Once implemented, it will draw the bit field as an histogram.
 use the TVirtualPainter as the usual trick

void Print(Option_t *option) const
 Print the list of active bits

void ResetAllBits(Bool_t value)
 Reset all bits to 0 (false)

void SetBitNumber(UInt_t bitnumber, Bool_t value)
 Set bit number 'bitnumber' to be value

Bool_t TestBitNumber(UInt_t bitnumber) const
 Return the current value of the bit



Inline Functions


             TBits& operator=(const TBits&)
               void ResetBitNumber(UInt_t bitnumber)
             UInt_t GetNbits()
             UInt_t GetNbytes()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Author: Philippe Canal 05/02/2001
Last update: root/base:$Name: $:$Id: TBits.cxx,v 1.4 2001/04/16 20:04:50 brun Exp $


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.