RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Public Member Functions | Public Attributes | List of all members
RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min > Class Template Reference

#include <reduce.hpp>

Public Member Functions

constexpr ValueLoc ()=default
 
constexpr ValueLoc (ValueLoc const &)=default
 
ValueLocoperator= (ValueLoc const &)=default
 
constexpr RAJA_HOST_DEVICE ValueLoc (T const &val_)
 
constexpr RAJA_HOST_DEVICE ValueLoc (T const &val_, IndexType const &loc_)
 
RAJA_HOST_DEVICE operator T () const
 
RAJA_HOST_DEVICE IndexType getLoc ()
 
RAJA_HOST_DEVICE bool operator< (ValueLoc const &rhs) const
 
RAJA_HOST_DEVICE bool operator> (ValueLoc const &rhs) const
 

Public Attributes

val = doing_min ? operators::limits<T>::max() : operators::limits<T>::min()
 
IndexType loc = DefaultLoc<IndexType>().value()
 

Constructor & Destructor Documentation

◆ ValueLoc() [1/4]

template<typename T , typename IndexType , bool doing_min = true>
constexpr RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::ValueLoc ( )
constexprdefault

◆ ValueLoc() [2/4]

template<typename T , typename IndexType , bool doing_min = true>
constexpr RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::ValueLoc ( ValueLoc< T, IndexType, doing_min > const &  )
constexprdefault

◆ ValueLoc() [3/4]

template<typename T , typename IndexType , bool doing_min = true>
constexpr RAJA_HOST_DEVICE RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::ValueLoc ( T const &  val_)
inlineconstexpr

◆ ValueLoc() [4/4]

template<typename T , typename IndexType , bool doing_min = true>
constexpr RAJA_HOST_DEVICE RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::ValueLoc ( T const &  val_,
IndexType const &  loc_ 
)
inlineconstexpr

Member Function Documentation

◆ operator=()

template<typename T , typename IndexType , bool doing_min = true>
ValueLoc& RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::operator= ( ValueLoc< T, IndexType, doing_min > const &  )
default

◆ operator T()

template<typename T , typename IndexType , bool doing_min = true>
RAJA_HOST_DEVICE RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::operator T ( ) const
inline

◆ getLoc()

template<typename T , typename IndexType , bool doing_min = true>
RAJA_HOST_DEVICE IndexType RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::getLoc ( )
inline

◆ operator<()

template<typename T , typename IndexType , bool doing_min = true>
RAJA_HOST_DEVICE bool RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::operator< ( ValueLoc< T, IndexType, doing_min > const &  rhs) const
inline

◆ operator>()

template<typename T , typename IndexType , bool doing_min = true>
RAJA_HOST_DEVICE bool RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::operator> ( ValueLoc< T, IndexType, doing_min > const &  rhs) const
inline

Member Data Documentation

◆ val

template<typename T , typename IndexType , bool doing_min = true>
T RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::val = doing_min ? operators::limits<T>::max() : operators::limits<T>::min()

◆ loc

template<typename T , typename IndexType , bool doing_min = true>
IndexType RAJA::reduce::detail::ValueLoc< T, IndexType, doing_min >::loc = DefaultLoc<IndexType>().value()

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