Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
spatial::manhattan_neighbor_iterator_pair< Ct, DistanceType, Diff > Class Template Reference

Facilitate the creation of an iterator range representing a sequence from closest to furthest from the target key position, in manhattan space. More...

#include <spatial_manhattan_neighbor.hpp>

Inherits spatial::neighbor_iterator_pair< Ct, manhattan< Ct, DistanceType, Diff > >.

Public Member Functions

 manhattan_neighbor_iterator_pair ()
 
 manhattan_neighbor_iterator_pair (const manhattan_neighbor_iterator< Ct, DistanceType, Diff > &a, const manhattan_neighbor_iterator< Ct, DistanceType, Diff > &b)
 
template<typename AnyDistanceType >
 manhattan_neighbor_iterator_pair (const neighbor_iterator_pair< Ct, manhattan< Ct, AnyDistanceType, Diff > > &other)
 
- Public Member Functions inherited from spatial::neighbor_iterator_pair< Ct, manhattan< Ct, DistanceType, Diff > >
 neighbor_iterator_pair ()
 Empty constructor. More...
 
 neighbor_iterator_pair (const neighbor_iterator< Ct, manhattan< Ct, DistanceType, Diff > > &a, const neighbor_iterator< Ct, manhattan< Ct, DistanceType, Diff > > &b)
 Regular constructor that builds a neighbor_iterator_pair out of 2 neighbor_iterators. More...
 

Private Types

typedef enable_if< import::is_arithmetic< DistanceType > > check_concept_distance_type_is_arithmetic
 

Additional Inherited Members

- Public Types inherited from spatial::neighbor_iterator_pair< Ct, manhattan< Ct, DistanceType, Diff > >
typedef std::pair< neighbor_iterator< Ct, manhattan< Ct, DistanceType, Diff > >, neighbor_iterator< Ct, manhattan< Ct, DistanceType, Diff > > > Base
 A pair of iterators that represents a range (that is: a range of elements to iterate, and not an orthogonal range). More...
 

Detailed Description

template<typename Ct, typename DistanceType, typename Diff = typename details::with_builtin_difference<Ct>::type>
class spatial::manhattan_neighbor_iterator_pair< Ct, DistanceType, Diff >

Facilitate the creation of an iterator range representing a sequence from closest to furthest from the target key position, in manhattan space.

This class has an associated group of functions designed to initialize the iterator position at the beginning, end, lower bound or upper bound of the container to iterate.

Template Parameters
CtThe container to iterator.
DistanceTypeThe type used to represent the distance, it must be a primitive arithmetic type.
DiffThe difference functor that will compute the difference between 2 key element in the container, along a specific dimension. See Difference for further explanation.

Definition at line 111 of file spatial_manhattan_neighbor.hpp.

Member Typedef Documentation

template<typename Ct , typename DistanceType , typename Diff = typename details::with_builtin_difference<Ct>::type>
typedef enable_if<import::is_arithmetic<DistanceType> > spatial::manhattan_neighbor_iterator_pair< Ct, DistanceType, Diff >::check_concept_distance_type_is_arithmetic
private

Definition at line 116 of file spatial_manhattan_neighbor.hpp.

Constructor & Destructor Documentation

template<typename Ct , typename DistanceType , typename Diff = typename details::with_builtin_difference<Ct>::type>
spatial::manhattan_neighbor_iterator_pair< Ct, DistanceType, Diff >::manhattan_neighbor_iterator_pair ( )

Definition at line 119 of file spatial_manhattan_neighbor.hpp.

template<typename Ct , typename DistanceType , typename Diff = typename details::with_builtin_difference<Ct>::type>
spatial::manhattan_neighbor_iterator_pair< Ct, DistanceType, Diff >::manhattan_neighbor_iterator_pair ( const manhattan_neighbor_iterator< Ct, DistanceType, Diff > &  a,
const manhattan_neighbor_iterator< Ct, DistanceType, Diff > &  b 
)

Definition at line 122 of file spatial_manhattan_neighbor.hpp.

template<typename Ct , typename DistanceType , typename Diff = typename details::with_builtin_difference<Ct>::type>
template<typename AnyDistanceType >
spatial::manhattan_neighbor_iterator_pair< Ct, DistanceType, Diff >::manhattan_neighbor_iterator_pair ( const neighbor_iterator_pair< Ct, manhattan< Ct, AnyDistanceType, Diff > > &  other)

Definition at line 129 of file spatial_manhattan_neighbor.hpp.


The documentation for this class was generated from the following file: