Logo ROOT  
Reference Guide
TMapRec Class Reference

Keep track of an object in the mapped file.

A TMapFile contains a list of TMapRec objects which keep track of the actual objects stored in the mapped file.

Definition at line 132 of file TMapFile.h.

Public Member Functions

 TMapRec (const char *name, const TObject *obj, Int_t size, void *buf)
 
 ~TMapRec ()
 Destructor. More...
 
void * GetBuffer (Longptr_t offset=0) const
 
Int_t GetBufSize () const
 
const char * GetClassName (Longptr_t offset=0) const
 
const char * GetName (Longptr_t offset=0) const
 
TMapRecGetNext (Longptr_t offset=0) const
 
TObjectGetObject () const
 This method returns a pointer to the original object. More...
 

Private Member Functions

 TMapRec (const TMapRec &)=delete
 
TMapRecoperator= (const TMapRec &)=delete
 

Private Attributes

void * fBuffer
 Buffer containing object of class name. More...
 
Int_t fBufSize
 Buffer size. More...
 
char * fClassName
 Class name. More...
 
char * fName
 Object name. More...
 
TMapRecfNext
 Next MapRec in list. More...
 
TObjectfObject
 Pointer to original object. More...
 

Friends

class TMapFile
 

#include <TMapFile.h>

Constructor & Destructor Documentation

◆ TMapRec() [1/2]

TMapRec::TMapRec ( const TMapRec )
privatedelete

◆ TMapRec() [2/2]

TMapRec::TMapRec ( const char *  name,
const TObject obj,
Int_t  size,
void *  buf 
)

Definition at line 160 of file TMapFile.cxx.

◆ ~TMapRec()

TMapRec::~TMapRec ( )

Destructor.

Definition at line 173 of file TMapFile.cxx.

Member Function Documentation

◆ GetBuffer()

void * TMapRec::GetBuffer ( Longptr_t  offset = 0) const
inline

Definition at line 152 of file TMapFile.h.

◆ GetBufSize()

Int_t TMapRec::GetBufSize ( ) const
inline

Definition at line 153 of file TMapFile.h.

◆ GetClassName()

const char * TMapRec::GetClassName ( Longptr_t  offset = 0) const
inline

Definition at line 151 of file TMapFile.h.

◆ GetName()

const char * TMapRec::GetName ( Longptr_t  offset = 0) const
inline

Definition at line 150 of file TMapFile.h.

◆ GetNext()

TMapRec * TMapRec::GetNext ( Longptr_t  offset = 0) const
inline

Definition at line 155 of file TMapFile.h.

◆ GetObject()

TObject * TMapRec::GetObject ( ) const

This method returns a pointer to the original object.

NOTE: this pointer is only valid in the process that produces the shared memory file. In a consumer process this pointer is illegal! Be careful.

Definition at line 185 of file TMapFile.cxx.

◆ operator=()

TMapRec & TMapRec::operator= ( const TMapRec )
privatedelete

Friends And Related Function Documentation

◆ TMapFile

friend class TMapFile
friend

Definition at line 134 of file TMapFile.h.

Member Data Documentation

◆ fBuffer

void* TMapRec::fBuffer
private

Buffer containing object of class name.

Definition at line 140 of file TMapFile.h.

◆ fBufSize

Int_t TMapRec::fBufSize
private

Buffer size.

Definition at line 141 of file TMapFile.h.

◆ fClassName

char* TMapRec::fClassName
private

Class name.

Definition at line 138 of file TMapFile.h.

◆ fName

char* TMapRec::fName
private

Object name.

Definition at line 137 of file TMapFile.h.

◆ fNext

TMapRec* TMapRec::fNext
private

Next MapRec in list.

Definition at line 142 of file TMapFile.h.

◆ fObject

TObject* TMapRec::fObject
private

Pointer to original object.

Definition at line 139 of file TMapFile.h.

Libraries for TMapRec:
[legend]

The documentation for this class was generated from the following files: