Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
spatial::accessor_less< Accessor, Tp > Struct Template Reference

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
 

Detailed Description

template<typename Accessor, typename Tp>
struct spatial::accessor_less< Accessor, Tp >

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.

Concept:
This object is a model of Generalized Comparison

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.

Constructor & Destructor Documentation

template<typename Accessor, typename Tp>
spatial::accessor_less< Accessor, Tp >::accessor_less ( Accessor  access = Accessor())
explicit

Definition at line 136 of file function.hpp.

Member Function Documentation

template<typename Accessor, typename Tp>
const Accessor& spatial::accessor_less< Accessor, Tp >::accessor ( ) const

Definition at line 152 of file function.hpp.

template<typename Accessor, typename Tp>
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.

template<typename Accessor, typename Tp>
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.


The documentation for this struct was generated from the following files: