a generic variable template: value + flag to know if the variable is set More...
#include <libstaroffice_internal.hxx>
Public Member Functions | |
STOFFVariable () | |
constructor More... | |
STOFFVariable (T const &def) | |
constructor with a default value More... | |
STOFFVariable (STOFFVariable const &orig) | |
copy constructor More... | |
STOFFVariable & | operator= (STOFFVariable const &orig) |
copy operator More... | |
STOFFVariable & | operator= (T const &val) |
set a value More... | |
void | insert (STOFFVariable const &orig) |
update the current value if orig is set More... | |
const T * | operator-> () const |
operator* More... | |
T * | operator-> () |
operator* More... | |
const T & | operator* () const |
operator* More... | |
T & | operator* () |
operator* More... | |
const T & | 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
|
inline |
operator*
|
inline |
operator*
|
inline |
operator*
|
inline |
operator*
|
inline |
copy operator
|
inline |
set a value
|
inline |
define if the variable is set
|
protected |
the value
Referenced by STOFFVariable< T >::get(), STOFFVariable< T >::insert(), STOFFVariable< T >::operator*(), STOFFVariable< T >::operator->(), and STOFFVariable< T >::operator=().
|
protected |
a flag to know if the variable is set or not
Referenced by STOFFVariable< T >::insert(), STOFFVariable< T >::isSet(), STOFFVariable< T >::operator*(), STOFFVariable< T >::operator->(), STOFFVariable< T >::operator=(), and STOFFVariable< T >::setSet().