Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TContainerConverters.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/io:$Id: 9654411c49ffb811aa71b8ed4287acc53909a9a6 $
0002 // Author: Philippe Canal 11/11/2004
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 #ifndef ROOT_TContainerConverters
0012 #define ROOT_TContainerConverters
0013 
0014 #include "TMemberStreamer.h"
0015 
0016 class TVirtualCollectionProxy;
0017 class TGenCollectionStreamer;
0018 class TClassStreamer;
0019 
0020 class TConvertClonesArrayToProxy : public TMemberStreamer {
0021    Bool_t  fIsPointer;
0022    Bool_t  fIsPrealloc;
0023    UInt_t  fOffset;
0024    TClass *fCollectionClass;
0025 public:
0026    TConvertClonesArrayToProxy(TVirtualCollectionProxy *proxy, Bool_t isPointer, Bool_t isPrealloc);
0027    ~TConvertClonesArrayToProxy() override;
0028    void operator()(TBuffer &b, void *pmember, Int_t size=0) override;
0029 };
0030 
0031 class TConvertMapToProxy : public TMemberStreamer {
0032    Bool_t  fIsPointer;
0033    Bool_t  fIsPrealloc;
0034    UInt_t  fSizeOf;
0035    TClass *fCollectionClass;
0036 
0037 public:
0038    TConvertMapToProxy(TClassStreamer *streamer, Bool_t isPointer, Bool_t isPrealloc);
0039    void operator()(TBuffer &b, void *pmember, Int_t size=0) override;
0040    Bool_t IsValid() { return fCollectionClass != nullptr; }
0041 };
0042 
0043 #endif