#include <data_node_functor.h>
Public Types | |
typedef ListType | list_type |
The ListType templatized type. | |
typedef pointer_stripper< typename list_type::value_type >::value_type | value_type |
value_type is equivalent to a SerializableType. | |
Public Member Functions | |
data_node_child_deserializer (list_type &dest, bool tolerant=false) | |
Creates an object for deserializing Serializables into a target list. | |
template<typename NodeType> | |
bool | operator() (const NodeType *src) |
Tries to deserialize a (value_type *) from src. | |
Public Attributes | |
bool | result |
For use as a "return value catcher" for std::for_each(). |
Designed for use with std::for_each().
ListType must be compatible with std::list<SomeSerializableType *>
.
Definition at line 132 of file data_node_functor.h.
|
The ListType templatized type. Must support: push_back(value_type *); Definition at line 139 of file data_node_functor.h. |
|
Creates an object for deserializing Serializables into a target list. If tolerant is true then this object will always try to deserialize new items passed to it's operator(). If it is false (the default) it will stop processing after a single failure. Preconditions:
Definition at line 163 of file data_node_functor.h. |
|
Tries to deserialize a (value_type *) from src. On error it returns 0, else it inserts the new child into this object's destination container and returns true. Postconditions:
Definition at line 180 of file data_node_functor.h. |
|
For use as a "return value catcher" for std::for_each(). If tolerant is true then this will only reveal the value of the most-recently-processed node. Definition at line 199 of file data_node_functor.h. |