44 Fatal(
"TEmulatedMapProxy",
"Class %s is not a map-type!",
fName.c_str());
53 Fatal(
"TEmulatedMapProxy",
"Class %s is not a map-type!",
fName.c_str());
76 Fatal(
"TEmulatedMapProxy",
"At> Logic error - no proxy object set.");
87 Fatal(
"TEmulatedMapProxy",
"Size> Logic error - no proxy object set.");
94 Bool_t vsn3 =
b.GetInfo() &&
b.GetInfo()->GetOldVersion()<=3;
101 char* temp = (
char*)
At(0);
102 for ( idx = 0; idx < nElements; ++idx ) {
104 for ( loop=0; loop<2; loop++) {
111 switch(
int(
v->fKind) ) {
120 helper->
flt = float(
f);
break;
132 Error(
"TEmulatedMapProxy",
"fType %d is not supported yet!\n",
v->fKind);
136 b.StreamObject(helper,
v->fType);
142 helper->
set(
b.ReadObjectAny(
v->fType));
162 char* temp = (
char*)
At(0);
163 for (
UInt_t loop, idx = 0; idx < nElements; ++idx ) {
165 for ( loop = 0; loop<2; ++loop ) {
172 switch(
int(
v->fKind) ) {
191 Error(
"TEmulatedMapProxy",
"fType %d is not supported yet!\n",
v->fKind);
195 b.StreamObject(i,
v->fType);
201 b.WriteObjectAny(i->
ptr(),
v->fType);
232 if ( nElements > 0 ) {
240 if (
b.IsReading() ) {
246 if ( nElements > 0 ) {
253 if ( nElements > 0 ) {
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
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.
void Resize(UInt_t n, Bool_t force_delete) override
Resize the container.
Streamer around a map container.
void ReadMap(UInt_t nElements, TBuffer &b)
UInt_t Size() const override
Return the current number of elements in the container.
void Streamer(TBuffer &refBuffer) override
Streamer Function.
TVirtualCollectionProxy * Generate() const override
Returns a clean object of the actual class that derives from TVirtualCollectionProxy.
void * At(UInt_t idx) override
Return the address of the value at index idx
TEmulatedMapProxy(const TEmulatedMapProxy ©)
void ReadBuffer(TBuffer &buff, void *pObj) override
void WriteMap(UInt_t nElements, TBuffer &b)
~TEmulatedMapProxy() override
int fValOffset
Offset from key to value (in maps)
EnvironBase_t * fEnv
Address of the currently proxied object.
TGenCollectionProxy * Initialize(Bool_t silent) const
Proxy initializer.
std::string fName
Name of the class being proxied.
int fSTL_type
STL container type.
Value * fKey
Descriptor of the key_type.
Value * fVal
Descriptor of the Value_type.
virtual void SetOnFileClass(TClass *cl)
int fValDiff
Offset between two consecutive value_types (memory layout).
virtual void Streamer(TBuffer &)
Stream a string object.
RAII helper class that ensures that PushProxy() / PopProxy() are called when entering / leaving a C++...
Defines a common interface to inspect/change the contents of an object that represents a collection.
Small helper to describe the Value_type or the key_type of an STL container.
Helper class to facilitate I/O.
void read_tstring_pointer(Bool_t vsn3, TBuffer &b)
void write_std_string_pointer(TBuffer &b)
void write_tstring_pointer(TBuffer &b)
void read_std_string_pointer(TBuffer &b)
void read_std_string(TBuffer &b)