11#ifndef ROOT_TEmulatedCollectionProxy
12#define ROOT_TEmulatedCollectionProxy
65 virtual void*
New(
void* memory)
const {
return new(memory)
Cont_t; }
98 virtual void Clear(
const char *opt =
"");
110 virtual void Commit(
void* env);
114 virtual void Insert(
const void *data,
void *container,
size_t size);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Buffer base class used for serializing objects.
TClass instances represent classes, structs and namespaces in the ROOT type system.
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.
virtual TClass::ObjectPtr NewObjectArray(Int_t nElements, void *memory) const
void Expand(UInt_t nCurr, UInt_t left)
virtual void Destructor(void *p, Bool_t dtorOnly=kFALSE) const
virtual TClass::ObjectPtr NewObject(void *memory) const
virtual TClass::ObjectPtr NewObject() 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 TClass::ObjectPtr NewObjectArray(Int_t nElements) const
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
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.