![]() |
AmpGen 2.1
|
expressions that are (almost) ready to be evaluated. Handles (some) resolution and compilation behaviour, allows management of CompiledExpressions without explicitly referring to their return type, which is specified by template parameter in the implementation CompiledExpression
Definition at line 31 of file CompiledExpressionBase.h.
Public Member Functions | |
CompiledExpressionBase () | |
CompiledExpressionBase (const std::string &name) | |
CompiledExpressionBase (const Expression &expression, const std::string &name, const DebugSymbols &db=DebugSymbols(), const std::map< std::string, unsigned > &evtMapping={}) | |
void | resolve (const MinuitParameterSet *mps=nullptr) |
void | prepare () |
void | compile (const std::string &fname="") |
void | compileBatch (std::ostream &stream) const |
void | compileDetails (std::ostream &stream) const |
void | compileWithParameters (std::ostream &stream) const |
void | to_stream (std::ostream &stream) const |
unsigned int | hash () const |
std::string | name () const |
std::string | progName () const |
std::string | fcnSignature () const |
std::string | fcnSignature (const std::vector< std::string > &argList) const |
virtual bool | link (void *)=0 |
virtual bool | link (const std::string &)=0 |
virtual void | setExternal (const double &, const unsigned &)=0 |
virtual void | resizeExternalCache (const size_t &)=0 |
virtual bool | isReady () const =0 |
virtual std::string | returnTypename () const =0 |
virtual void | print () const =0 |
virtual | ~CompiledExpressionBase () |
virtual unsigned | returnTypeSize () const =0 |
virtual std::vector< std::string > | types () const =0 |
virtual std::vector< real_t > | externBuffer () const =0 |
virtual bool | use_rto () const =0 |
Expression | expression () const |
virtual std::string | arg_type (const unsigned &counter) const =0 |
std::vector< const CacheTransfer * > | orderedCacheFunctors () const |
Protected Attributes | |
Expression | m_obj |
std::string | m_name |
std::string | m_progName |
DebugSymbols | m_db |
std::map< std::string, unsigned > | m_evtMap |
std::vector< std::pair< uint64_t, Expression > > | m_dependentSubexpressions |
std::vector< std::pair< uint64_t, Expression > > | m_debugSubexpressions |
std::vector< std::shared_ptr< CacheTransfer > > | m_cacheTransfers |
std::shared_ptr< ASTResolver > | m_resolver = {nullptr} |
std::vector< std::string > | m_additionalHeaders |
bool | m_disableBatch = {false} |
bool | m_includeParameters = {false} |
bool | m_includePythonBindings = {false} |
AmpGen::CompiledExpressionBase::CompiledExpressionBase | ( | ) |
AmpGen::CompiledExpressionBase::CompiledExpressionBase | ( | const std::string & | name | ) |
AmpGen::CompiledExpressionBase::CompiledExpressionBase | ( | const Expression & | expression, |
const std::string & | name, | ||
const DebugSymbols & | db = DebugSymbols(), | ||
const std::map< std::string, unsigned > & | evtMapping = {} ) |
|
virtual |
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
void AmpGen::CompiledExpressionBase::compile | ( | const std::string & | fname = "" | ) |
void AmpGen::CompiledExpressionBase::compileBatch | ( | std::ostream & | stream | ) | const |
void AmpGen::CompiledExpressionBase::compileDetails | ( | std::ostream & | stream | ) | const |
void AmpGen::CompiledExpressionBase::compileWithParameters | ( | std::ostream & | stream | ) | const |
|
inline |
Definition at line 66 of file CompiledExpressionBase.h.
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
|
inline |
Definition at line 51 of file CompiledExpressionBase.h.
std::string AmpGen::CompiledExpressionBase::fcnSignature | ( | const std::vector< std::string > & | argList | ) | const |
unsigned int AmpGen::CompiledExpressionBase::hash | ( | ) | const |
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
std::string AmpGen::CompiledExpressionBase::name | ( | ) | const |
std::vector< const CacheTransfer * > AmpGen::CompiledExpressionBase::orderedCacheFunctors | ( | ) | const |
void AmpGen::CompiledExpressionBase::prepare | ( | ) |
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
std::string AmpGen::CompiledExpressionBase::progName | ( | ) | const |
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
void AmpGen::CompiledExpressionBase::resolve | ( | const MinuitParameterSet * | mps = nullptr | ) |
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
|
pure virtual |
void AmpGen::CompiledExpressionBase::to_stream | ( | std::ostream & | stream | ) | const |
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
|
pure virtual |
Implemented in AmpGen::CompiledExpression< ret_type(arg_types...)>.
|
protected |
Definition at line 79 of file CompiledExpressionBase.h.
|
protected |
Definition at line 77 of file CompiledExpressionBase.h.
|
protected |
Definition at line 73 of file CompiledExpressionBase.h.
|
protected |
Definition at line 76 of file CompiledExpressionBase.h.
|
protected |
Definition at line 75 of file CompiledExpressionBase.h.
|
protected |
Definition at line 80 of file CompiledExpressionBase.h.
|
protected |
Definition at line 74 of file CompiledExpressionBase.h.
|
protected |
Definition at line 81 of file CompiledExpressionBase.h.
|
protected |
Definition at line 82 of file CompiledExpressionBase.h.
|
protected |
Definition at line 71 of file CompiledExpressionBase.h.
|
protected |
Definition at line 70 of file CompiledExpressionBase.h.
|
protected |
Definition at line 72 of file CompiledExpressionBase.h.
|
protected |
Definition at line 78 of file CompiledExpressionBase.h.