OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
cub::KeyValuePair< _Key, _Value > Struct Template Reference

A key identifier paired with a corresponding value. More...

Detailed Description

template<typename _Key, typename _Value>
struct cub::KeyValuePair< _Key, _Value >

A key identifier paired with a corresponding value.

Definition at line 666 of file util_type.cuh.

Public Types

typedef _Key Key
 Key data type.
 
typedef _Value Value
 Value data type.
 

Public Member Functions

__host__ __device__ __forceinline__ KeyValuePair ()
 Constructor.
 
__host__ __device__ __forceinline__ KeyValuePair (Key const &key, Value const &value)
 Constructor.
 
__host__ __device__ __forceinline__ bool operator!= (const KeyValuePair &b)
 Inequality operator.
 

Data Fields

Key key
 Item key.
 
Value value
 Item value.
 

Member Typedef Documentation

◆ Key

template<typename _Key , typename _Value >
typedef _Key cub::KeyValuePair< _Key, _Value >::Key

Key data type.

Definition at line 668 of file util_type.cuh.

◆ Value

template<typename _Key , typename _Value >
typedef _Value cub::KeyValuePair< _Key, _Value >::Value

Value data type.

Definition at line 669 of file util_type.cuh.

Constructor & Destructor Documentation

◆ KeyValuePair() [1/2]

template<typename _Key , typename _Value >
__host__ __device__ __forceinline__ cub::KeyValuePair< _Key, _Value >::KeyValuePair ( )
inline

Constructor.

Definition at line 676 of file util_type.cuh.

◆ KeyValuePair() [2/2]

template<typename _Key , typename _Value >
__host__ __device__ __forceinline__ cub::KeyValuePair< _Key, _Value >::KeyValuePair ( Key const &  key,
Value const &  value 
)
inline

Constructor.

Definition at line 680 of file util_type.cuh.

Member Function Documentation

◆ operator!=()

template<typename _Key , typename _Value >
__host__ __device__ __forceinline__ bool cub::KeyValuePair< _Key, _Value >::operator!= ( const KeyValuePair< _Key, _Value > &  b)
inline

Inequality operator.

Definition at line 683 of file util_type.cuh.

Field Documentation

◆ key

template<typename _Key , typename _Value >
Key cub::KeyValuePair< _Key, _Value >::key

Item key.

Definition at line 671 of file util_type.cuh.

◆ value

template<typename _Key , typename _Value >
Value cub::KeyValuePair< _Key, _Value >::value

Item value.

Definition at line 672 of file util_type.cuh.


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