OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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
 
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
 

Member Typedef Documentation

◆ vprp

template<typename vector_type , unsigned int ... prp>
typedef to_boost_vmpl<prp...>::type vector_printer< vector_type, prp >::vprp

Definition at line 34 of file map_vector_printers.hpp.

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.

Member Function Documentation

◆ operator()()

template<typename vector_type , unsigned int ... prp>
template<typename T >
void vector_printer< vector_type, prp >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 48 of file map_vector_printers.hpp.

Field Documentation

◆ ele

template<typename vector_type , unsigned int ... prp>
size_t& vector_printer< vector_type, prp >::ele

element to print

Definition at line 26 of file map_vector_printers.hpp.

◆ ss

template<typename vector_type , unsigned int ... prp>
std::stringstream& vector_printer< vector_type, prp >::ss

Definition at line 32 of file map_vector_printers.hpp.

◆ vt

template<typename vector_type , unsigned int ... prp>
vector_type& vector_printer< vector_type, prp >::vt

vector to print

Definition at line 29 of file map_vector_printers.hpp.


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