Logo ROOT  
Reference Guide
TFormula.cxx File Reference
#include "TROOT.h"
#include "TBuffer.h"
#include "TMethod.h"
#include "TMath.h"
#include "TF1.h"
#include "TMethodCall.h"
#include <TBenchmark.h>
#include "TError.h"
#include "TInterpreter.h"
#include "TInterpreterValue.h"
#include "TFormula.h"
#include "TRegexp.h"
#include "ROOT/StringUtils.hxx"
#include <array>
#include <cassert>
#include <iostream>
#include <unordered_map>
#include <functional>
#include <set>
#include <sstream>
#include "v5/TFormula.h"
Include dependency graph for TFormula.cxx:


namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.


using TFormulaUpdater_t = void(*)(Int_t nobjects, TObject **from, TObject **to)


static void CallCladFunction (TInterpreter::CallFuncIFacePtr_t::Generic_t FuncPtr, const Double_t *vars, const Double_t *pars, Double_t *result, const Int_t result_size)
static bool DeclareGenerationInput (std::string FuncName, std::string CladStatement, std::string &GenerationInput)
static bool functionExists (const string &Name)
static TInterpreter::CallFuncIFacePtr_t::Generic_t GetFuncPtr (std::string FuncName, Int_t Npar, Int_t Ndim, Bool_t Vectorized)
static void IncludeCladRuntime (Bool_t &IsCladRuntimeIncluded)
static bool IsReservedName (const char *name)
static TInterpreter::CallFuncIFacePtr_t::Generic_t prepareFuncPtr (TMethodCall *method)
static std::unique_ptr< TMethodCallprepareMethod (bool HasParameters, bool HasVariables, const char *FuncName, bool IsVectorized, bool AddCladArrayRef=false)
bool R__SetClonesArrayTFormulaUpdater (TFormulaUpdater_t func)
static void R__v5TFormulaUpdater (Int_t nobjects, TObject **from, TObject **to)


static std::unordered_map< std::string, void * > gClingFunctions = std::unordered_map<std::string, void * >()
static const TString gNamePrefix = "TFormula__"
int R__RegisterTFormulaUpdaterTrigger = R__SetClonesArrayTFormulaUpdater(R__v5TFormulaUpdater)

Typedef Documentation

◆ TFormulaUpdater_t

using TFormulaUpdater_t = void (*)(Int_t nobjects, TObject **from, TObject **to)

Definition at line 281 of file TFormula.cxx.

Function Documentation

◆ CallCladFunction()

static void CallCladFunction ( TInterpreter::CallFuncIFacePtr_t::Generic_t  FuncPtr,
const Double_t vars,
const Double_t pars,
Double_t result,
const Int_t  result_size 

Definition at line 3207 of file TFormula.cxx.

◆ DeclareGenerationInput()

static bool DeclareGenerationInput ( std::string  FuncName,
std::string  CladStatement,
std::string &  GenerationInput 

Definition at line 3183 of file TFormula.cxx.

◆ functionExists()

static bool functionExists ( const string &  Name)

Definition at line 3171 of file TFormula.cxx.

◆ GetFuncPtr()

static TInterpreter::CallFuncIFacePtr_t::Generic_t GetFuncPtr ( std::string  FuncName,
Int_t  Npar,
Int_t  Ndim,
Bool_t  Vectorized 

Definition at line 3198 of file TFormula.cxx.

◆ IncludeCladRuntime()

static void IncludeCladRuntime ( Bool_t IsCladRuntimeIncluded)

Definition at line 3175 of file TFormula.cxx.

◆ IsReservedName()

static bool IsReservedName ( const char *  name)

Definition at line 456 of file TFormula.cxx.

◆ prepareFuncPtr()

static TInterpreter::CallFuncIFacePtr_t::Generic_t prepareFuncPtr ( TMethodCall method)

Definition at line 840 of file TFormula.cxx.

◆ prepareMethod()

static std::unique_ptr< TMethodCall > prepareMethod ( bool  HasParameters,
bool  HasVariables,
const char *  FuncName,
bool  IsVectorized,
bool  AddCladArrayRef = false 

Definition at line 802 of file TFormula.cxx.

◆ R__SetClonesArrayTFormulaUpdater()

bool R__SetClonesArrayTFormulaUpdater ( TFormulaUpdater_t  func)

Definition at line 151 of file TClonesArray.cxx.

◆ R__v5TFormulaUpdater()

static void R__v5TFormulaUpdater ( Int_t  nobjects,
TObject **  from,
TObject **  to 

Definition at line 267 of file TFormula.cxx.

Variable Documentation

◆ gClingFunctions

std::unordered_map<std::string, void *> gClingFunctions = std::unordered_map<std::string, void * >()

Definition at line 265 of file TFormula.cxx.

◆ gNamePrefix

const TString gNamePrefix = "TFormula__"

Definition at line 261 of file TFormula.cxx.

◆ R__RegisterTFormulaUpdaterTrigger

int R__RegisterTFormulaUpdaterTrigger = R__SetClonesArrayTFormulaUpdater(R__v5TFormulaUpdater)

Definition at line 284 of file TFormula.cxx.