aether::region< D > Class Template Reference

Represents a region in space using discretized coordinates. More...

#include <locality.hh>

Public Member Functions

 region (const std::array< int32_t, dimension > &_lowest_corner, std::array< int32_t, dimension > _extent)
 
std::array< int32_t, dimension > get_lowest_corner () const
 
std::array< int32_t, dimension > get_extent () const
 

Detailed Description

template<size_t D>
class aether::region< D >

Represents a region in space using discretized coordinates.

Discretized coordinates are used in order to have well-defined arithmetic and comparison operations

Template Parameters
D- number of dimensions of space

Constructor & Destructor Documentation

template<size_t D>
aether::region< D >::region ( const std::array< int32_t, dimension > &  _lowest_corner,
std::array< int32_t, dimension >  _extent 
)
inline

Member Function Documentation

template<size_t D>
std::array<int32_t, dimension> aether::region< D >::get_extent ( ) const
inline
Returns
size of the represented region
template<size_t D>
std::array<int32_t, dimension> aether::region< D >::get_lowest_corner ( ) const
inline
Returns
location of the corner of the region with lowest coordinate values