Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
16 class TVirtualCollectionProxy;
17 class TGenCollectionStreamer;
18 class TClassStreamer;
19 
20 class TConvertClonesArrayToProxy : public TMemberStreamer {
21  Bool_t fIsPointer;
22  Bool_t fIsPrealloc;
23  UInt_t fOffset;
24  TClass *fCollectionClass;
25 public:
26  TConvertClonesArrayToProxy(TVirtualCollectionProxy *proxy, Bool_t isPointer, Bool_t isPrealloc);
27  ~TConvertClonesArrayToProxy();
28  void operator()(TBuffer &b, void *pmember, Int_t size=0);
29 };
30 
31 class TConvertMapToProxy : public TMemberStreamer {
32  Bool_t fIsPointer;
33  Bool_t fIsPrealloc;
34  UInt_t fSizeOf;
35  TClass *fCollectionClass;
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