11 #ifndef ROOT_TEmulatedCollectionProxy
12 #define ROOT_TEmulatedCollectionProxy
63 virtual void*
New(
void* memory)
const {
return new(memory) Cont_t; }
66 virtual void*
NewArray(
Int_t nElements)
const {
return new Cont_t[nElements]; }
69 virtual void*
NewArray(
Int_t nElements,
void* memory)
const {
return new(memory) Cont_t[nElements]; }
84 virtual void Clear(
const char *opt =
"");
96 virtual void Commit(
void* env);
100 virtual void Insert(
const void *data,
void *container,
size_t size);
virtual void * New(void *memory) const
void Expand(UInt_t nCurr, UInt_t left)
virtual void * NewArray(Int_t nElements) const
std::vector< char > Cont_t
Buffer base class used for serializing objects.
virtual void * New() const
virtual void * NewArray(Int_t nElements, void *memory) const
Streamer around an arbitrary STL like container, which implements basic container functionality...
TEmulatedCollectionProxy(const TEmulatedCollectionProxy ©)
friend class TCollectionProxy
virtual void * Allocate(UInt_t n, Bool_t forceDelete)
Allocate the needed space.
virtual void Streamer(TBuffer &refBuffer)
Streamer Function.
virtual void Resize(UInt_t n, Bool_t force_delete)
Resize the container.
virtual ~TEmulatedCollectionProxy()
virtual void Clear(const char *opt="")
Clear the emulated collection.
virtual TVirtualCollectionProxy * Generate() const
Virtual copy constructor.
virtual UInt_t Sizeof() const
Return the sizeof the collection object.
virtual TGenCollectionProxy * InitializeEx(Bool_t silent)
Proxy initializer.
The ROOT global object gROOT contains a list of all defined classes.
void WriteItems(int nElements, TBuffer &b)
virtual void Commit(void *env)
Commit the change.
virtual void Insert(const void *data, void *container, size_t size)
Insert data into the container where data is a C-style array of the actual type contained in the coll...
void Shrink(UInt_t nCurr, UInt_t left, Bool_t force)
void ReadItems(int nElements, TBuffer &b)
TEmulatedCollectionProxy & operator=(const TEmulatedCollectionProxy &)
Proxy around an arbitrary container, which implements basic functionality and iteration.
virtual UInt_t Size() const
Return the current size of the container.
virtual void Streamer(TBuffer &buff, void *pObj, int siz)
Streamer I/O overload.
virtual void * At(UInt_t idx)
Return the address of the value at index 'idx'.
virtual void ReadBuffer(TBuffer &buff, void *pObj)
virtual void Destructor(void *p, Bool_t dtorOnly=kFALSE) const
virtual void Streamer(TBuffer &refBuffer)
Streamer Function.
virtual void DeleteArray(void *p, Bool_t dtorOnly=kFALSE) const