#include <functional.hpp>
Inheritance diagram for s11n::serialize_to_subnode_f< BinaryFunctorT >:
Public Member Functions | |
serialize_to_subnode_f (const std::string &subnodename, BinaryFunctorT f) | |
serialize_to_subnode_f (const std::string &subnodename) | |
template<typename NodeType, typename SerializableT> | |
bool | operator() (NodeType &dest, SerializableT const &src) const |
Creates a NodeType names this->name and calls this->functor( child, src ). | |
Public Attributes | |
std::string | name |
BinaryFunctorT | functor |
Added in 1.1.3.
BinaryFunctorT must have:
bool operator()( NodeType & dest, const SerializableT & src )
Definition at line 888 of file functional.hpp.
|
Definition at line 897 of file functional.hpp. |
|
Definition at line 904 of file functional.hpp. |
|
Creates a NodeType names this->name and calls this->functor( child, src ). If the functor fails, the child is deleted and dest is unmodified, else ownership of the child is transfered to dest, via node_traits<NodeType>::children(dest).push_back(child). Returns true on success, false on failure. Definition at line 919 of file functional.hpp. References s11n::fac::create(), and s11n::serialize_to_subnode_f< BinaryFunctorT >::functor. |
|
Definition at line 892 of file functional.hpp. Referenced by s11n::serialize_to_subnode_f< BinaryFunctorT >::operator()(). |
|
Definition at line 891 of file functional.hpp. |