Classes | Public Member Functions | Public Attributes

Variable Class Reference

#include <var.h>

Inheritance diagram for Variable:
Inheritance graph
[legend]

List of all members.

Classes

struct  ParMult

Public Member Functions

 Variable (const std::string &name_, int nr_)
 Variable (const std::string &name_, const std::vector< std::string > &vars_, const std::vector< OpTree * > &op_trees_)
void recalculate (const std::vector< Variable * > &variables, const std::vector< realt > &parameters)
int get_nr () const
void erased_parameter (int k)
realt get_value () const
std::string get_formula (const std::vector< realt > &parameters) const
bool is_visible () const
void set_var_idx (const std::vector< Variable * > &variables)
const std::vector< ParMult > & recursive_derivatives () const
bool is_simple () const
bool is_constant () const
std::vector< OpTree * > const & get_op_trees () const
void set_original (const Variable *orig)
realt get_derivative (int n) const

Public Attributes

RealRange domain

Detailed Description

the variable is either simple-variable and nr_ is the index in vector of parameters, or it is "compound variable" and has nr_==-1. third special case: nr_==-2 - it is mirror-variable (such variable is not recalculated but copied) In the second case, the value and derivatives are calculated:

Definition at line 63 of file var.h.


Member Function Documentation

void Variable::set_var_idx ( const std::vector< Variable * > &  variables  )  [virtual]

(re-)create bytecode, required after set_var_idx()

Reimplemented from VariableUser.

Definition at line 89 of file var.cpp.

References VariableUser::var_idx.


The documentation for this class was generated from the following files:

Generated on Mon Jul 18 2011 17:25:28 for Fityk by Doxygen 1.7.1