OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
vector_printer< vector_type, prp > Struct Template Reference

this class is a functor for "for_each" algorithm More...

Detailed Description

template<typename vector_type, unsigned int ... prp>
struct vector_printer< vector_type, prp >

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

Template Parameters
encapsource
encapdst

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 More...
 
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_typevt
 vector to print
 
std::stringstream & ss
 

Constructor & Destructor Documentation

◆ vector_printer()

template<typename vector_type , unsigned int ... prp>
vector_printer< vector_type, prp >::vector_printer ( vector_type vt,
size_t &  ele,
std::stringstream &  ss 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 42 of file map_vector_printers.hpp.


The documentation for this struct was generated from the following file: