Base class for all field values. More...
#include <FieldValue.h>
Public Member Functions | |
void | commit (bool force) |
bool | isToBeSync () |
Returns the toBeSync_ flag. | |
void | setToBeSync (bool flag) |
void | setPendingChanged (bool flag) |
bool | hasPendingChanged () |
Returns the eligibleToBeSync_ flag. | |
Protected Types | |
enum | Phase { P1 = 0, P2 = 1 } |
Protected Member Functions | |
FieldValueBase () | |
Protected Attributes | |
enum fesa::FieldValueBase::Phase | phase_ |
bool | pendingChanged_ |
bool | toBeSync_ |
Base class for all field values.
Definition at line 15 of file FieldValue.h.
enum fesa::FieldValueBase::Phase [protected] |
Definition at line 55 of file FieldValue.h.
fesa::FieldValueBase::FieldValueBase | ( | ) | [inline, protected] |
Definition at line 70 of file FieldValue.h.
void fesa::FieldValueBase::commit | ( | bool | force = false |
) | [inline] |
Definition at line 76 of file FieldValue.h.
References P1, P2, pendingChanged_, phase_, and toBeSync_.
Referenced by fesa::AbstractField::commit().
bool fesa::FieldValueBase::hasPendingChanged | ( | ) | [inline] |
Returns the eligibleToBeSync_ flag.
Definition at line 104 of file FieldValue.h.
References pendingChanged_.
Referenced by fesa::FieldStringArray::getValueToStore(), fesa::FieldString::getValueToStore(), fesa::Field< T >::getValueToStore(), fesa::SettingFieldStructArray2D< T >::setCell(), fesa::SettingFieldScalarArray2D< T >::setCell(), fesa::SettingFieldStructArray< T >::setCell(), fesa::SettingFieldScalarArray< T >::setCell(), fesa::SettingFieldArray2D< T >::setColumn(), fesa::SettingFieldArray2D< T >::setRow(), and fesa::SettingFieldStringArray::setString().
bool fesa::FieldValueBase::isToBeSync | ( | ) | [inline] |
Returns the toBeSync_ flag.
Definition at line 86 of file FieldValue.h.
References toBeSync_.
Referenced by fesa::SettingFieldArray2D< T >::get(), fesa::SettingFieldArray< T >::get(), fesa::SettingFieldStruct< T >::get(), fesa::SettingFieldScalar< T >::get(), fesa::SettingFieldStringArray::get(), fesa::SettingFieldString::get(), fesa::SettingFieldStructArray2D< T >::getCell(), fesa::SettingFieldScalarArray2D< T >::getCell(), fesa::SettingFieldStructArray< T >::getCell(), fesa::SettingFieldScalarArray< T >::getCell(), fesa::SettingFieldArray2D< T >::getColumn(), fesa::SettingFieldArray2D< T >::getRow(), fesa::SettingFieldStringArray::getString(), fesa::FieldStringArray::getValueToStore(), fesa::FieldString::getValueToStore(), fesa::FieldArray2D< T >::getValueToStore(), fesa::FieldArray< T >::getValueToStore(), and fesa::Field< T >::getValueToStore().
void fesa::FieldValueBase::setPendingChanged | ( | bool | flag | ) | [inline] |
Definition at line 97 of file FieldValue.h.
References pendingChanged_.
Referenced by fesa::AbstractField::registerModifiedField().
void fesa::FieldValueBase::setToBeSync | ( | bool | flag | ) | [inline] |
Definition at line 91 of file FieldValue.h.
References pendingChanged_, and toBeSync_.
Referenced by fesa::AbstractField::resetToBeSync().
bool fesa::FieldValueBase::pendingChanged_ [protected] |
Definition at line 63 of file FieldValue.h.
Referenced by commit(), fesa::FieldValue< T[][1]>::FieldValue(), fesa::FieldValue< T[]>::FieldValue(), fesa::FieldValue< T >::FieldValue(), fesa::FieldValue< char *[]>::FieldValue(), fesa::FieldValue< char[]>::FieldValue(), hasPendingChanged(), setPendingChanged(), and setToBeSync().
enum fesa::FieldValueBase::Phase fesa::FieldValueBase::phase_ [protected] |
Referenced by fesa::FieldValue< T[][1]>::activeBuffer(), fesa::FieldValue< T[]>::activeBuffer(), fesa::FieldValue< T >::activeBuffer(), fesa::FieldValue< char *[]>::activeBuffer(), fesa::FieldValue< char[]>::activeBuffer(), commit(), fesa::FieldValue< T[][1]>::FieldValue(), fesa::FieldValue< T[]>::FieldValue(), fesa::FieldValue< T >::FieldValue(), fesa::FieldValue< char *[]>::FieldValue(), fesa::FieldValue< char[]>::FieldValue(), fesa::FieldValue< T[][1]>::getActiveCurrentSize(), fesa::FieldValue< T[]>::getActiveCurrentSize(), fesa::FieldValue< char *[]>::getActiveCurrentSize(), fesa::FieldValue< T[][1]>::getPendingCurrentSize(), fesa::FieldValue< T[]>::getPendingCurrentSize(), fesa::FieldValue< char *[]>::getPendingCurrentSize(), fesa::FieldValue< T[][1]>::pendingBuffer(), fesa::FieldValue< T[]>::pendingBuffer(), fesa::FieldValue< T >::pendingBuffer(), fesa::FieldValue< char *[]>::pendingBuffer(), fesa::FieldValue< char[]>::pendingBuffer(), fesa::FieldValue< T[][1]>::setActiveCurrentSize(), fesa::FieldValue< T[]>::setActiveCurrentSize(), fesa::FieldValue< char *[]>::setActiveCurrentSize(), fesa::FieldValue< T[][1]>::setPendingCurrentSize(), fesa::FieldValue< T[]>::setPendingCurrentSize(), and fesa::FieldValue< char *[]>::setPendingCurrentSize().
bool fesa::FieldValueBase::toBeSync_ [protected] |
Definition at line 68 of file FieldValue.h.
Referenced by commit(), fesa::FieldValue< T[][1]>::FieldValue(), fesa::FieldValue< T[]>::FieldValue(), fesa::FieldValue< T >::FieldValue(), fesa::FieldValue< char *[]>::FieldValue(), fesa::FieldValue< char[]>::FieldValue(), isToBeSync(), and setToBeSync().