OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
check_device_ptr< data_type > Struct Template Reference

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

Detailed Description

template<typename data_type>
struct check_device_ptr< data_type >

this class is a functor for "for_each" algorithm

This class is a functor for "for_each" algorithm. It check if the pointer ptr match one of the pointer properties

Definition at line 103 of file util.hpp.

#include <util.hpp>

Public Member Functions

 check_device_ptr (void *ptr, data_type &data)
 constructor
 
template<typename T >
void operator() (T &t)
 It call the copy function for each property.
 

Data Fields

void * ptr
 pointer to check
 
data_type & data
 Data to check.
 
int prp
 
bool result
 

Constructor & Destructor Documentation

◆ check_device_ptr()

template<typename data_type >
check_device_ptr< data_type >::check_device_ptr ( void *  ptr,
data_type &  data 
)
inline

constructor

Parameters
ptrpointer to check
datadata structure

Definition at line 121 of file util.hpp.

Member Function Documentation

◆ operator()()

template<typename data_type >
template<typename T >
void check_device_ptr< data_type >::operator() ( T &  t)
inline

It call the copy function for each property.

Definition at line 127 of file util.hpp.

Field Documentation

◆ data

template<typename data_type >
data_type& check_device_ptr< data_type >::data

Data to check.

Definition at line 109 of file util.hpp.

◆ prp

template<typename data_type >
int check_device_ptr< data_type >::prp
mutable

Definition at line 111 of file util.hpp.

◆ ptr

template<typename data_type >
void* check_device_ptr< data_type >::ptr

pointer to check

Definition at line 106 of file util.hpp.

◆ result

template<typename data_type >
bool check_device_ptr< data_type >::result
mutable

Definition at line 113 of file util.hpp.


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