Logo ROOT   6.10/09
Reference Guide
Classes | Namespaces | Macros | Functions
Ttypes.h File Reference
#include "Rtypes.h"
Include dependency graph for Ttypes.h:
This graph shows which files directly or indirectly include this file:

Classes

class  ROOT::Internal::TTableInitBehavior< T >
 

Namespaces

 ROOT
 Namespace for new ROOT classes and functions.
 
 ROOT::Internal
 

Macros

#define _QUOTE2_(name1, name2)   _QUOTE_(_NAME1_(name1)name2)
 
#define _TableClassImp_(className, structName)
 
#define ClassDefChair(className, structName)
 
#define ClassDefineChair(classChairName, classTableName, structName)
 
#define ClassDefTable(className, structName)
 
#define TableClassImp(className, structName)
 
#define TableClassImpl(className, structName)
 
#define TableClassStreamerImp(className)
 
#define TableImp(name)   TableClassImp(_NAME2_(St_,name),_QUOTE2_(St_,name))
 
#define TableImpl(name)
 

Functions

template<class RootClass >
const TTableInitBehavior< RootClass > * ROOT::Internal::DefineBehavior (TTable *, RootClass *)
 

Macro Definition Documentation

◆ _QUOTE2_

#define _QUOTE2_ (   name1,
  name2 
)    _QUOTE_(_NAME1_(name1)name2)

Definition at line 32 of file Ttypes.h.

◆ _TableClassImp_

#define _TableClassImp_ (   className,
  structName 
)

Definition at line 39 of file Ttypes.h.

◆ ClassDefChair

#define ClassDefChair (   className,
  structName 
)
Value:
public: \
typedef structName* iterator; \
structName *GetTable(Int_t i) const { \
if (fLastIndx != UInt_t(i)) { \
((_NAME2_(className,C) *)this)->fLastIndx = i; \
((_NAME2_(className,C) *)this)->fLastRow = \
((className *)GetThisTable())->GetTable(i); \
}; return (structName *)fLastRow; } \
structName &operator[](Int_t i){ assert(i>=0 && i < GetNRows()); return *GetTable(i); } \
const structName &operator[](Int_t i) const { assert(i>=0 && i < GetNRows()); return *((const structName *)(GetTable(i))); }\
structName *begin() const { return GetNRows()? GetTable(0):0;}\
structName *end() const {Int_t i = GetNRows(); return i? GetTable(i):0;}
int Int_t
Definition: RtypesCore.h:41
static double C[]
unsigned int UInt_t
Definition: RtypesCore.h:42
#define _NAME2_(name1, name2)
Definition: RConfig.h:433

Definition at line 113 of file Ttypes.h.

◆ ClassDefineChair

#define ClassDefineChair (   classChairName,
  classTableName,
  structName 
)
Value:
public: \
typedef structName* iterator; \
structName *GetTable(Int_t i) const { \
if (fLastIndx != UInt_t(i)) { \
((classChairName *)this)->fLastIndx = i; \
((classChairName *)this)->fLastRow = \
((classTableName *)GetThisTable())->GetTable(i); \
}; return (structName *)fLastRow; }; \
structName &operator[](Int_t i){ assert(i>=0 && i < GetNRows()); return *GetTable(i); } \
const structName &operator[](Int_t i) const { assert(i>=0 && i < GetNRows()); return *((const structName *)(GetTable(i))); }\
structName *begin() const { return GetNRows()? GetTable(0):0;}\
structName *end() const {Int_t i = GetNRows(); return i? GetTable(i):0;}
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42

Definition at line 95 of file Ttypes.h.

◆ ClassDefTable

#define ClassDefTable (   className,
  structName 
)
Value:
public: \
static const char* TableDictionary(); \
protected: \
static TTableDescriptor *fgColDescriptors; \
virtual TTableDescriptor *GetDescriptorPointer() const { return fgColDescriptors;} \
virtual void SetDescriptorPointer(TTableDescriptor *list) { fgColDescriptors = list;} \
public: \
typedef structName* iterator; \
className() : TTable(_QUOTE_(className),sizeof(structName)) {SetType(_QUOTE_(structName));} \
className(const char *name) : TTable(name,sizeof(structName)) {SetType(_QUOTE_(structName));} \
className(Int_t n) : TTable(_QUOTE_(className),n,sizeof(structName)) {SetType(_QUOTE_(structName));}\
className(const char *name,Int_t n) : TTable(name,n,sizeof(structName)) {SetType(_QUOTE_(structName));}\
structName *GetTable(Int_t i=0) const { return ((structName *)GetArray())+i;} \
structName &operator[](Int_t i){ assert(i>=0 && i < GetNRows()); return *GetTable(i); } \
const structName &operator[](Int_t i) const { assert(i>=0 && i < GetNRows()); return *((const structName *)(GetTable(i))); } \
structName *begin() const { return GetNRows()? GetTable(0):0;}\
structName *end() const {Long_t i = GetNRows(); return i? GetTable(i):0;}
int Int_t
Definition: RtypesCore.h:41
#define _QUOTE_(name)
Definition: RConfig.h:436
long Long_t
Definition: RtypesCore.h:50
Definition: TTable.h:48
const Int_t n
Definition: legend1.C:16

Definition at line 66 of file Ttypes.h.

◆ TableClassImp

#define TableClassImp (   className,
  structName 
)
Value:
const char* className::TableDictionary() \
{return TTable::TableDictionary(_QUOTE_(className),_QUOTE_(structName),fgColDescriptors);}\
_TableClassImp_(className,structName)
static const char * TableDictionary()
Definition: TTable.h:263
#define _QUOTE_(name)
Definition: RConfig.h:436

Definition at line 47 of file Ttypes.h.

◆ TableClassImpl

#define TableClassImpl (   className,
  structName 
)
Value:
TTableDescriptor *className::fgColDescriptors = 0; \
TableClassImp(className,structName) \
TableClassStreamerImp(className)

Definition at line 53 of file Ttypes.h.

◆ TableClassStreamerImp

#define TableClassStreamerImp (   className)
Value:
void className::Streamer(TBuffer &R__b) { \
TTable::Streamer(R__b); }
Buffer base class used for serializing objects.
Definition: TBuffer.h:40

Definition at line 42 of file Ttypes.h.

◆ TableImp

#define TableImp (   name)    TableClassImp(_NAME2_(St_,name),_QUOTE2_(St_,name))

Definition at line 64 of file Ttypes.h.

◆ TableImpl

#define TableImpl (   name)
Value:
TTableDescriptor *_NAME2_(St_,name)::fgColDescriptors = 0; \
TableClassImp(_NAME2_(St_,name), _NAME2_(name,_st)) \
TableClassStreamerImp(_NAME2_(St_,name))
#define _NAME2_(name1, name2)
Definition: RConfig.h:433

Definition at line 59 of file Ttypes.h.