#ifndef ROOT_TIndArray
#define ROOT_TIndArray
class TIndArray
{
public:
TIndArray():
fElems( 0 ), fCapacity( 0 ), fArr( 0 ) {};
virtual ~TIndArray()
{
delete [] fArr;
}
void Reserve( UInt_t size )
{
delete fArr;
fElems = 0;
fArr = new UChar_t[size];
fCapacity = size;
}
UInt_t GetCapacity() { return fCapacity; }
UInt_t GetNumItems() { return fElems; }
void SetNumItems( UInt_t items ) { fElems = items;}
UChar_t &At( Int_t ind ) { return fArr[ind]; }
void Clear() { fElems = 0; }
private:
UInt_t fElems;
UInt_t fCapacity;
UChar_t *fArr;
};
#endif // ROOT_TIndArray
Last change: Wed Jun 25 08:47:38 2008
Last generated: 2008-06-25 08:47
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.