Logo ROOT  
Reference Guide
TEmulatedMapProxy.h
Go to the documentation of this file.
1 // @(#)root/io:$Id$
2 // Author: Markus Frank 28/10/04
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_TEmulatedMapProxy
12 #define ROOT_TEmulatedMapProxy
13 
15 
17 
18 protected:
19  // Map input streamer
20  void ReadMap(UInt_t nElements, TBuffer &b);
21 
22  // Map output streamer
23  void WriteMap(UInt_t nElements, TBuffer &b);
24 private:
25  TEmulatedMapProxy &operator=(const TEmulatedMapProxy &rhs); // Not implemented.
26 
27 public:
28  // Virtual copy constructor
29  virtual TVirtualCollectionProxy* Generate() const;
30 
31  // Copy constructor
33 
34  // Initializing constructor
35  TEmulatedMapProxy(const char* cl_name, Bool_t silent);
36 
37  // Standard destructor
38  virtual ~TEmulatedMapProxy();
39 
40  // Return the address of the value at index 'idx'
41  virtual void *At(UInt_t idx);
42 
43  // Return the current size of the container
44  virtual UInt_t Size() const;
45 
46  // Read portion of the streamer
47  virtual void ReadBuffer(TBuffer &buff, void *pObj);
48  virtual void ReadBuffer(TBuffer &buff, void *pObj, const TClass *onfile);
49 
50  // Streamer for I/O handling
51  virtual void Streamer(TBuffer &refBuffer);
52 
53  // Streamer I/O overload
54  virtual void Streamer(TBuffer &buff, void *pObj, int siz) {
56  }
57 };
58 
59 #endif
TEmulatedMapProxy
Streamer around a map container.
Definition: TEmulatedMapProxy.h:16
TEmulatedCollectionProxy::Streamer
virtual void Streamer(TBuffer &refBuffer)
Streamer Function.
Definition: TEmulatedCollectionProxy.cxx:624
TEmulatedMapProxy::WriteMap
void WriteMap(UInt_t nElements, TBuffer &b)
Definition: TEmulatedMapProxy.cxx:155
TEmulatedMapProxy::At
virtual void * At(UInt_t idx)
Return the address of the value at index 'idx'.
Definition: TEmulatedMapProxy.cxx:69
TEmulatedMapProxy::Streamer
virtual void Streamer(TBuffer &buff, void *pObj, int siz)
Streamer I/O overload.
Definition: TEmulatedMapProxy.h:54
TEmulatedCollectionProxy.h
TEmulatedMapProxy::ReadMap
void ReadMap(UInt_t nElements, TBuffer &b)
Definition: TEmulatedMapProxy.cxx:91
TEmulatedMapProxy::Size
virtual UInt_t Size() const
Return the current size of the container.
Definition: TEmulatedMapProxy.cxx:80
TEmulatedMapProxy::Generate
virtual TVirtualCollectionProxy * Generate() const
Virtual copy constructor.
Definition: TEmulatedMapProxy.cxx:62
TEmulatedMapProxy::ReadBuffer
virtual void ReadBuffer(TBuffer &buff, void *pObj)
Definition: TEmulatedMapProxy.cxx:222
TBuffer
Buffer base class used for serializing objects.
Definition: TBuffer.h:43
b
#define b(i)
Definition: RSha256.hxx:100
bool
TEmulatedCollectionProxy
Streamer around an arbitrary STL like container, which implements basic container functionality.
Definition: TEmulatedCollectionProxy.h:18
unsigned int
TClass
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
TEmulatedMapProxy::operator=
TEmulatedMapProxy & operator=(const TEmulatedMapProxy &rhs)
TEmulatedMapProxy::~TEmulatedMapProxy
virtual ~TEmulatedMapProxy()
Definition: TEmulatedMapProxy.cxx:57
TEmulatedMapProxy::Streamer
virtual void Streamer(TBuffer &refBuffer)
Streamer Function.
Definition: TEmulatedMapProxy.cxx:237
TEmulatedMapProxy::TEmulatedMapProxy
TEmulatedMapProxy(const TEmulatedMapProxy &copy)
Definition: TEmulatedMapProxy.cxx:39
TVirtualCollectionProxy
Definition: TVirtualCollectionProxy.h:38