MIRA
|
Holds a boost::function object to a special getter function that must meet the signature "T method()". More...
#include <serialization/GetterSetter.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Getter (boost::function< value_type()> f) | |
value_type | get () const |
apply the getter, e.g. int val = mygetter.get(); More... | |
operator value_type () const | |
cast operator to mimic cast behavior of underlying value type; applies the getter, e.g. More... | |
template<typename Reflector > | |
void | reflect (Reflector &r) |
Holds a boost::function object to a special getter function that must meet the signature "T method()".
Getter objects usually are created using the appropriate getter() methods (see GetterSetter.h)
To call the stored getter method you can use the getter object as a functor, e.g:
Getters are used by the Serialization framework.
typedef T value_type |
|
inline |
|
inline |
apply the getter, e.g. int val = mygetter.get();
|
inline |
cast operator to mimic cast behavior of underlying value type; applies the getter, e.g.
int val = mygetter;
|
inline |