Logo ROOT   6.12/07
Reference Guide
Macros
TBufferJSON.cxx File Reference
#include "TBufferJSON.h"
#include <typeinfo>
#include <string>
#include <string.h>
#include <locale.h>
#include "Compression.h"
#include "TArrayI.h"
#include "TObjArray.h"
#include "TROOT.h"
#include "TClass.h"
#include "TClassTable.h"
#include "TClassEdit.h"
#include "TDataType.h"
#include "TRealData.h"
#include "TDataMember.h"
#include "TMap.h"
#include "TExMap.h"
#include "TMethodCall.h"
#include "TStreamerInfo.h"
#include "TStreamerElement.h"
#include "TProcessID.h"
#include "TFile.h"
#include "TMemberStreamer.h"
#include "TStreamer.h"
#include "TStreamerInfoActions.h"
#include "RVersion.h"
#include "Riostream.h"
#include "RZip.h"
#include "TClonesArray.h"
#include "TVirtualMutex.h"
#include "TInterpreter.h"
Include dependency graph for TBufferJSON.cxx:

Macros

#define FLong64   "%lld"
 
#define FULong64   "%llu"
 
#define TBufferJSON_ReadArray(tname, vname)
 
#define TBufferJSON_ReadFastArray(vname)
 
#define TBufferJSON_ReadStaticArray(vname)
 
#define TBufferJSON_WriteArray(vname, typname)
 
#define TBufferJSON_WriteFastArray(vname, method, typname)
 
#define TJSONPushValue()   if (fValue.Length() > 0) Stack()->PushValue(fValue);
 
#define TJSONWriteArrayCompress(vname, arrsize, typname)
 
#define TJSONWriteConstChar(vname, arrsize, typname)
 

Macro Definition Documentation

◆ FLong64

#define FLong64   "%lld"

Definition at line 73 of file TBufferJSON.cxx.

◆ FULong64

#define FULong64   "%llu"

Definition at line 74 of file TBufferJSON.cxx.

◆ TBufferJSON_ReadArray

#define TBufferJSON_ReadArray (   tname,
  vname 
)
Value:
{ \
if (!vname) return 0; \
return 1; \
}

Definition at line 1802 of file TBufferJSON.cxx.

◆ TBufferJSON_ReadFastArray

#define TBufferJSON_ReadFastArray (   vname)
Value:
{ \
if (n <= 0) return; \
if (!vname) return; \
}
const Int_t n
Definition: legend1.C:16

Definition at line 2134 of file TBufferJSON.cxx.

◆ TBufferJSON_ReadStaticArray

#define TBufferJSON_ReadStaticArray (   vname)
Value:
{ \
if (!vname) return 0; \
return 1; \
}

Definition at line 2005 of file TBufferJSON.cxx.

◆ TBufferJSON_WriteArray

#define TBufferJSON_WriteArray (   vname,
  typname 
)
Value:
{ \
TJSONPushValue(); \
TJSONWriteArrayCompress(vname, n, typname); \
}
const Int_t n
Definition: legend1.C:16

Definition at line 2388 of file TBufferJSON.cxx.

◆ TBufferJSON_WriteFastArray

#define TBufferJSON_WriteFastArray (   vname,
  method,
  typname 
)
Value:
{ \
TJSONPushValue(); \
if (n <= 0) { /*fJsonrCnt++;*/ fValue.Append("[]"); return; } \
TStreamerElement* elem = Stack(0)->fElem; \
if ((elem!=0) && (elem->GetArrayDim()>1) && (elem->GetArrayLength()==n)) { \
TArrayI indexes(elem->GetArrayDim() - 1); \
indexes.Reset(0); \
Int_t cnt = 0, shift = 0, len = elem->GetMaxIndex(indexes.GetSize()); \
while (cnt >= 0) { \
if (indexes[cnt] >= elem->GetMaxIndex(cnt)) { \
fValue.Append("]"); \
indexes[cnt--] = 0; \
if (cnt >= 0) indexes[cnt]++; \
continue; \
} \
fValue.Append(indexes[cnt] == 0 ? "[" : fArraySepar.Data()); \
if (++cnt == indexes.GetSize()) { \
method((vname+shift), len, typname); \
indexes[--cnt]++; \
shift+=len; \
} \
} \
} else { \
method(vname, n, typname); \
} \
}
PyObject * fValue
const Int_t n
Definition: legend1.C:16
const char * cnt
Definition: TXMLSetup.cxx:74

Definition at line 2521 of file TBufferJSON.cxx.

◆ TJSONPushValue

#define TJSONPushValue ( )    if (fValue.Length() > 0) Stack()->PushValue(fValue);

Definition at line 1797 of file TBufferJSON.cxx.

◆ TJSONWriteArrayCompress

#define TJSONWriteArrayCompress (   vname,
  arrsize,
  typname 
)

Definition at line 2325 of file TBufferJSON.cxx.

◆ TJSONWriteConstChar

#define TJSONWriteConstChar (   vname,
  arrsize,
  typname 
)
Value:
{ \
JsonWriteConstChar(vname, arrsize); \
} \

Definition at line 2381 of file TBufferJSON.cxx.