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,...)
void Fatal(const char *location, const char *msgfmt,...)
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 void Resize(UInt_t n, Bool_t force_delete)
Resize the container.
Streamer around a map container.
virtual void * At(UInt_t idx)
Return the address of the value at index 'idx'.
void ReadMap(UInt_t nElements, TBuffer &b)
virtual UInt_t Size() const
Return the current size of the container.
virtual ~TEmulatedMapProxy()
virtual void ReadBuffer(TBuffer &buff, void *pObj)
virtual void Streamer(TBuffer &refBuffer)
Streamer Function.
virtual TVirtualCollectionProxy * Generate() const
Virtual copy constructor.
TEmulatedMapProxy(const TEmulatedMapProxy ©)
void WriteMap(UInt_t nElements, TBuffer &b)
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).
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)