Chombo + EB  3.2
Public Member Functions | Private Types | List of all members
ArSp::RSIndexer< 2, USz_t > Class Template Reference

Full specialization for Rank 2 and zero-based subscripts. More...

#include <CHArray.H>

Inheritance diagram for ArSp::RSIndexer< 2, USz_t >:
Inheritance graph
[legend]

Public Member Functions

 RSIndexer ()
 
 RSIndexer (const IIx_t offset, const USz_t &dim1, const USz_t &dim0)
 
void ixDefine (const IIx_t offset, const USz_t &dim1, const USz_t &dim0)
 
USz_t ixIndex1D (const USz_t size, const IIx_t i1, const IIx_t i0) const
 
USz_t ixDimSize (const USz_t size, const unsigned dim) const
 
IIx_t ixLowerBound (const unsigned dim) const
 
IIx_t ixUpperBound (const USz_t size, const unsigned dim) const
 
IIx_t ixTotalOffset () const
 
unsigned ixIV (const unsigned i) const
 

Private Types

typedef IndexerData< 2, USz_tIxData
 

Additional Inherited Members

- Private Member Functions inherited from ArSp::IndexerData< 2, USz_t >
 IndexerData ()
 
 IndexerData (const USz_t stride, const USz_t &dim)
 
void ixDefineLowerBound (const USz_t &dim)
 
IIx_t ixLowerBound () const
 
bool ixValidBounds (const IIx_t i, const USz_t size) const
 
IIx_t ixDimOffset () const
 
- Private Attributes inherited from ArSp::IndexerData< 2, USz_t >
USz_t m_ixStride
 Stride for this dimension. More...
 

Detailed Description

template<>
class ArSp::RSIndexer< 2, USz_t >

Full specialization for Rank 2 and zero-based subscripts.

Saves the byte required to store the rank1 indexer (which itself holds no data if DimT=USz_t)

Member Typedef Documentation

◆ IxData

typedef IndexerData<2, USz_t> ArSp::RSIndexer< 2, USz_t >::IxData
private

Constructor & Destructor Documentation

◆ RSIndexer() [1/2]

ArSp::RSIndexer< 2, USz_t >::RSIndexer ( )
inline

◆ RSIndexer() [2/2]

ArSp::RSIndexer< 2, USz_t >::RSIndexer ( const IIx_t  offset,
const USz_t dim1,
const USz_t dim0 
)
inline

Member Function Documentation

◆ ixDefine()

void ArSp::RSIndexer< 2, USz_t >::ixDefine ( const IIx_t  offset,
const USz_t dim1,
const USz_t dim0 
)
inline

◆ ixIndex1D()

USz_t ArSp::RSIndexer< 2, USz_t >::ixIndex1D ( const USz_t  size,
const IIx_t  i1,
const IIx_t  i0 
) const
inline

References CH_assert.

◆ ixDimSize()

USz_t ArSp::RSIndexer< 2, USz_t >::ixDimSize ( const USz_t  size,
const unsigned  dim 
) const
inline

◆ ixLowerBound()

IIx_t ArSp::RSIndexer< 2, USz_t >::ixLowerBound ( const unsigned  dim) const
inline

◆ ixUpperBound()

IIx_t ArSp::RSIndexer< 2, USz_t >::ixUpperBound ( const USz_t  size,
const unsigned  dim 
) const
inline

◆ ixTotalOffset()

IIx_t ArSp::RSIndexer< 2, USz_t >::ixTotalOffset ( ) const
inline

◆ ixIV()

unsigned ArSp::RSIndexer< 2, USz_t >::ixIV ( const unsigned  i) const
inline

References SpaceDim.


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