this class is a functor for "for_each" algorithm More...
this class is a functor for "for_each" algorithm
This class is a functor for "for_each" algorithm. For each element of the boost::vector the operator() is called. Is mainly used to print the elements of the vector
| encap | source |
| encap | dst |
Definition at line 23 of file map_vector_printers.hpp.
#include <map_vector_printers.hpp>
Public Types | |
| typedef to_boost_vmpl< prp... >::type | vprp |
Public Member Functions | |
| vector_printer (vector_type &vt, size_t &ele, std::stringstream &ss) | |
| constructor | |
| template<typename T > | |
| void | operator() (T &t) const |
| It call the copy function for each property. | |
Data Fields | |
| size_t & | ele |
| element to print | |
| vector_type & | vt |
| vector to print | |
| std::stringstream & | ss |
| typedef to_boost_vmpl<prp...>::type vector_printer< vector_type, prp >::vprp |
Definition at line 34 of file map_vector_printers.hpp.
|
inline |
constructor
| src | source encapsulated object |
| dst | source encapsulated object |
Definition at line 42 of file map_vector_printers.hpp.
|
inline |
It call the copy function for each property.
Definition at line 48 of file map_vector_printers.hpp.
| size_t& vector_printer< vector_type, prp >::ele |
element to print
Definition at line 26 of file map_vector_printers.hpp.
| std::stringstream& vector_printer< vector_type, prp >::ss |
Definition at line 32 of file map_vector_printers.hpp.
| vector_type& vector_printer< vector_type, prp >::vt |
vector to print
Definition at line 29 of file map_vector_printers.hpp.