|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Typed key for an arbitrary attribute stored in a Facets bag. More...
#include <Facets.hpp>
Public Member Functions | |
| Facet () | |
| Facet (T initial) | |
| const void * | id () const noexcept |
| Identity shared by every copy of this key. | |
| const T & | initial () const noexcept |
| Value stored by set(key) with no explicit value. | |
| const std::shared_ptr< const void > & | token () const noexcept |
| Keeps the identity alive while a Facets bag holds a value for it. | |
Private Attributes | |
| T | m_initial |
| std::shared_ptr< const void > | m_token |
Typed key for an arbitrary attribute stored in a Facets bag.
The type is fixed by the key. A key carries an initial value, so Facet(0.5F) deduces Facet<float> and Facet<double>() value-initialises one. Copies share the identity, so a copied key addresses the same attribute.
| T | The attribute type. Must be an object type that is not const. |
Definition at line 26 of file Facets.hpp.