12 #include "boost/shared_ptr.hpp"
39 void init(
const std::string & );
42 explicit DDValue(
const std::string &,
const std::vector<DDValuePair>& );
45 explicit DDValue(
const std::string &,
double );
48 explicit DDValue(
const std::string &,
const std::string &,
double );
51 explicit DDValue(
const std::string &
name,
const std::string & val );
53 explicit DDValue(
unsigned int );
58 unsigned int id(
void )
const {
return id_; }
61 operator unsigned int(
void )
const {
return id_; }
71 const std::vector<std::string> &
strings()
const {
return vecPair_->second.first; }
74 const std::vector<double> &
doubles()
const;
78 unsigned int size()
const {
82 static void clear(
void );
101 typedef std::pair<bool, std::pair<std::vector<std::string>, std::vector<double> > >
vecpair_type;
102 static std::vector<std::string>&
names();
103 static std::map<std::string,unsigned int>&
indexer();
104 static std::vector<boost::shared_ptr<vecpair_type> >&
mem(
vecpair_type*);
const std::string & name(void) const
the name of the DDValue
static std::vector< boost::shared_ptr< vecpair_type > > & mem(vecpair_type *)
static std::vector< std::string > & names()
DDValue(void)
create a unnamed emtpy value. One can assing a named DDValue to it.
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of 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)
unsigned int id(void) const
returns the ID of the DDValue
bool isEvaluated(void) 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.
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)
Interface to attach user specific data to nodes in the expanded-view.