Public Member Functions
ngraph::ValueAccessor< VAT > Class Template Referenceabstract

Provides access to an attribute of type AT as a value accessor type VAT. More...

#include <attribute_adapter.hpp>

Inheritance diagram for ngraph::ValueAccessor< VAT >:
Inheritance graph
[legend]

Public Member Functions

virtual const VAT & get ()=0
 Returns the value.
 
virtual void set (const VAT &value)=0
 Sets the value.
 

Detailed Description

template<typename VAT>
class ngraph::ValueAccessor< VAT >

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.

Template Parameters
VATThe adapter value type; may be wider than the value being accessed.

The documentation for this class was generated from the following file: