Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
|
A comparator that simplifies using the spatial containers with a Key type that has coordinate that are not accessible via the bracket, parenthesis operator or iterator deference. More...
#include <spatial_builtin.hpp>
Inherits Accessor.
Public Member Functions | |
accessor_less (Accessor access=Accessor()) | |
bool | operator() (dimension_type n, const Tp &x, const Tp &y) const |
bool | operator() (dimension_type a, const Tp &x, dimension_type b, const Tp &y) const |
const Accessor & | accessor () const |
A comparator that simplifies using the spatial containers with a Key type that has coordinate that are not accessible via the bracket, parenthesis operator or iterator deference.
Generally, the spatial containers are used with one of bracket_less, paren_less, or iterator_less. However, when the key used in the container cannot be compared through one of the above comparator, the following helper comparator can be used to define one through a custom accessor.
Definition at line 27 of file spatial_builtin.hpp.
|
explicit |
Definition at line 136 of file function.hpp.
const Accessor& spatial::accessor_less< Accessor, Tp >::accessor | ( | ) | const |
Definition at line 152 of file function.hpp.
bool spatial::accessor_less< Accessor, Tp >::operator() | ( | dimension_type | n, |
const Tp & | x, | ||
const Tp & | y | ||
) | const |
Definition at line 141 of file function.hpp.
bool spatial::accessor_less< Accessor, Tp >::operator() | ( | dimension_type | a, |
const Tp & | x, | ||
dimension_type | b, | ||
const Tp & | y | ||
) | const |
Definition at line 147 of file function.hpp.