Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
18protected:
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);
24private:
25 TEmulatedMapProxy &operator=(const TEmulatedMapProxy &rhs); // Not implemented.
26
27public:
28 // Virtual copy constructor
29 TVirtualCollectionProxy* Generate() const override;
30
31 // Copy constructor
33
34 // Initializing constructor
35 TEmulatedMapProxy(const char* cl_name, Bool_t silent);
36
37 // Standard destructor
38 ~TEmulatedMapProxy() override;
39
40 // Return the address of the value at index 'idx'
41 void *At(UInt_t idx) override;
42
43 // Return the current size of the container
44 UInt_t Size() const override;
45
46 // Read portion of the streamer
47 void ReadBuffer(TBuffer &buff, void *pObj) override;
48 void ReadBuffer(TBuffer &buff, void *pObj, const TClass *onfile) override;
49
50 // Streamer for I/O handling
51 void Streamer(TBuffer &refBuffer) override;
52
53 // Streamer I/O overload
54 void Streamer(TBuffer &buff, void *pObj, int siz) override
55 {
57 }
58};
59
60#endif
#define b(i)
Definition RSha256.hxx:100
Buffer base class used for serializing objects.
Definition TBuffer.h:43
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition TClass.h:81
Streamer around an arbitrary STL like container, which implements basic container functionality.
void Streamer(TBuffer &refBuffer) override
Streamer Function.
Streamer around a map container.
void ReadMap(UInt_t nElements, TBuffer &b)
UInt_t Size() const override
Return the current number of elements in the container.
void Streamer(TBuffer &refBuffer) override
Streamer Function.
void Streamer(TBuffer &buff, void *pObj, int siz) override
Streamer I/O overload.
TEmulatedMapProxy & operator=(const TEmulatedMapProxy &rhs)
TVirtualCollectionProxy * Generate() const override
Returns a clean object of the actual class that derives from TVirtualCollectionProxy.
void * At(UInt_t idx) override
Return the address of the value at index idx
void ReadBuffer(TBuffer &buff, void *pObj) override
void WriteMap(UInt_t nElements, TBuffer &b)
Defines a common interface to inspect/change the contents of an object that represents a collection.