RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Public Types | Public Member Functions | Public Attributes | List of all members
RAJA::expt::ValLoc< T, IndexType > Struct Template Reference

#include <params_base.hpp>

Public Types

using index_type = IndexType
 
using value_type = T
 

Public Member Functions

 ValLoc ()=default
 
constexpr RAJA_HOST_DEVICE ValLoc (value_type v)
 
constexpr RAJA_HOST_DEVICE ValLoc (value_type v, index_type l)
 
 ValLoc (ValLoc const &)=default
 
 ValLoc (ValLoc &&)=default
 
ValLocoperator= (ValLoc const &)=default
 
ValLocoperator= (ValLoc &&)=default
 
constexpr RAJA_HOST_DEVICE bool operator< (const ValLoc &rhs) const
 
constexpr RAJA_HOST_DEVICE bool operator> (const ValLoc &rhs) const
 
constexpr RAJA_HOST_DEVICE const value_typegetVal () const
 
constexpr RAJA_HOST_DEVICE const index_typegetLoc () const
 
RAJA_HOST_DEVICE void set (T inval, IndexType inindex)
 
RAJA_HOST_DEVICE void setVal (T inval)
 
RAJA_HOST_DEVICE void setLoc (IndexType inindex)
 

Public Attributes

value_type val
 
index_type loc = -1
 

Member Typedef Documentation

◆ index_type

template<typename T , typename IndexType = RAJA::Index_type>
using RAJA::expt::ValLoc< T, IndexType >::index_type = IndexType

◆ value_type

template<typename T , typename IndexType = RAJA::Index_type>
using RAJA::expt::ValLoc< T, IndexType >::value_type = T

Constructor & Destructor Documentation

◆ ValLoc() [1/5]

template<typename T , typename IndexType = RAJA::Index_type>
RAJA::expt::ValLoc< T, IndexType >::ValLoc ( )
default

◆ ValLoc() [2/5]

template<typename T , typename IndexType = RAJA::Index_type>
constexpr RAJA_HOST_DEVICE RAJA::expt::ValLoc< T, IndexType >::ValLoc ( value_type  v)
inlineexplicitconstexpr

◆ ValLoc() [3/5]

template<typename T , typename IndexType = RAJA::Index_type>
constexpr RAJA_HOST_DEVICE RAJA::expt::ValLoc< T, IndexType >::ValLoc ( value_type  v,
index_type  l 
)
inlineconstexpr

◆ ValLoc() [4/5]

template<typename T , typename IndexType = RAJA::Index_type>
RAJA::expt::ValLoc< T, IndexType >::ValLoc ( ValLoc< T, IndexType > const &  )
default

◆ ValLoc() [5/5]

template<typename T , typename IndexType = RAJA::Index_type>
RAJA::expt::ValLoc< T, IndexType >::ValLoc ( ValLoc< T, IndexType > &&  )
default

Member Function Documentation

◆ operator=() [1/2]

template<typename T , typename IndexType = RAJA::Index_type>
ValLoc& RAJA::expt::ValLoc< T, IndexType >::operator= ( ValLoc< T, IndexType > const &  )
default

◆ operator=() [2/2]

template<typename T , typename IndexType = RAJA::Index_type>
ValLoc& RAJA::expt::ValLoc< T, IndexType >::operator= ( ValLoc< T, IndexType > &&  )
default

◆ operator<()

template<typename T , typename IndexType = RAJA::Index_type>
constexpr RAJA_HOST_DEVICE bool RAJA::expt::ValLoc< T, IndexType >::operator< ( const ValLoc< T, IndexType > &  rhs) const
inlineconstexpr

◆ operator>()

template<typename T , typename IndexType = RAJA::Index_type>
constexpr RAJA_HOST_DEVICE bool RAJA::expt::ValLoc< T, IndexType >::operator> ( const ValLoc< T, IndexType > &  rhs) const
inlineconstexpr

◆ getVal()

template<typename T , typename IndexType = RAJA::Index_type>
constexpr RAJA_HOST_DEVICE const value_type& RAJA::expt::ValLoc< T, IndexType >::getVal ( ) const
inlineconstexpr

◆ getLoc()

template<typename T , typename IndexType = RAJA::Index_type>
constexpr RAJA_HOST_DEVICE const index_type& RAJA::expt::ValLoc< T, IndexType >::getLoc ( ) const
inlineconstexpr

◆ set()

template<typename T , typename IndexType = RAJA::Index_type>
RAJA_HOST_DEVICE void RAJA::expt::ValLoc< T, IndexType >::set ( inval,
IndexType  inindex 
)
inline

◆ setVal()

template<typename T , typename IndexType = RAJA::Index_type>
RAJA_HOST_DEVICE void RAJA::expt::ValLoc< T, IndexType >::setVal ( inval)
inline

◆ setLoc()

template<typename T , typename IndexType = RAJA::Index_type>
RAJA_HOST_DEVICE void RAJA::expt::ValLoc< T, IndexType >::setLoc ( IndexType  inindex)
inline

Member Data Documentation

◆ val

template<typename T , typename IndexType = RAJA::Index_type>
value_type RAJA::expt::ValLoc< T, IndexType >::val

◆ loc

template<typename T , typename IndexType = RAJA::Index_type>
index_type RAJA::expt::ValLoc< T, IndexType >::loc = -1

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