Logo ROOT  
Reference Guide
TContainerConverters.h
Go to the documentation of this file.
1 // @(#)root/io:$Id: 9654411c49ffb811aa71b8ed4287acc53909a9a6 $
2 // Author: Philippe Canal 11/11/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 #ifndef ROOT_TContainerConverters
12 #define ROOT_TContainerConverters
13 
14 #include "TMemberStreamer.h"
15 
18 class TClassStreamer;
19 
25 public:
26  TConvertClonesArrayToProxy(TVirtualCollectionProxy *proxy, Bool_t isPointer, Bool_t isPrealloc);
28  void operator()(TBuffer &b, void *pmember, Int_t size=0);
29 };
30 
36 
37 public:
38  TConvertMapToProxy(TClassStreamer *streamer, Bool_t isPointer, Bool_t isPrealloc);
39  void operator()(TBuffer &b, void *pmember, Int_t size=0);
40  Bool_t IsValid() { return fCollectionClass != 0; }
41 };
42 
43 #endif
TConvertClonesArrayToProxy::operator()
void operator()(TBuffer &b, void *pmember, Int_t size=0)
Read a TClonesArray from the TBuffer b and load it into a (stl) collection.
Definition: TContainerConverters.cxx:64
TConvertClonesArrayToProxy::fCollectionClass
TClass * fCollectionClass
Definition: TContainerConverters.h:24
TConvertMapToProxy
Definition: TContainerConverters.h:31
TConvertClonesArrayToProxy::TConvertClonesArrayToProxy
TConvertClonesArrayToProxy(TVirtualCollectionProxy *proxy, Bool_t isPointer, Bool_t isPrealloc)
Constructor.
Definition: TContainerConverters.cxx:43
TConvertClonesArrayToProxy::fOffset
UInt_t fOffset
Definition: TContainerConverters.h:23
TBuffer
Buffer base class used for serializing objects.
Definition: TBuffer.h:43
b
#define b(i)
Definition: RSha256.hxx:100
bool
TConvertClonesArrayToProxy::fIsPointer
Bool_t fIsPointer
Definition: TContainerConverters.h:21
TConvertMapToProxy::fCollectionClass
TClass * fCollectionClass
Definition: TContainerConverters.h:35
TConvertClonesArrayToProxy
Small helper to read a TBuffer containing a TClonesArray into any valid collection.
Definition: TContainerConverters.h:20
TConvertClonesArrayToProxy::fIsPrealloc
Bool_t fIsPrealloc
Definition: TContainerConverters.h:22
unsigned int
TClass
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
TConvertMapToProxy::IsValid
Bool_t IsValid()
Definition: TContainerConverters.h:40
TConvertMapToProxy::fIsPointer
Bool_t fIsPointer
Definition: TContainerConverters.h:32
TConvertClonesArrayToProxy::~TConvertClonesArrayToProxy
~TConvertClonesArrayToProxy()
Destructor.
Definition: TContainerConverters.cxx:57
TConvertMapToProxy::fIsPrealloc
Bool_t fIsPrealloc
Definition: TContainerConverters.h:33
TClassStreamer
Definition: TClassStreamer.h:26
TConvertMapToProxy::fSizeOf
UInt_t fSizeOf
Definition: TContainerConverters.h:34
TGenCollectionStreamer
Definition: TGenCollectionStreamer.h:17
TConvertMapToProxy::operator()
void operator()(TBuffer &b, void *pmember, Int_t size=0)
Read a std::map or std::multimap from the TBuffer b and load it into a (stl) collection.
Definition: TContainerConverters.cxx:264
TMemberStreamer
Definition: TMemberStreamer.h:26
TConvertMapToProxy::TConvertMapToProxy
TConvertMapToProxy(TClassStreamer *streamer, Bool_t isPointer, Bool_t isPrealloc)
Constructor.
Definition: TContainerConverters.cxx:233
TVirtualCollectionProxy
Definition: TVirtualCollectionProxy.h:38
TMemberStreamer.h
int