Logo ROOT   6.08/07
Reference Guide
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
ROOT Namespace Reference

This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecutor::MapReduce. More...

Namespaces

 CocoaTutorials
 
 Detail
 
 ExecutorUtils
 
 Experimental
 
 Fit
 Namespace for the fitting classes.
 
 GLTutorials
 
 Internal
 
 MacOSX
 
 Math
 
 MathMore
 
 Meta
 
 Minuit
 
 Minuit2
 
 Quartz
 
 TF1Helper
 
 TMetaUtils
 
 TreeUtils
 
 TThreadedObjectUtils
 
 v5
 

Classes

class  TGenericClassInfo
 
class  TProcessExecutor
 
class  TRWSpinLock
 
class  TSchemaRule
 
class  TSeq
 A pseudo container class which is a generator of indices. More...
 
class  TSpinMutex
 A spin mutex class which respects the STL interface for mutexes. More...
 
class  TThreadedObject
 A wrapper to make object instances thread private, lazily. More...
 
class  TTreeProcessor
 

Typedefs

typedef void(* DelArrFunc_t) (void *)
 
typedef void(* DelFunc_t) (void *)
 
typedef void(* DesFunc_t) (void *)
 
typedef void(* DirAutoAdd_t) (void *, TDirectory *)
 
typedef std::map< std::string, std::string > MembersMap_t
 
typedef std::map< std::string, ROOT::Internal::TSchemaTypeMembersTypeMap_t
 
typedef Long64_t(* MergeFunc_t) (void *, TCollection *, TFileMergeInfo *)
 
typedef void *(* NewArrFunc_t) (Long_t size, void *arena)
 
typedef void *(* NewFunc_t) (void *)
 
typedef void(* ResetAfterMergeFunc_t) (void *, TFileMergeInfo *)
 
typedef std::map< std::string, std::list< SchemaRuleMap_t > > SchemaRuleClassMap_t
 
typedef std::map< std::string, std::string > SchemaRuleMap_t
 
typedef std::list< std::pair< ROOT::Internal::TSchemaType, std::string > > SourceTypeList_t
 
using TSeqI = TSeq< int >
 
using TSeqL = TSeq< long >
 
using TSeqU = TSeq< unsigned int >
 
using TSeqUL = TSeq< unsigned long >
 

Enumerations

enum  EFromHumanReadableSize { EFromHumanReadableSize::kSuccess, EFromHumanReadableSize::kParseFail, EFromHumanReadableSize::kOverflow }
 
enum  EFunctionMatchMode { kExactMatch = 0, kConversionMatch = 1 }
 
enum  ESTLType {
  kNotSTL = 0, kSTLvector = 1, kSTLlist = 2, kSTLdeque = 3,
  kSTLmap = 4, kSTLmultimap = 5, kSTLset = 6, kSTLmultiset = 7,
  kSTLbitset = 8, kSTLforwardlist = 9, kSTLunorderedset = 10, kSTLunorderedmultiset = 11,
  kSTLunorderedmap = 12, kSTLunorderedmultimap = 13, kSTLend = 14, kSTLany = 300,
  kSTLstring = 365
}
 
enum  EThreadSlotReservation {
  kMaxUserThreadSlot = 20, kPadThreadSlot = 20, kClassThreadSlot = 21, kDirectoryThreadSlot = 22,
  kFileThreadSlot = 23, kPerfStatsThreadSlot = 24, kMaxThreadSlot = 25
}
 

Functions

void AddClass (const char *cname, Version_t id, DictFuncPtr_t dict, Int_t pragmabits)
 
void AddClass (const char *cname, Version_t id, const std::type_info &info, DictFuncPtr_t dict, Int_t pragmabits)
 Global function called by the ctor of a class's init class (see the ClassImp macro). More...
 
void AddClassAlternate (const char *normName, const char *alternate)
 Global function called by GenerateInitInstance. More...
 
void Class_ShowMembers (TClass *cl, const void *obj, TMemberInspector &)
 Indirect call to the implementation of ShowMember allowing [forward] declaration with out a full definition of the TClass class. More...
 
static UInt_t ClassTableHash (const char *name, UInt_t size)
 
TClassCreateClass (const char *cname, Version_t id, const std::type_info &info, TVirtualIsAProxy *isa, const char *dfil, const char *ifil, Int_t dl, Int_t il)
 Global function called by a class' static Dictionary() method (see the ClassDef macro). More...
 
TClassCreateClass (const char *cname, Version_t id, const char *dfil, const char *ifil, Int_t dl, Int_t il)
 Global function called by a class' static Dictionary() method (see the ClassDef macro). More...
 
void DisableImplicitMT ()
 Disables the implicit multi-threading in ROOT. More...
 
void EnableImplicitMT (UInt_t numthreads)
 Globally enables the implicit multi-threading in ROOT, activating the parallel execution of those methods in ROOT that provide an internal parallelisation. More...
 
void EnableThreadSafety ()
 Enables the global mutex to make ROOT thread safe/aware. More...
 
void Error (ErrorHandler_t ErrHand, int code, const char *fmt,...)
 
void Error (ErrorHandler_t func, int code, const char *va_(fmt),...)
 Write error message and call a handler, if required. More...
 
void ErrorInfo (const char *fmt,...)
 
void ErrorInfo (const char *va_(fmt),...)
 Formats a string in a circular formatting buffer and prints the string. More...
 
void ErrorInit (const char *ident)
 
static std::string::size_type FindEndSymbol (std::string &command)
 
template<typename T >
EFromHumanReadableSize FromHumanReadableSize (std::string_view str, T &value)
 Convert strings like the following into byte counts 5MB, 5 MB, 5M, 3.7GB, 123b, 456kB, 3.7GiB, 5MiB with some amount of forgiveness baked into the parsing. More...
 
template<typename T >
TClassGetClass (T *)
 
template<typename T >
TClassGetClass (const T *)
 
template<typename T >
TClassGetClass (T **)
 
template<typename T >
TClassGetClass (const T **)
 
template<typename T >
TClassGetClass (const T *const *)
 
int GetErrno ()
 return errno More...
 
TStringGetMacroPath ()
 
TROOTGetROOT ()
 
void GetRuleIncludes (std::list< std::string > &result)
 Get the list of includes specified in the shema rules. More...
 
bool HasValidDataMembers (SchemaRuleMap_t &rule, MembersTypeMap_t &members)
 Check if given rule contains references to valid data members. More...
 
Bool_t IsImplicitMTEnabled ()
 Returns true if the implicit multi-threading in ROOT is enabled. More...
 
template<class T >
TSeq< T > MakeSeq (T end)
 
template<class T >
TSeq< T > MakeSeq (T begin, T end, T step=1)
 
void NetClose ()
 Empty call, for consistency. More...
 
void NetGetRemoteHost (std::string &openhost)
 Return name of connected host. More...
 
int NetGetSockFd ()
 return open socket descriptor More...
 
int NetParOpen (int port, int size)
 Empty call, for consistency. More...
 
int NetRecv (char *msg, int max)
 Receive a string of maximum length max. More...
 
int NetRecv (char *msg, int len, EMessageTypes &kind)
 Receive a string of maximum len length. More...
 
int NetRecv (void *&buf, int &len, EMessageTypes &kind)
 Receive a buffer. More...
 
int NetRecvRaw (void *buf, int len)
 Receive a buffer of maximum len bytes. More...
 
int NetRecvRaw (int sock, void *buf, int len)
 Receive a buffer of maximum len bytes from generic socket sock. More...
 
int NetSend (int code, EMessageTypes kind)
 Send integer. Message will be of type "kind". More...
 
int NetSend (const char *msg, EMessageTypes kind)
 Send a string. Message will be of type "kind". More...
 
int NetSend (const void *buf, int len, EMessageTypes kind)
 Send buffer of len bytes. Message will be of type "kind". More...
 
int NetSendAck ()
 Send acknowledge code. More...
 
int NetSendError (ERootdErrors err)
 Send error code. More...
 
int NetSendRaw (const void *buf, int len)
 Send buffer of len bytes. More...
 
bool ParseRule (std::string rule, MembersMap_t &result, std::string &error_string)
 
Bool_t ParseRule (std::string command, std::map< std::string, std::string > &result, std::string &error_string)
 Parse the schema rule as specified in the LinkDef file. More...
 
void Perror (char *buf, int size)
 Return in buf the message belonging to errno. More...
 
void ProcessReadPragma (const char *args)
 I am being called when a read pragma is encountered. More...
 
void ProcessReadRawPragma (const char *args)
 I am being called then a readraw pragma is encountered. More...
 
static int Recvn (int sock, void *buffer, int length)
 Receive exactly length bytes into buffer. More...
 
TNamedRegisterClassTemplate (const char *name, const char *file, Int_t line)
 Global function to register the implementation file and line of a class template (i.e. More...
 
void RemoveClass (const char *cname)
 Global function called by the dtor of a class's init class (see the ClassImp macro). More...
 
void ResetClassVersion (TClass *, const char *, Short_t)
 Global function to update the version number. More...
 
void ResetErrno ()
 reset errno More...
 
void RpdAuthCleanup (const char *sstr, int opt)
 
int RpdCleanupAuthTab (const char *crypttoken)
 
int RpdGenRSAKeys (int)
 
void RpdInit (EService serv, int pid, int sproto, unsigned int opts, int rumsk, int sshp, const char *tmpd, const char *asrpp, int login=0)
 
int RpdInitSession (int, std::string &, int &, int &, int &, std::string &)
 
void RpdSetErrorHandler (ErrorHandler_t Err, ErrorHandler_t Sys, ErrorHandler_t Fatal)
 
void RpdSetMethInitFlag (int methinit)
 
template<class RootClass >
Short_t SetClassVersion (RootClass *)
 
void SrvSetSocket (TSocket *Socket)
 Fill socket parameters. More...
 
static void StrReplace (std::string &proc, const std::string &pat, const std::string &tr)
 Replace all accurances of given string with other string. More...
 
template<typename value_type >
void ToHumanReadableSize (value_type bytes, Bool_t si, Double_t *coeff, const char **units)
 Return the size expressed in 'human readable' format. More...
 
static Bool_t ValidateRule (const std::map< std::string, std::string > &rule, std::string &error_string)
 Validate if the user specified rules are correct. More...
 
static void WriteAutoVariables (const std::list< std::string > &target, const SourceTypeList_t &source, MembersTypeMap_t &members, std::string &className, std::string &mappedName, std::ostream &output)
 

Write down the sources

More...
 
void WriteReadRawRuleFunc (SchemaRuleMap_t &rule, int index, std::string &mappedName, MembersTypeMap_t &members, std::ostream &output)
 Write the conversion function for ReadRaw rule, the function name is being written to rule["funcname"]. More...
 
void WriteReadRuleFunc (SchemaRuleMap_t &rule, int index, std::string &mappedName, MembersTypeMap_t &members, std::ostream &output)
 Write the conversion function for Read rule, the function name is being written to rule["funcname"]. More...
 
void WriteSchemaList (std::list< SchemaRuleMap_t > &rules, const std::string &listName, std::ostream &output)
 Write schema rules. More...
 

Variables

ErrorHandler_t gErr
 
ErrorHandler_t gErrFatal
 
ErrorHandler_t gErrSys
 
SchemaRuleClassMap_t gReadRawRules
 
SchemaRuleClassMap_t gReadRules
 
static int gSockFd = -1
 

Detailed Description

This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecutor::MapReduce.

Hold the processed information about a Friend TTree while TTreeProxyGenerator is parsing the TTree information.

Namespace for new ROOT classes and functions.

Also contains the routine use to generate the appropriate code fragment in the result of MakeProxy.

Typedef Documentation

◆ DelArrFunc_t

typedef void(* ROOT::DelArrFunc_t) (void *)

Definition at line 150 of file Rtypes.h.

◆ DelFunc_t

typedef void(* ROOT::DelFunc_t) (void *)

Definition at line 149 of file Rtypes.h.

◆ DesFunc_t

typedef void(* ROOT::DesFunc_t) (void *)

Definition at line 151 of file Rtypes.h.

◆ DirAutoAdd_t

typedef void(* ROOT::DirAutoAdd_t) (void *, TDirectory *)

Definition at line 152 of file Rtypes.h.

◆ MembersMap_t

typedef std::map<std::string, std::string> ROOT::MembersMap_t

Definition at line 36 of file RConversionRuleParser.h.

◆ MembersTypeMap_t

typedef std::map<std::string, ROOT::Internal::TSchemaType> ROOT::MembersTypeMap_t

Definition at line 35 of file RConversionRuleParser.h.

◆ MergeFunc_t

typedef Long64_t(* ROOT::MergeFunc_t) (void *, TCollection *, TFileMergeInfo *)

Definition at line 153 of file Rtypes.h.

◆ NewArrFunc_t

typedef void*(* ROOT::NewArrFunc_t) (Long_t size, void *arena)

Definition at line 148 of file Rtypes.h.

◆ NewFunc_t

typedef void*(* ROOT::NewFunc_t) (void *)

Definition at line 147 of file Rtypes.h.

◆ ResetAfterMergeFunc_t

typedef void(* ROOT::ResetAfterMergeFunc_t) (void *, TFileMergeInfo *)

Definition at line 154 of file Rtypes.h.

◆ SchemaRuleClassMap_t

typedef std::map<std::string, std::list<SchemaRuleMap_t> > ROOT::SchemaRuleClassMap_t

Definition at line 31 of file RConversionRuleParser.h.

◆ SchemaRuleMap_t

typedef std::map<std::string, std::string> ROOT::SchemaRuleMap_t

Definition at line 30 of file RConversionRuleParser.h.

◆ SourceTypeList_t

typedef std::list<std::pair<ROOT::Internal::TSchemaType,std::string> > ROOT::SourceTypeList_t

Definition at line 38 of file RConversionRuleParser.cxx.

◆ TSeqI

using ROOT::TSeqI = typedef TSeq<int>

Definition at line 164 of file TSeq.hxx.

◆ TSeqL

using ROOT::TSeqL = typedef TSeq<long>

Definition at line 166 of file TSeq.hxx.

◆ TSeqU

using ROOT::TSeqU = typedef TSeq<unsigned int>

Definition at line 165 of file TSeq.hxx.

◆ TSeqUL

using ROOT::TSeqUL = typedef TSeq<unsigned long>

Definition at line 167 of file TSeq.hxx.

Enumeration Type Documentation

◆ EFromHumanReadableSize

Enumerator
kSuccess 
kParseFail 
kOverflow 

Definition at line 69 of file StringConv.hxx.

◆ EFunctionMatchMode

Enumerator
kExactMatch 
kConversionMatch 

Definition at line 155 of file TDictionary.h.

◆ ESTLType

Enumerator
kNotSTL 
kSTLvector 
kSTLlist 
kSTLdeque 
kSTLmap 
kSTLmultimap 
kSTLset 
kSTLmultiset 
kSTLbitset 
kSTLforwardlist 
kSTLunorderedset 
kSTLunorderedmultiset 
kSTLunorderedmap 
kSTLunorderedmultimap 
kSTLend 
kSTLany 
kSTLstring 

Definition at line 28 of file ESTLType.h.

◆ EThreadSlotReservation

Enumerator
kMaxUserThreadSlot 
kPadThreadSlot 
kClassThreadSlot 
kDirectoryThreadSlot 
kFileThreadSlot 
kPerfStatsThreadSlot 
kMaxThreadSlot 

Definition at line 21 of file TThreadSlots.h.

Function Documentation

◆ AddClass() [1/2]

void ROOT::AddClass ( const char *  cname,
Version_t  id,
DictFuncPtr_t  dict,
Int_t  pragmabits 
)

◆ AddClass() [2/2]

void ROOT::AddClass ( const char *  cname,
Version_t  id,
const std::type_info &  info,
DictFuncPtr_t  dict,
Int_t  pragmabits 
)

Global function called by the ctor of a class's init class (see the ClassImp macro).

Definition at line 708 of file TClassTable.cxx.

◆ AddClassAlternate()

void ROOT::AddClassAlternate ( const char *  normName,
const char *  alternate 
)

Global function called by GenerateInitInstance.

(see the ClassImp macro).

Definition at line 720 of file TClassTable.cxx.

◆ Class_ShowMembers()

void ROOT::Class_ShowMembers ( TClass cl,
const void obj,
TMemberInspector insp 
)

Indirect call to the implementation of ShowMember allowing [forward] declaration with out a full definition of the TClass class.

Definition at line 513 of file TClass.cxx.

◆ ClassTableHash()

static UInt_t ROOT::ClassTableHash ( const char *  name,
UInt_t  size 
)
static

Definition at line 195 of file TClassTable.cxx.

◆ CreateClass() [1/2]

TClass * ROOT::CreateClass ( const char *  cname,
Version_t  id,
const std::type_info &  info,
TVirtualIsAProxy isa,
const char *  dfil,
const char *  ifil,
Int_t  dl,
Int_t  il 
)

Global function called by a class' static Dictionary() method (see the ClassDef macro).

Definition at line 5514 of file TClass.cxx.

◆ CreateClass() [2/2]

TClass * ROOT::CreateClass ( const char *  cname,
Version_t  id,
const char *  dfil,
const char *  ifil,
Int_t  dl,
Int_t  il 
)

Global function called by a class' static Dictionary() method (see the ClassDef macro).

Definition at line 5529 of file TClass.cxx.

◆ DisableImplicitMT()

void ROOT::DisableImplicitMT ( )

Disables the implicit multi-threading in ROOT.

Definition at line 532 of file TROOT.cxx.

◆ EnableImplicitMT()

void ROOT::EnableImplicitMT ( UInt_t  numthreads)

Globally enables the implicit multi-threading in ROOT, activating the parallel execution of those methods in ROOT that provide an internal parallelisation.

The 'numthreads' parameter allows to control the number of threads to be used by the implicit multi-threading. However, this parameter is just a hint for ROOT, which will try to satisfy the request if the execution scenario allows it. For example, if ROOT is configured to use an external scheduler, setting a value for 'numthreads' might not have any effect.

Parameters
[in]numthreadsNumber of threads to use. If not specified or set to zero, the number of threads is automatically decided by the implementation. Any other value is used as a hint.

Definition at line 518 of file TROOT.cxx.

◆ EnableThreadSafety()

void ROOT::EnableThreadSafety ( )

Enables the global mutex to make ROOT thread safe/aware.

Definition at line 498 of file TROOT.cxx.

◆ Error() [1/2]

void ROOT::Error ( ErrorHandler_t  ErrHand,
int  code,
const char *  fmt,
  ... 
)

◆ Error() [2/2]

void ROOT::Error ( ErrorHandler_t  func,
int  code,
const char *  va_fmt,
  ... 
)

Write error message and call a handler, if required.

Definition at line 577 of file DaemonUtils.cxx.

◆ ErrorInfo() [1/2]

void ROOT::ErrorInfo ( const char *  fmt,
  ... 
)

◆ ErrorInfo() [2/2]

void ROOT::ErrorInfo ( const char *  va_fmt,
  ... 
)

Formats a string in a circular formatting buffer and prints the string.

Appends a newline. Cut & Paste from Printf in base/src/TString.cxx

Definition at line 563 of file DaemonUtils.cxx.

◆ ErrorInit()

void ROOT::ErrorInit ( const char *  ident)

◆ FindEndSymbol()

static std::string::size_type ROOT::FindEndSymbol ( std::string &  command)
static

Definition at line 49 of file RConversionRuleParser.cxx.

◆ FromHumanReadableSize()

template<typename T >
EFromHumanReadableSize ROOT::FromHumanReadableSize ( std::string_view  str,
T &  value 
)

Convert strings like the following into byte counts 5MB, 5 MB, 5M, 3.7GB, 123b, 456kB, 3.7GiB, 5MiB with some amount of forgiveness baked into the parsing.

For this routine we use the official SI unit where the [i] is reserved for the 'legacy' power of two units. 1KB = 1000 bytes, 1KiB = 1024 bytes.

Parameters
strthe string to be parsed
valuewill be updated with the result if and only if the parse is successful and does not overflow for the type of value.
Returns
return a EFromHumanReadableSize enum value indicating the success or failure of the parse.

Definition at line 86 of file StringConv.hxx.

◆ GetClass() [1/5]

template<typename T >
TClass* ROOT::GetClass ( T *  )

Definition at line 555 of file TClass.h.

◆ GetClass() [2/5]

template<typename T >
TClass* ROOT::GetClass ( const T *  )

Definition at line 556 of file TClass.h.

◆ GetClass() [3/5]

template<typename T >
TClass* ROOT::GetClass ( T **  )

Definition at line 561 of file TClass.h.

◆ GetClass() [4/5]

template<typename T >
TClass * ROOT::GetClass ( const T **  )

Definition at line 562 of file TClass.h.

◆ GetClass() [5/5]

template<typename T >
TClass* ROOT::GetClass ( const T *const *  )

Definition at line 564 of file TClass.h.

◆ GetErrno()

int ROOT::GetErrno ( )

return errno

Definition at line 523 of file DaemonUtils.cxx.

◆ GetMacroPath()

TString& ROOT::GetMacroPath ( )

Definition at line 491 of file TROOT.cxx.

◆ GetROOT()

TROOT * ROOT::GetROOT ( )

Definition at line 487 of file TROOT.cxx.

◆ GetRuleIncludes()

void ROOT::GetRuleIncludes ( std::list< std::string > &  result)

Get the list of includes specified in the shema rules.

Definition at line 831 of file RConversionRuleParser.cxx.

◆ HasValidDataMembers()

Bool_t ROOT::HasValidDataMembers ( SchemaRuleMap_t rule,
MembersTypeMap_t members 
)

Check if given rule contains references to valid data members.

Definition at line 435 of file RConversionRuleParser.cxx.

◆ IsImplicitMTEnabled()

Bool_t ROOT::IsImplicitMTEnabled ( )

Returns true if the implicit multi-threading in ROOT is enabled.

Definition at line 545 of file TROOT.cxx.

◆ MakeSeq() [1/2]

template<class T >
TSeq<T> ROOT::MakeSeq ( end)

Definition at line 170 of file TSeq.hxx.

◆ MakeSeq() [2/2]

template<class T >
TSeq<T> ROOT::MakeSeq ( begin,
end,
step = 1 
)

Definition at line 176 of file TSeq.hxx.

◆ NetClose()

void ROOT::NetClose ( )

Empty call, for consistency.

Definition at line 361 of file DaemonUtils.cxx.

◆ NetGetRemoteHost()

void ROOT::NetGetRemoteHost ( std::string &  openhost)

Return name of connected host.

Definition at line 514 of file DaemonUtils.cxx.

◆ NetGetSockFd()

int ROOT::NetGetSockFd ( )

return open socket descriptor

Definition at line 369 of file DaemonUtils.cxx.

◆ NetParOpen()

int ROOT::NetParOpen ( int  port,
int  size 
)

Empty call, for consistency.

Definition at line 377 of file DaemonUtils.cxx.

◆ NetRecv() [1/3]

int ROOT::NetRecv ( char *  msg,
int  max 
)

Receive a string of maximum length max.

Definition at line 388 of file DaemonUtils.cxx.

◆ NetRecv() [2/3]

int ROOT::NetRecv ( char *  msg,
int  len,
EMessageTypes kind 
)

Receive a string of maximum len length.

Returns message type in kind. Return value is msg length.

Definition at line 397 of file DaemonUtils.cxx.

◆ NetRecv() [3/3]

int ROOT::NetRecv ( void *&  buf,
int &  len,
EMessageTypes kind 
)

Receive a buffer.

Returns the newly allocated buffer, the length of the buffer and message type in kind.

Definition at line 409 of file DaemonUtils.cxx.

◆ NetRecvRaw() [1/2]

int ROOT::NetRecvRaw ( void buf,
int  len 
)

Receive a buffer of maximum len bytes.

Definition at line 430 of file DaemonUtils.cxx.

◆ NetRecvRaw() [2/2]

int ROOT::NetRecvRaw ( int  sock,
void buf,
int  len 
)

Receive a buffer of maximum len bytes from generic socket sock.

Definition at line 438 of file DaemonUtils.cxx.

◆ NetSend() [1/3]

int ROOT::NetSend ( int  code,
EMessageTypes  kind 
)

Send integer. Message will be of type "kind".

Definition at line 453 of file DaemonUtils.cxx.

◆ NetSend() [2/3]

int ROOT::NetSend ( const char *  msg,
EMessageTypes  kind 
)

Send a string. Message will be of type "kind".

Definition at line 467 of file DaemonUtils.cxx.

◆ NetSend() [3/3]

int ROOT::NetSend ( const void buf,
int  len,
EMessageTypes  kind 
)

Send buffer of len bytes. Message will be of type "kind".

Definition at line 475 of file DaemonUtils.cxx.

◆ NetSendAck()

int ROOT::NetSendAck ( )

Send acknowledge code.

Definition at line 490 of file DaemonUtils.cxx.

◆ NetSendError()

int ROOT::NetSendError ( ERootdErrors  err)

Send error code.

Definition at line 498 of file DaemonUtils.cxx.

◆ NetSendRaw()

int ROOT::NetSendRaw ( const void buf,
int  len 
)

Send buffer of len bytes.

Definition at line 506 of file DaemonUtils.cxx.

◆ ParseRule() [1/2]

bool ROOT::ParseRule ( std::string  rule,
MembersMap_t result,
std::string &  error_string 
)

◆ ParseRule() [2/2]

Bool_t ROOT::ParseRule ( std::string  command,
std::map< std::string, std::string > &  result,
std::string &  error_string 
)

Parse the schema rule as specified in the LinkDef file.

Definition at line 90 of file RConversionRuleParser.cxx.

◆ Perror()

void ROOT::Perror ( char *  buf,
int  size 
)

Return in buf the message belonging to errno.

Definition at line 546 of file DaemonUtils.cxx.

◆ ProcessReadPragma()

void ROOT::ProcessReadPragma ( const char *  args)

I am being called when a read pragma is encountered.

Definition at line 875 of file RConversionRuleParser.cxx.

◆ ProcessReadRawPragma()

void ROOT::ProcessReadRawPragma ( const char *  args)

I am being called then a readraw pragma is encountered.

Definition at line 910 of file RConversionRuleParser.cxx.

◆ Recvn()

static int ROOT::Recvn ( int  sock,
void buffer,
int  length 
)
static

Receive exactly length bytes into buffer.

Returns number of bytes received. Returns -1 in case of error.

Definition at line 336 of file DaemonUtils.cxx.

◆ RegisterClassTemplate()

TNamed * ROOT::RegisterClassTemplate ( const char *  name,
const char *  file,
Int_t  line 
)

Global function to register the implementation file and line of a class template (i.e.

NOT a concrete class).

Definition at line 796 of file TClassTable.cxx.

◆ RemoveClass()

void ROOT::RemoveClass ( const char *  cname)

Global function called by the dtor of a class's init class (see the ClassImp macro).

Definition at line 771 of file TClassTable.cxx.

◆ ResetClassVersion()

void ROOT::ResetClassVersion ( TClass cl,
const char *  cname,
Short_t  newid 
)

Global function to update the version number.

This is called via the RootClassVersion macro.

if cl!=0 and cname==-1, set the new class version if and only is greater than the existing one and greater or equal to 2; and also ignore the request if fVersionUsed is true.

Note on class version number:

  • If no class has been specified, TClass::GetVersion will return -1
  • The Class Version 0 request the whole object to be transient
  • The Class Version 1, unless specify via ClassDef indicates that the I/O should use the TClass checksum to distinguish the layout of the class

Definition at line 739 of file TClassTable.cxx.

◆ ResetErrno()

void ROOT::ResetErrno ( )

reset errno

Definition at line 534 of file DaemonUtils.cxx.

◆ RpdAuthCleanup()

void ROOT::RpdAuthCleanup ( const char *  sstr,
int  opt 
)

◆ RpdCleanupAuthTab()

int ROOT::RpdCleanupAuthTab ( const char *  crypttoken)

◆ RpdGenRSAKeys()

int ROOT::RpdGenRSAKeys ( int  )

◆ RpdInit()

void ROOT::RpdInit ( EService  serv,
int  pid,
int  sproto,
unsigned int  opts,
int  rumsk,
int  sshp,
const char *  tmpd,
const char *  asrpp,
int  login = 0 
)

◆ RpdInitSession()

int ROOT::RpdInitSession ( int  ,
std::string &  ,
int &  ,
int &  ,
int &  ,
std::string &   
)

◆ RpdSetErrorHandler()

void ROOT::RpdSetErrorHandler ( ErrorHandler_t  Err,
ErrorHandler_t  Sys,
ErrorHandler_t  Fatal 
)

◆ RpdSetMethInitFlag()

void ROOT::RpdSetMethInitFlag ( int  methinit)

◆ SetClassVersion()

template<class RootClass >
Short_t ROOT::SetClassVersion ( RootClass *  )

◆ SrvSetSocket()

void ROOT::SrvSetSocket ( TSocket Socket)

Fill socket parameters.

Definition at line 326 of file DaemonUtils.cxx.

◆ StrReplace()

static void ROOT::StrReplace ( std::string &  proc,
const std::string &  pat,
const std::string &  tr 
)
static

Replace all accurances of given string with other string.

Definition at line 733 of file RConversionRuleParser.cxx.

◆ ToHumanReadableSize()

template<typename value_type >
void ROOT::ToHumanReadableSize ( value_type  bytes,
Bool_t  si,
Double_t coeff,
const char **  units 
)

Return the size expressed in 'human readable' format.

Parameters
bytesthe size in bytes to be converted
siwhether to use the SI units or not.
coeffreturn the size expressed in the new unit.
unitsreturn a pointer to the string representation of the new unit

Definition at line 38 of file StringConv.hxx.

◆ ValidateRule()

static Bool_t ROOT::ValidateRule ( const std::map< std::string, std::string > &  rule,
std::string &  error_string 
)
static

Validate if the user specified rules are correct.

Definition at line 264 of file RConversionRuleParser.cxx.

◆ WriteAutoVariables()

static void ROOT::WriteAutoVariables ( const std::list< std::string > &  target,
const SourceTypeList_t source,
MembersTypeMap_t members,
std::string &  className,
std::string &  mappedName,
std::ostream &  output 
)
static


Write down the sources

Definition at line 466 of file RConversionRuleParser.cxx.

◆ WriteReadRawRuleFunc()

void ROOT::WriteReadRawRuleFunc ( SchemaRuleMap_t rule,
int  index,
std::string &  mappedName,
MembersTypeMap_t members,
std::ostream &  output 
)

Write the conversion function for ReadRaw rule, the function name is being written to rule["funcname"].

Definition at line 684 of file RConversionRuleParser.cxx.

◆ WriteReadRuleFunc()

void ROOT::WriteReadRuleFunc ( SchemaRuleMap_t rule,
int  index,
std::string &  mappedName,
MembersTypeMap_t members,
std::ostream &  output 
)

Write the conversion function for Read rule, the function name is being written to rule["funcname"].

Definition at line 631 of file RConversionRuleParser.cxx.

◆ WriteSchemaList()

void ROOT::WriteSchemaList ( std::list< SchemaRuleMap_t > &  rules,
const std::string &  listName,
std::ostream &  output 
)

Write schema rules.

Definition at line 755 of file RConversionRuleParser.cxx.

Variable Documentation

◆ gErr

ErrorHandler_t ROOT::gErr

◆ gErrFatal

ErrorHandler_t ROOT::gErrFatal

◆ gErrSys

ErrorHandler_t ROOT::gErrSys

◆ gReadRawRules

SchemaRuleClassMap_t ROOT::gReadRawRules

Definition at line 45 of file RConversionRuleParser.cxx.

◆ gReadRules

SchemaRuleClassMap_t ROOT::gReadRules

Definition at line 44 of file RConversionRuleParser.cxx.

◆ gSockFd

int ROOT::gSockFd = -1
static

Definition at line 321 of file DaemonUtils.cxx.