Public Member Functions |
Public Attributes |
Protected Member Functions |
Protected Attributes |
List of all members
iv::Field< T > Class Template Referenceabstract
#include <Field.hpp>
Public Member Functions | |
Field (Instance *inst) | |
~Field () | |
Instance * | instance () const |
void | Release_Attribute () |
void | Assign_Attribute_R (Attr< T > *) |
void | Assign_Attribute_RW (Attr< T > *) |
void | Assign_Constant (T const &) |
T | Get () const |
void | Modify (T const &) |
Public Member Functions inherited from iv::FieldI | |
FieldI () | |
FieldI (FieldI const &)=delete | |
FieldI & | operator= (FieldI const &)=delete |
void | Assign_AnyAttribute_R (Attribute *) |
void | Assign_AnyAttribute_RW (Attribute *) |
std::type_index | Type () |
Attribute::ValueMode | Mode () const |
Assignment | AssignmentState () const |
Public Attributes | |
ClientMarker | cm |
Protected Member Functions | |
virtual void | OnChanged (bool real)=0 |
Protected Attributes | |
Instance * | inst |
std::optional< T > | constant |
Attr< T > * | source_r |
Attr< T > * | source_rw |
Additional Inherited Members | |
Public Types inherited from iv::FieldI | |
enum | Assignment { Assignment::Unassigned, Assignment::Constant, Assignment::Attribute_R, Assignment::Attribute_RW } |
Detailed Description
Constructor & Destructor Documentation
◆ Field()
◆ ~Field()
Member Function Documentation
◆ instance()
◆ Release_Attribute()
template<class T >
void iv::Field< T >::Release_Attribute |
◆ Assign_Attribute_R()
◆ Assign_Attribute_RW()
◆ Assign_Constant()
template<class T >
void iv::Field< T >::Assign_Constant | ( | T const & | value | ) |
◆ Get()
template<class T >
T iv::Field< T >::Get |
◆ Modify()
template<class T >
void iv::Field< T >::Modify | ( | T const & | val | ) |
Field can call this to modify value of source Attribute. Call this in reaction to user changing value of the field. This will issue call to Field<T>::OnChanged on this instance.
◆ OnChanged()
template<class T >
|
protectedpure virtual |
Called whenever result of Field<T>::Get changes (usualy when source value changes or source changes) or when mode changes (Disabled/R/RW). real
True when value of Field change because value of source Attribute changed. False when it changed because it was assigned to a different Attribute.
Implemented in iv::FunctorActivatorField, and iv::FunctorField< T >.
Member Data Documentation
◆ cm
template<class T >
ClientMarker iv::Field< T >::cm |
◆ inst
◆ constant
template<class T >
|
protected |
◆ source_r
◆ source_rw
The documentation for this class was generated from the following files: