API Documentation
Loading...
Searching...
No Matches
GridIndexing< t_dims > Class Template Reference

Converts 1 dimensional index into N dimensional index based on size of each dimension. More...

#include <GriddedMesh.h>

Inheritance diagram for GridIndexing< t_dims >:
[legend]
Collaboration diagram for GridIndexing< t_dims >:
[legend]

Public Member Functions

Vector< t_dims, uint04convertFromIndex (const uint04 &location) const
 
uint04 convertToIndex (const Vector< t_dims, uint04 > &location) const
 
void setSize (Vector< t_dims, uint04 > index_size)
 

Static Public Member Functions

static constexpr uint01 getNumberOfCorners ()
 

Protected Attributes

Vector< t_dims, uint04m_size
 

Detailed Description

template<uint01 t_dims>
class NDEVR::GridIndexing< t_dims >

Converts 1 dimensional index into N dimensional index based on size of each dimension.


Member Function Documentation

◆ convertFromIndex()

template<uint01 t_dims>
Vector< t_dims, uint04 > convertFromIndex ( const uint04 & location) const
inline

◆ convertToIndex()

template<uint01 t_dims>
uint04 convertToIndex ( const Vector< t_dims, uint04 > & location) const
inline

◆ getNumberOfCorners()

template<uint01 t_dims>
static constexpr uint01 getNumberOfCorners ( )
inlinestaticconstexpr

◆ setSize()

template<uint01 t_dims>
void setSize ( Vector< t_dims, uint04 > index_size)
inline

Member Data Documentation

◆ m_size

template<uint01 t_dims>
Vector<t_dims, uint04> m_size
protected

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