Holds a boost::function object to a special setter function that must meet the signature "void method(T)".
More...
template<typename T>
class mira::Setter< T >
Holds a boost::function object to a special setter function that must meet the signature "void method(T)".
Setter objects usually are created using the appropriate setter() methods (see GetterSetter.h).
To call the stored setter method you can use the setter object as a functor, e.g:
Setter<int> s =
setter(myMethod);
s(123);
Setters are used by the Serialization framework.
- See also
- Serialization