|
|
| Attribute (const std::string &name, Prototype *proto, const bool &pub, const bool &obs, const double &val) |
| | Constructors: must provide name (XML), Prototype, public/observable status, and the member variable.
|
| |
|
| Attribute (const std::string &name, Prototype *proto, const bool &pub, const bool &obs, const int &val) |
| |
|
| Attribute (const std::string &name, Prototype *proto, const bool &pub, const bool &obs, const long &val) |
| |
|
| Attribute (const std::string &name, Prototype *proto, const bool &pub, const bool &obs, const unsigned &val) |
| |
|
| Attribute (const std::string &name, Prototype *proto, const bool &pub, const bool &obs, const bool &val) |
| |
|
| Attribute (const std::string &name, Prototype *proto, const bool &pub, const bool &obs, const std::string &val) |
| |
|
| Attribute (const std::string &name, Prototype *proto, const bool &pub, const bool &obs, const PulseAxis &val) |
| |
|
| Attribute (const std::string &name, Prototype *proto, const bool &pub, const bool &obs) |
| | Constructor for an unobservable Attribute which does not represent a member variable.
|
| |
|
virtual | ~Attribute () |
| | Destructor deletes local copies of Prototype member variables.
|
| |
| bool | IsPublic () const |
| | Check, if this attribute is public for manipulation through XML.
|
| |
| void | SetPublic (bool val) |
| | Set this attribute to be public for manipulation through XML.
|
| |
| bool | IsObservable () const |
| | Check, if this attribute is observable by other attributes.
|
| |
| void | SetObservable (bool val) |
| | Set this attribute to be observable by other attributes.
|
| |
| bool | IsDynamic () const |
| | Check, if this attribute is dynamic. This is needed for exporting static XML Files of the Sequence.
|
| |
| void | SetDynamic (bool val) |
| | Set this attribute to be dynamic.
|
| |
| int | GetDiff () |
| | Get the number of symbolic differentiations of the attribute's expression.
|
| |
| double | GetImaginary () |
| | Get the imaginary part the attribute's evaluation.
|
| |
| bool | IsComplex () const |
| | Check, if this attribute's evaluation is complex.
|
| |
| void | SetDiff (int val=0, std::string sym="diff") |
| | Set the number of symbolic differentiations of the attribute's expression.
|
| |
| std::string | GetName () const |
| | Get the name of the attribute.
|
| |
| std::string | GetTypeID () const |
| | Get the type ID of the attribute.
|
| |
| void * | GetAddress () const |
| | Get the pointer to the value represented by this attribute.
|
| |
| Prototype * | GetPrototype () const |
| | Get the pointer to the Prototype to which this attribute belongs.
|
| |
| std::string | GetSymbol () |
| | Get the GiNaC symbol of this attribute.
|
| |
| std::string | GetFormula () |
| | Get the GiNaC formula of this attribute.
|
| |
| bool | SetMember (std::string expr, const std::vector< Attribute * > &obs_attribs, const std::vector< std::string > &obs_attrib_keyword, bool verbose=false) |
| | Set the Prototype's private member represented by this attribute. The function performs the following tasks:
|
| |
| void | EvalExpression () |
| | Evaluate the GiNaC expression of this attribute.
|
| |
|
std::vector< Attribute * > | GetObservers () |
| | Return the observers.
|
| |
|
std::vector< Attribute * > | GetSubjects () |
| | Return the subjects.
|
| |
| double | EvalCompiledExpression (double const val, std::string const attrib) |
| | Evaluate the compiled GiNaC expression of this attribute.
|
| |
| double | EvalCompiledNLGExpression (double const x, double const y, double const z, double const g) |
| | Evaluate the compiled GiNaC expression of the NLG attribute (nonlinear gradients)
|
| |
|
bool | HasGinacExCompiler () |
| | True, if GiNaC external compiler is available on this system.
|
| |
|
int | GetNumberFunctionPointers () |
| | Return the total number of function pointers.
|
| |
|
int | GetCurrentFunctionPointer () |
| | Return the counter to the current function pointer.
|
| |
|
void | ResetCurrentFunctionPointer () |
| | Set the counter to the current function pointer to zero.
|
| |
|
void | StepCurrentFunctionPointer () |
| | Increase the counter to the current function pointer by one.
|
| |
| template<typename T > |
| bool | Notify (const T &val) |
| | Notify all observers.
|
| |
| template<typename T > |
| bool | NewState (const T &val) |
| | Check the state of the value represented by this attribute.
|
| |
| void | AttachObserver (Attribute *attrib) |
| | Append a new observer of this attribute.
|
| |
| void | AttachSubject (Attribute *attrib) |
| | Append a new subject observed by this this attribute.
|
| |
|
|
bool | m_public |
| | Indicating whether the attribute is accessible through XML.
|
| |
|
bool | m_observable |
| | Indicating whether the attribute is observable.
|
| |
|
bool | m_dynamic |
| | Indicating whether the attribute dynamically changes its value in runtime.
|
| |
|
std::string | m_name |
| | Name of the attribute (in XML).
|
| |
|
void * | m_address |
| | Pointer to the Prototype member variable, which is represented by this attribute.
|
| |
|
std::string | m_datatype |
| | Type of the Prototype member variable, which is represented by this attribute.
|
| |
|
void * | m_backup |
| | Backup value of the Prototype member variable, which is represented by this attribute.
|
| |
|
Prototype * | m_prototype |
| | Pointer to the Prototype object, which instantiated this attribute.
|
| |
|
std::string | m_symbol_name |
| | GiNaC symbol name of the attribute.
|
| |
|
std::string | m_sym_diff |
| | GiNaC symbol name for symbolic derivative.
|
| |
|
std::string | m_formula |
| | Mathematical formula of the attribute (in XML) for GiNaC evaluation.
|
| |
|
GiNaC::ex | m_expression |
| | GiNaC Mathematical expression of the attribute.
|
| |
|
GiNaC::lst | m_symlist |
| | GiNaC list of all symbols involved in the calculation.
|
| |
|
bool | m_ginac_excomp |
| | True, if GiNaC external compiler is available on this system.
|
| |
|
unsigned int | m_num_fp |
| | Number of GiNaC expression function pointers owned by this attribute.
|
| |
|
unsigned int | m_cur_fp |
| | Current GiNaC expression function pointer.
|
| |
|
std::vector< bool > | m_compiled |
| | True, if GiNaC expression is compiled successfully in run time.
|
| |
|
std::vector< GiNaC::FUNCP_1P > | m_fp |
| | Function pointers to GiNaC expression evaluation.
|
| |
|
std::vector< GiNaC::FUNCP_1P > | m_fpi |
| | Function pointers to GiNaC expression evaluation of imaginary part.
|
| |
|
FUNCP_4P | m_nlgfp |
| | Function pointer to GiNaC expression evaluation of nonlinear gradients.
|
| |
|
int | m_diff |
| | Number of symbolic differentiations of the attribute's expression.
|
| |
|
bool | m_complex |
| | If symbolic expressions are complex, the imaginary part is considered.
|
| |
|
double | m_imaginary |
| | The imaginary part of complex expression evaluation.
|
| |
|
std::vector< Attribute * > | m_subjects |
| | Vector of attributes under observation by this attribute.
|
| |
|
std::vector< Attribute * > | m_observers |
| | Vector of attributes observing this attribute
|
| |
Attribute class. Attributes are private member variables of a Prototype which are accessible through XML and, thus, they are subject to observation mechanism.