Provides access to an attribute of type AT as a value accessor type VAT. More...
#include <attribute_adapter.hpp>
Public Member Functions | |
virtual const VAT & | get ()=0 |
Returns the value. | |
virtual void | set (const VAT &value)=0 |
Sets the value. | |
Provides access to an attribute of type AT as a value accessor type VAT.
Provides access to values via get/set methods from an m_value, typically from ValueReference.
The m_buffer holds a VAT, which may be wider than the attribute AT. For example, serializers that only support int64_t integers would use a ValueAccessor<vector<int64_t>> to reference a vector<int8_t> attribute. Destruction moves the value back to the attribute if it was changed.
VAT | The adapter value type; may be wider than the value being accessed. |