OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
compare_fusion_vector< bfv > Struct Template Reference

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

Detailed Description

template<typename bfv>
struct compare_fusion_vector< bfv >

this class is a functor for "for_each" algorithm

It compare a boost::fusion::vector with another boost::fusion::vector

Definition at line 19 of file compare_fusion_vector.hpp.

#include <compare_fusion_vector.hpp>

Public Member Functions

 compare_fusion_vector (const bfv &src, const bfv &dst)
 constructor More...
 
template<typename T >
void operator() (T &t)
 It call the copy function for each property. More...
 
bool result ()
 Returh the result of the comparison. More...
 

Data Fields

bool eq
 Result of the comparation.
 
const bfv & src
 operator1
 
const bfv & dst
 operator2
 

Constructor & Destructor Documentation

template<typename bfv>
compare_fusion_vector< bfv >::compare_fusion_vector ( const bfv &  src,
const bfv &  dst 
)
inline

constructor

It define the elements to compare.

Parameters
srcoperator1
dstoperator2

Definition at line 38 of file compare_fusion_vector.hpp.

Member Function Documentation

template<typename bfv>
template<typename T >
void compare_fusion_vector< bfv >::operator() ( T &  t)
inline

It call the copy function for each property.

Template Parameters
compile-timevalue
Parameters
tunused

Definition at line 61 of file compare_fusion_vector.hpp.

template<typename bfv>
bool compare_fusion_vector< bfv >::result ( )
inline

Returh the result of the comparison.

Returns
true if aggregates match

Definition at line 80 of file compare_fusion_vector.hpp.


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