11#ifndef ROOT_TEmulatedCollectionProxy
12#define ROOT_TEmulatedCollectionProxy
65 void*
New(
void* memory)
const override {
return new(memory)
Cont_t; }
77 void*
NewArray(
Int_t nElements,
void* memory)
const override {
return new(memory)
Cont_t[nElements]; }
98 void Clear(
const char *opt =
"")
override;
110 void Commit(
void* env)
override;
114 void Insert(
const void *
data,
void *container,
size_t size)
override;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
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.
TEmulatedCollectionProxy & operator=(const TEmulatedCollectionProxy &)
UInt_t Size() const override
Return the current number of elements in the container.
void Insert(const void *data, void *container, size_t size) override
Insert data into the container where data is a C-style array of the actual type contained in the coll...
TGenCollectionProxy * InitializeEx(Bool_t silent) override
Proxy initializer.
void * Allocate(UInt_t n, Bool_t forceDelete) override
Allocates space for storing at least n elements.
TClass::ObjectPtr NewObjectArray(Int_t nElements) const override
Construct an array of nElements container objects and return the base address of the array.
void * NewArray(Int_t nElements) const override
Construct an array of nElements container objects and return the base address of the array.
friend class TCollectionProxy
void Expand(UInt_t nCurr, UInt_t left)
TClass::ObjectPtr NewObject() const override
Construct a new container object and return its address.
void * New() const override
Construct a new container object and return its address.
void WriteItems(int nElements, TBuffer &b)
void * New(void *memory) const override
Construct a new container object at the address given by arena
TClass::ObjectPtr NewObject(void *memory) const override
Construct a new container object at the address given by arena
TVirtualCollectionProxy * Generate() const override
Returns a clean object of the actual class that derives from TVirtualCollectionProxy.
std::vector< char > Cont_t
void Commit(void *env) override
Commits pending elements in a staging area (see Allocate() for more information).
~TEmulatedCollectionProxy() override
void Streamer(TBuffer &buff, void *pObj, int siz) override
Streamer I/O overload.
void Clear(const char *opt="") override
Clear the container.
void * NewArray(Int_t nElements, void *memory) const override
Construct an array of nElements container objects at the address given by arena
void Shrink(UInt_t nCurr, UInt_t left, Bool_t force)
void * At(UInt_t idx) override
Return the address of the value at index idx
void ReadItems(int nElements, TBuffer &b)
TClass::ObjectPtr NewObjectArray(Int_t nElements, void *memory) const override
Construct an array of nElements container objects at the address given by arena
void Destructor(void *p, Bool_t dtorOnly=kFALSE) const override
Execute the container destructor.
void ReadBuffer(TBuffer &buff, void *pObj) override
void Streamer(TBuffer &refBuffer) override
Streamer Function.
void DeleteArray(void *p, Bool_t dtorOnly=kFALSE) const override
Execute the container array destructor.
UInt_t Sizeof() const override
Return the sizeof() of the collection object.
void Resize(UInt_t n, Bool_t force_delete) override
Resize the container.
Proxy around an arbitrary container, which implements basic functionality and iteration.
virtual void Streamer(TBuffer &refBuffer)
Streamer Function.
Defines a common interface to inspect/change the contents of an object that represents a collection.