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:

Typedefs

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

Functions

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)
 

Variables

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 
)
static

Definition at line 3206 of file TFormula.cxx.

◆ DeclareGenerationInput()

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

Definition at line 3182 of file TFormula.cxx.

◆ functionExists()

static bool functionExists ( const string &  Name)
static

Definition at line 3170 of file TFormula.cxx.

◆ GetFuncPtr()

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

Definition at line 3197 of file TFormula.cxx.

◆ IncludeCladRuntime()

static void IncludeCladRuntime ( Bool_t IsCladRuntimeIncluded)
static

Definition at line 3174 of file TFormula.cxx.

◆ IsReservedName()

static bool IsReservedName ( const char *  name)
static

Definition at line 456 of file TFormula.cxx.

◆ prepareFuncPtr()

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

Definition at line 839 of file TFormula.cxx.

◆ prepareMethod()

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

Definition at line 801 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 
)
static

Definition at line 267 of file TFormula.cxx.

Variable Documentation

◆ gClingFunctions

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

Definition at line 265 of file TFormula.cxx.

◆ gNamePrefix

const TString gNamePrefix = "TFormula__"
static

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.