|
| | Attribute (AttributesManager &manager, const std::string &name) |
| |
| BoolAttributeAccessor | operator[] (index_t i) |
| |
| ConstBoolAttributeAccessor | operator[] (index_t i) const |
| |
| void | fill (bool val) |
| | Sets all the elements in this attribute to a specified value.
|
| |
| | AttributeBase () |
| | Creates an uninitialized (unbound) Attribute.
|
| |
| | AttributeBase (AttributesManager &manager, const std::string &name) |
| | Creates or retrieves a persistent attribute attached to a given AttributesManager.
|
| |
| bool | is_bound () const |
| | Tests whether an Attribute is bound.
|
| |
| void | unbind () |
| | Unbinds this Attribute.
|
| |
| void | bind (AttributesManager &manager, const std::string &name) |
| | Binds this Attribute to an AttributesManager.
|
| |
| bool | bind_if_is_defined (AttributesManager &manager, const std::string &name) |
| | Binds this Attribute to an AttributesManager if it already exists in the AttributesManager.
|
| |
| bool | bind_if_is_compatible (AttributesManager &manager, const std::string &name) |
| | Binds this Attribute to an AttributesManager if it already exists in the AttributesManager and tyopes are compatible.
|
| |
| void | create_vector_attribute (AttributesManager &manager, const std::string &name, index_t dimension) |
| | Creates and binds a new vector attribute.
|
| |
| void | destroy () |
| | Destroys this attribute in the AttributesManager.
|
| |
| void | redim (index_t new_dim) |
| | Sets the dimension.
|
| |
| | ~AttributeBase () |
| | Attribute destructor.
|
| |
| index_t | size () const |
| | Gets the size.
|
| |
| void | zero () |
| | Sets all the elements of this Attribute to zero.
|
| |
| bool | can_get_vector () |
| | Tests whether get_vector() can be called on this Attribute.
|
| |
| vector< Numeric::uint8 > & | get_vector () |
| | Gets a reference to the internal vector<T> used to store the attribute.
|
| |
| const vector< Numeric::uint8 > & | get_vector () const |
| | Gets a const reference to the internal vector<T> used to store the attribute.
|
| |
| AttributesManager * | manager () const |
| | Gets the AttributesManager this Attribute is bound to.
|
| |
| | AttributeStoreObserver () |
| | Creates a new uninitialied AttributeStore.
|
| |
| void | notify (Memory::pointer base_addr, index_t size, index_t dim) |
| | Callback function, called by the AttributeStore whenever it is modified.
|
| |
| index_t | size () const |
| | Gets the size.
|
| |
| index_t | dimension () const |
| | Gets the dimension.
|
| |
| index_t | nb_elements () const |
| | Gets the total number of elements.
|
| |
| void | register_me (AttributeStore *store) |
| | Registers this observer to an AttributeStore.
|
| |
| void | unregister_me (AttributeStore *store) |
| | Unregisters this observer from an AttributeStore.
|
| |
| void | disconnect () |
| | Disconnects this AttributeStoreObserver from its AttributeStore.
|
| |
Specialization of Attribute for booleans.
Attribute needs a specialization for bool, since vector<bool> uses compressed storage (1 bit per boolean), that is not compatible with the attribute management mechanism. This wrapper class uses an Attribute<Numeric::uint8> and does the appropriate conversions, using an accessor class.
Definition at line 1522 of file attributes.h.