FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
accessor< single, DATA_TYPE, PRIVILEGES > Struct Template Reference

Accessor for a single value. This class is supported for GPU execution. More...

Public Member Functions

element_type & get () const
 Get the value.
 
 operator element_type & () const
 Convert to the value.
 
element_type & operator* () const
 Get the value.
 
element_type * operator-> () const
 Access a member of the value.
 
accessoroperator= (const DATA_TYPE &value)
 Assign to the value.
 
const accessoroperator= (const DATA_TYPE &value) const
 Assign to the value.
 

Detailed Description

template<typename DATA_TYPE, Privileges PRIVILEGES>
struct flecsi::data::accessor< single, DATA_TYPE, PRIVILEGES >

Accessor for a single value. This class is supported for GPU execution.

Member Function Documentation

◆ get()

template<typename DATA_TYPE , Privileges PRIVILEGES>
element_type & get ( ) const

Get the value.

◆ operator element_type &()

template<typename DATA_TYPE , Privileges PRIVILEGES>
operator element_type & ( ) const

Convert to the value.

◆ operator=() [1/2]

template<typename DATA_TYPE , Privileges PRIVILEGES>
const accessor & operator= ( const DATA_TYPE &  value) const

Assign to the value.

◆ operator=() [2/2]

template<typename DATA_TYPE , Privileges PRIVILEGES>
accessor & operator= ( const DATA_TYPE &  value)

Assign to the value.

◆ operator*()

template<typename DATA_TYPE , Privileges PRIVILEGES>
element_type & operator* ( ) const

Get the value.

◆ operator->()

template<typename DATA_TYPE , Privileges PRIVILEGES>
element_type * operator-> ( ) const

Access a member of the value.