Block-Structured AMR Software Framework
amrex::BinIterator< T > Struct Template Reference

#include <AMReX_BinIterator.H>

Classes

struct  iterator
 

Public Types

using index_type = int
 
using const_pointer_type = std::conditional_t< IsParticleTileData< T >(), T, const T * >
 
using const_pointer_input_type = std::conditional_t< IsParticleTileData< T >(), const T &, const T * >
 

Public Member Functions

AMREX_GPU_HOST_DEVICE iterator begin () const
 
AMREX_GPU_HOST_DEVICE iterator end () const
 
AMREX_GPU_HOST_DEVICE BinIterator (index_type i, const index_type *offsets_ptr, const index_type *permutation_ptr, const_pointer_input_type items)
 

Private Attributes

index_type m_i
 
const index_typem_offsets_ptr
 
const index_typem_permutation_ptr
 
const_pointer_type m_items
 

Static Private Attributes

static constexpr index_type m_not_found = std::numeric_limits<index_type>::max()
 

Member Typedef Documentation

◆ const_pointer_input_type

template<typename T >
using amrex::BinIterator< T >::const_pointer_input_type = std::conditional_t<IsParticleTileData<T>(), const T&, const T* >

◆ const_pointer_type

template<typename T >
using amrex::BinIterator< T >::const_pointer_type = std::conditional_t<IsParticleTileData<T>(), T, const T* >

◆ index_type

template<typename T >
using amrex::BinIterator< T >::index_type = int

Constructor & Destructor Documentation

◆ BinIterator()

template<typename T >
AMREX_GPU_HOST_DEVICE amrex::BinIterator< T >::BinIterator ( index_type  i,
const index_type offsets_ptr,
const index_type permutation_ptr,
const_pointer_input_type  items 
)
inline

Member Function Documentation

◆ begin()

template<typename T >
AMREX_GPU_HOST_DEVICE iterator amrex::BinIterator< T >::begin ( ) const
inline

◆ end()

template<typename T >
AMREX_GPU_HOST_DEVICE iterator amrex::BinIterator< T >::end ( ) const
inline

Member Data Documentation

◆ m_i

template<typename T >
index_type amrex::BinIterator< T >::m_i
private

◆ m_items

template<typename T >
const_pointer_type amrex::BinIterator< T >::m_items
private

◆ m_not_found

template<typename T >
constexpr index_type amrex::BinIterator< T >::m_not_found = std::numeric_limits<index_type>::max()
staticconstexprprivate

◆ m_offsets_ptr

template<typename T >
const index_type* amrex::BinIterator< T >::m_offsets_ptr
private

◆ m_permutation_ptr

template<typename T >
const index_type* amrex::BinIterator< T >::m_permutation_ptr
private

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