7 #ifndef OTAWA_PROP_PROPERTY_H
8 #define OTAWA_PROP_PROPERTY_H
10 #include <elm/assert.h>
11 #include <elm/string.h>
12 #include <elm/utility.h>
81 #endif // OTAWA_PROP_PROPERTY_H
const T & get(void) const
Definition: Property.h:65
virtual ~GenericProperty(void)
Definition: Property.h:28
GenericProperty(const AbstractIdentifier &id, const T &value)
Definition: Property.h:24
virtual void print(elm::io::Output &out) const
Print the given property, that is, the identifier and its value if any.
Definition: prop_PropList.cpp:289
const AbstractIdentifier * id(void) const
Get the identifier code of the property.
Definition: PropList.h:54
This generic class allows attaching any type of data to a property.
Definition: Property.h:20
elm::io::Output & operator<<(elm::io::Output &out, Address addr)
Definition: base.cpp:188
LockedProperty(const AbstractIdentifier &id, T value)
Build a new locked property with a static identifier.
Definition: Property.h:56
Represents a unique identifier used by the annotation system.
Definition: AbstractIdentifier.h:32
virtual Property * copy(void)
This method is called when a property is copied.
Definition: Property.h:29
LockedProperty(const AbstractIdentifier *id, T value)
Build a new locked property.
Definition: Property.h:54
LockedProperty(elm::CString name, T value)
Build a new locked property with a named identifier.
Definition: Property.h:58
sys::SystemOutStream & out
GenericProperty(elm::CString name, const T &value)
Definition: Property.h:26
void set(const T &value)
Definition: Property.h:70
cstring name
Definition: odisasm.cpp:107
virtual Property * copy(void)
This method is called when a property is copied.
Definition: Property.h:48
const T & value(void) const
Get the value of the property.
Definition: Property.h:33
This class is used for building a lock property, that is, for taking pointer values implementing the ...
Definition: Property.h:43
A property associates a data with an identifier.
Definition: PropList.h:42
static GenericProperty< T > * make(const AbstractIdentifier *id, const T &value)
Build a new generic property with the given data.
Definition: Property.h:31
T & value(void)
Get the value of the property.
Definition: Property.h:34
virtual ~LockedProperty(void)
Definition: Property.h:45
T _value
Definition: Property.h:34
GenericProperty(const AbstractIdentifier *id, const T &value)
Definition: Property.h:22