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

Detailed Description

template<typename encap>
struct enc_num< encap >

Definition at line 12 of file encap_num.hpp.

Public Member Functions

__device__ enc_num (const encap &ec, unsigned int offset)
 
template<unsigned int p>
__device__ auto get () -> decltype(ec.template get< p >()[offset])
 
__device__ unsigned int getOffset ()
 

Data Fields

encap ec
 
unsigned int offset
 

Constructor & Destructor Documentation

◆ enc_num()

template<typename encap >
__device__ enc_num< encap >::enc_num ( const encap &  ec,
unsigned int  offset 
)
inline

Definition at line 17 of file encap_num.hpp.

Member Function Documentation

◆ get()

template<typename encap >
template<unsigned int p>
__device__ auto enc_num< encap >::get ( ) -> decltype(ec.template get<p>()[offset])
inline

Definition at line 22 of file encap_num.hpp.

◆ getOffset()

template<typename encap >
__device__ unsigned int enc_num< encap >::getOffset ( )
inline

Definition at line 27 of file encap_num.hpp.

Field Documentation

◆ ec

template<typename encap >
encap enc_num< encap >::ec

Definition at line 14 of file encap_num.hpp.

◆ offset

template<typename encap >
unsigned int enc_num< encap >::offset

Definition at line 15 of file encap_num.hpp.


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