1 #ifndef CLASSIC_AttributeSet_HH
2 #define CLASSIC_AttributeSet_HH
46 typedef std::map<std::string, double, std::less<std::string> >
NameMap;
106 {
return itsMap.begin(); }
Map of std::string versus double value.
bool hasAttribute(const std::string &aKey) const
Test for presence of an attribute.
AttributeSet()
Default constructor.
const AttributeSet & operator=(const AttributeSet &)
void removeAttribute(const std::string &aKey)
Remove an existing attribute.
const_iterator begin() const
Iterator accessing first member.
NameMap::const_iterator const_iterator
An iterator for a map of name versus value.
Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
std::map< std::string, double, std::less< std::string > > NameMap
A map of name versus value.
void setAttribute(const std::string &aKey, double val)
Set value of an attribute.
double getAttribute(const std::string &aKey) const
Get attribute value.
const ConstChannel * getConstChannel(const std::string &aKey) const
Construct a read-only channel.
NameMap itsMap
The attribute map.
const_iterator end() const
Iterator marking the end of the list.
Abstract interface for read/write access to variable.
Abstract interface for read-only access to variable.