MC++
|
Class defining variables in a factorable function. More...
#include <ffunc.hpp>
Public Types | |
enum | TYPE { VAR =0, AUX, CINT, CREAL } |
Enumeration type for variables in factorable function. More... | |
typedef std::pair< TYPE, long > | pt_idVar |
Typedef for variable identifier in factorable function. | |
Public Member Functions | |
FFVar (FFGraph *dag) | |
Constructor for variable in DAG *dag | |
FFVar & | set (FFGraph *dag) |
Attach variable to DAG *dag. | |
FFVar (const int i=0) | |
Constructor for integer constant. | |
FFVar (const double d) | |
Constructor for real parameter. | |
FFVar (const FFVar &Var) | |
Copy constructor. | |
const std::pair< TYPE, long > | id () const |
Get variable identifier. | |
std::pair< TYPE, long > & | id () |
Get reference to variable identifier. | |
const FFNum & | num () const |
Get const reference to variable numeric field. | |
const FFDep & | dep () const |
Get const reference to variable dependencies. | |
FFDep & | dep () |
Get reference to variable dependencies. | |
const pt_Ops | ops () const |
Get const pointer to defining operation. | |
pt_Ops & | ops () |
Get pointer to defining operation. | |
const FFGraph * | dag () const |
Get const pointer to factorable function. | |
FFGraph *& | dag () |
Get pointer to factorable function dag. | |
void *& | val () |
Get pointer to value field. | |
template<typename U > | |
void | reset_val (const U &U_dum) |
Get pointer to value field. | |
std::string | name () const |
Get variable name. | |
Static Public Attributes | |
static const long | NOREF = -33 |
Index for 'free' variables in factorable function. | |
mc::FFVar is a C++ class defining variables in the factored form of a factorable function.