OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
DataBlock< ScalarT, DataBlockSize > Struct Template Reference

Detailed Description

template<typename ScalarT, unsigned int DataBlockSize = 64>
struct DataBlock< ScalarT, DataBlockSize >

Definition at line 16 of file DataBlock.cuh.

Public Types

typedef ScalarT scalarType
 
typedef ScalarT value_type
 

Public Member Functions

__device__ __host__ DataBlock (const DataBlock &other)
 
__device__ __host__ DataBlockoperator= (const DataBlock &other)
 
__device__ __host__ DataBlockoperator= (ScalarT v)
 
__device__ __host__ ScalarT & operator[] (unsigned int i)
 
__device__ __host__ const ScalarT & operator[] (unsigned int i) const
 

Data Fields

ScalarT block [size]
 

Static Public Attributes

static const unsigned int EXISTBIT = 0
 
static const unsigned int size = DataBlockSize
 

Member Typedef Documentation

◆ scalarType

template<typename ScalarT , unsigned int DataBlockSize = 64>
typedef ScalarT DataBlock< ScalarT, DataBlockSize >::scalarType

Definition at line 18 of file DataBlock.cuh.

◆ value_type

template<typename ScalarT , unsigned int DataBlockSize = 64>
typedef ScalarT DataBlock< ScalarT, DataBlockSize >::value_type

Definition at line 20 of file DataBlock.cuh.

Constructor & Destructor Documentation

◆ DataBlock()

template<typename ScalarT , unsigned int DataBlockSize = 64>
__device__ __host__ DataBlock< ScalarT, DataBlockSize >::DataBlock ( const DataBlock< ScalarT, DataBlockSize > &  other)
inline

Definition at line 29 of file DataBlock.cuh.

Member Function Documentation

◆ operator=() [1/2]

template<typename ScalarT , unsigned int DataBlockSize = 64>
__device__ __host__ DataBlock & DataBlock< ScalarT, DataBlockSize >::operator= ( const DataBlock< ScalarT, DataBlockSize > &  other)
inline

Definition at line 40 of file DataBlock.cuh.

◆ operator=() [2/2]

template<typename ScalarT , unsigned int DataBlockSize = 64>
__device__ __host__ DataBlock & DataBlock< ScalarT, DataBlockSize >::operator= ( ScalarT  v)
inline

Definition at line 52 of file DataBlock.cuh.

◆ operator[]() [1/2]

template<typename ScalarT , unsigned int DataBlockSize = 64>
__device__ __host__ ScalarT & DataBlock< ScalarT, DataBlockSize >::operator[] ( unsigned int  i)
inline

Definition at line 67 of file DataBlock.cuh.

◆ operator[]() [2/2]

template<typename ScalarT , unsigned int DataBlockSize = 64>
__device__ __host__ const ScalarT & DataBlock< ScalarT, DataBlockSize >::operator[] ( unsigned int  i) const
inline

Definition at line 72 of file DataBlock.cuh.

Field Documentation

◆ block

template<typename ScalarT , unsigned int DataBlockSize = 64>
ScalarT DataBlock< ScalarT, DataBlockSize >::block[size]

Definition at line 25 of file DataBlock.cuh.

◆ EXISTBIT

template<typename ScalarT , unsigned int DataBlockSize = 64>
const unsigned int DataBlock< ScalarT, DataBlockSize >::EXISTBIT = 0
static

Definition at line 22 of file DataBlock.cuh.

◆ size

template<typename ScalarT , unsigned int DataBlockSize = 64>
const unsigned int DataBlock< ScalarT, DataBlockSize >::size = DataBlockSize
static

Definition at line 24 of file DataBlock.cuh.


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