12 #include "boost/shared_ptr.hpp"
40 void init(
const std::string &);
43 explicit DDValue(
const std::string &,
const std::vector<DDValuePair>&);
46 explicit DDValue(
const std::string &,
double);
49 explicit DDValue(
const std::string &,
const std::string &,
double);
52 explicit DDValue(
const std::string &
name,
const std::string & val);
63 unsigned int id()
const {
return id_; }
66 operator unsigned int()
const {
return id_; }
76 const std::vector<std::string> &
strings()
const {
return vecPair_->second.first; }
79 const std::vector<double> &
doubles()
const;
83 unsigned int size()
const {
130 typedef std::pair<bool, std::pair<std::vector<std::string>, std::vector<double> > >
vecpair_type;
131 static std::vector<std::string>&
names();
132 static std::map<std::string,unsigned int>&
indexer();
133 static std::vector<boost::shared_ptr<vecpair_type> >&
mem(
vecpair_type*);
static std::vector< boost::shared_ptr< vecpair_type > > & mem(vecpair_type *)
static std::vector< std::string > & names()
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of DDValue
unsigned int id() const
returns the ID of the DDValue
std::pair< bool, std::pair< std::vector< std::string >, std::vector< double > > > vecpair_type
static std::map< std::string, unsigned int > & indexer()
void setEvalState(bool newState)
set to true, if the double-values (method DDValue::doubles()) make sense
DDLSpecPar processes SpecPar elements.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
bool isEvaluated() const
true, if values are numerical evaluated; else false.
void init(const std::string &)
bool operator==(const DDValue &v) const
Two DDValues are equal only if their id() is equal AND their values are equal.
DDValue()
create a unnamed emtpy value. One can assing a named DDValue to it.
const std::vector< std::string > & strings() const
a reference to the std::string-valued values stored in the given instance of DDValue ...
DDValuePair operator[](unsigned int i) const
bool operator<(const DDValue &) const
A DDValue a is smaller than a DDValue b if (a.id()<b.id()) OR (a.id()==b.id() and value(a)<value(b)) ...
unsigned int size() const
the size of the stored value-pairs (std::string,double)
const std::string & name() const
the name of the DDValue
Interface to attach user specific data to nodes in the expanded-view.