45 explicit AValue(
const std::vector<T> &val);
58 virtual void print(std::ostream &)
const;
116 std::vector<bool>::const_iterator i = value.begin();
118 while(i != value.end()) {
119 os << (*i ?
"TRUE" :
"FALSE");
120 if(++i == value.end())
break;
131 std::streamsize old_prec = os.precision(12);
133 std::vector<double>::const_iterator i = value.begin();
135 while(i != value.end()) {
137 if(++i == value.end())
break;
142 os.precision(old_prec);
150 std::vector<std::string>::const_iterator i = value.begin();
152 while(i != value.end()) {
153 os <<
'"' << *i <<
'"';
154 if(++i == value.end())
break;
166 std::vector<std::list<Token> >::const_iterator i = value.begin();
168 while(i != value.end()) {
169 for(std::list<Token>::const_iterator j = i->begin();
170 j != i->end(); ++j) {
174 if(++i == value.end())
break;
Representation objects and parsers for attribute expressions.
Abstract base class for attribute values of different types.
Object attribute with a constant array value.
void operator=(const AValue< T > &)
AValue()
Default constructor.
virtual void print(std::ostream &) const
Print the attribute value.
virtual std::vector< T > evaluate()
Evaluate.
std::vector< T > value
The value of the attribute.
virtual AValue * clone() const
Make clone.