RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Namespaces
IndexSetUtils.hpp File Reference

Header file containing generic RAJA index set and segment utility method templates. More...

#include "RAJA/config.hpp"
#include "RAJA/pattern/forall.hpp"
#include "RAJA/policy/sequential.hpp"

Go to the source code of this file.

Namespaces

 RAJA
 

Functions

Methods to gather indices of segment or index set into a container.

For each method, the given container must be templated on a data type, have default and copy ctors, push_back method, and value_type. Is is assumed that the container data type and segment or index set data type are compatible in the sense that the index set type can be converted to the container data type.

template<typename CONTAINER_T , typename... SEG_TYPES>
RAJA_INLINE void RAJA::getIndices (CONTAINER_T &con, const TypedIndexSet< SEG_TYPES... > &iset)
 Copy all indices in given index set to given container. More...
 
template<typename CONTAINER_T , typename SEGMENT_T >
RAJA_INLINE void RAJA::getIndices (CONTAINER_T &con, const SEGMENT_T &seg)
 Copy all indices in given segment to given container. More...
 
template<typename CONTAINER_T , typename... SEG_TYPES, typename CONDITIONAL >
RAJA_INLINE void RAJA::getIndicesConditional (CONTAINER_T &con, const TypedIndexSet< SEG_TYPES... > &iset, CONDITIONAL conditional)
 Copy all indices in given index set that satisfy given conditional to given container. More...
 
template<typename CONTAINER_T , typename SEGMENT_T , typename CONDITIONAL >
RAJA_INLINE void RAJA::getIndicesConditional (CONTAINER_T &con, const SEGMENT_T &seg, CONDITIONAL conditional)
 Copy all indices in given segment that satisfy given conditional to given container. More...
 

Detailed Description

Header file containing generic RAJA index set and segment utility method templates.