43 explicit AValue(
const std::vector<T>& val);
56 virtual void print(std::ostream&)
const;
98 std::vector<bool>::const_iterator i = value.begin();
100 while (i != value.end()) {
101 os << (*i ?
"TRUE" :
"FALSE");
102 if (++i == value.end())
break;
112 std::streamsize old_prec = os.precision(12);
114 std::vector<double>::const_iterator i = value.begin();
116 while (i != value.end()) {
118 if (++i == value.end())
break;
123 os.precision(old_prec);
130 std::vector<std::string>::const_iterator i = value.begin();
132 while (i != value.end()) {
133 os <<
'"' << *i <<
'"';
134 if (++i == value.end())
break;
145 std::vector<std::list<Token> >::const_iterator i = value.begin();
147 while (i != value.end()) {
148 for (std::list<Token>::const_iterator j = i->begin(); j != i->end(); ++j) {
152 if (++i == value.end())
break;
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.
Representation objects and parsers for attribute expressions.