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