a generic variable template: value + flag to know if the variable is set More...
#include <libmwaw_internal.hxx>
Public Member Functions | |
MWAWVariable () | |
constructor More... | |
MWAWVariable (T const &def) | |
constructor with a default value More... | |
MWAWVariable (MWAWVariable const &orig) | |
copy constructor More... | |
MWAWVariable & | operator= (MWAWVariable const &)=default |
copy operator More... | |
MWAWVariable & | operator= (T const &val) |
set a value More... | |
void | insert (MWAWVariable const &orig) |
update the current value if orig is set More... | |
T const * | operator-> () const |
operator* More... | |
T * | operator-> () |
operator* More... | |
T const & | operator* () const |
operator* More... | |
T & | operator* () |
operator* More... | |
T const & | get () const |
return the current value More... | |
bool | isSet () const |
return true if the variable is set More... | |
void | setSet (bool newVal) |
define if the variable is set More... | |
Protected Attributes | |
T | m_data |
the value More... | |
bool | m_set |
a flag to know if the variable is set or not More... | |
a generic variable template: value + flag to know if the variable is set
|
inline |
constructor
|
inlineexplicit |
constructor with a default value
|
inline |
copy constructor
|
inline |
return the current value
|
inline |
update the current value if orig is set
|
inline |
return true if the variable is set
Referenced by ClarisWksStruct::DSET::findForbiddenPagesBreaking(), Canvas5StyleManager::readGradient(), Canvas5StyleManager::readHatch(), and ClarisWksDocument::updateChildPositions().
|
inline |
operator*
|
inline |
operator*
|
inline |
operator*
|
inline |
operator*
|
default |
copy operator
|
inline |
set a value
|
inline |
define if the variable is set
Referenced by Canvas5StyleManager::readColor().
|
protected |
the value
Referenced by MWAWVariable< T >::get(), MWAWVariable< T >::insert(), MWAWVariable< T >::operator*(), MWAWVariable< T >::operator->(), and MWAWVariable< T >::operator=().
|
protected |
a flag to know if the variable is set or not
Referenced by MWAWVariable< T >::insert(), MWAWVariable< T >::isSet(), MWAWVariable< T >::operator*(), MWAWVariable< T >::operator->(), MWAWVariable< T >::operator=(), and MWAWVariable< T >::setSet().