Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
|
This functor uses the minus operator to calculate the difference between 2 elements of Tp along the dimension n
accessed through a custom accessor.
More...
#include <spatial_builtin.hpp>
Inherits Accessor.
Public Member Functions | |
accessor_minus (Accessor accessor_=Accessor()) | |
template<typename AnyUnit > | |
accessor_minus (const accessor_minus< Accessor, Tp, AnyUnit > &other) | |
Unit | operator() (dimension_type n, const Tp &x, const Tp &y) const |
Accessor | accessor () const |
This functor uses the minus operator to calculate the difference between 2 elements of Tp along the dimension n
accessed through a custom accessor.
The returned value is cast into the type Unit
.
Definition at line 23 of file spatial_builtin.hpp.
|
explicit |
Definition at line 32 of file function.hpp.
spatial::accessor_minus< Accessor, Tp, Unit >::accessor_minus | ( | const accessor_minus< Accessor, Tp, AnyUnit > & | other | ) |
Definition at line 37 of file function.hpp.
Accessor spatial::accessor_minus< Accessor, Tp, Unit >::accessor | ( | ) | const |
Definition at line 45 of file function.hpp.
Unit spatial::accessor_minus< Accessor, Tp, Unit >::operator() | ( | dimension_type | n, |
const Tp & | x, | ||
const Tp & | y | ||
) | const |
Definition at line 42 of file function.hpp.