mf
Media Framework
|
Cuboid n-dimensional span delimited by two ndcoord
vectors.
More...
#include <ndspan.h>
Public Types | |
using | coordinates_type = ndcoord< Dim, T > |
using | shape_type = ndsize< Dim > |
Public Member Functions | |
ndspan ()=default | |
ndspan (const ndspan &)=default | |
ndspan (const coordinates_type &start, const coordinates_type &end) | |
ndspan & | operator= (const ndspan &) noexcept=default |
const coordinates_type & | start_pos () const noexcept |
const coordinates_type & | end_pos () const noexcept |
bool | includes (const coordinates_type &) const |
bool | includes (const ndspan &sub) const |
bool | includes_strict (const ndspan &sub) const |
shape_type | shape () const |
std::size_t | size () const |
Friends | |
bool | operator== (const ndspan &a, const ndspan &b) noexcept |
bool | operator!= (const ndspan &a, const ndspan &b) noexcept |
Cuboid n-dimensional span delimited by two ndcoord
vectors.
Represents the interval, rectangular, or in general Dim
-dimensional cuboid region where for all coordinates c
inside it and for each dimension 0 <= i < Dim
, one has start_pos()[i] <= c[i] < end_pos()[i]
. Can be zero-length on any axis (possibly on all).
using mf::ndspan< Dim, T >::coordinates_type = ndcoord<Dim, T> |
using mf::ndspan< Dim, T >::shape_type = ndsize<Dim> |
|
default |
|
default |
mf::ndspan< Dim, T >::ndspan | ( | const coordinates_type & | start, |
const coordinates_type & | end | ||
) |
|
inlinenoexcept |
bool mf::ndspan< Dim, T >::includes | ( | const coordinates_type & | c | ) | const |
bool mf::ndspan< Dim, T >::includes | ( | const ndspan< Dim, T > & | sub | ) | const |
bool mf::ndspan< Dim, T >::includes_strict | ( | const ndspan< Dim, T > & | sub | ) | const |
|
defaultnoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
friend |
|
friend |