Public Types | Public Member Functions | Public Attributes | Static Public Attributes
ash::geometric_path_iterator< Nav, _D > Struct Template Reference

The base class for hashgrid::path_iterator and hashgrid::const_path_iterator. More...

#include <ash/impl/geometric_iterators.h>

List of all members.

Public Types

enum  { D = DIM_2D }
typedef geometric_path_iterator _Type
typedef Nav::box_type box_type
typedef Nav::box_ptr box_ptr
typedef Nav::key_type key_type
typedef Nav::morton_type morton_type
typedef Nav::pcoord_type pcoord_type
typedef Nav::point_type point_type
typedef point_type vector_type
Iterator Traits
typedef Nav::value_type value_type
typedef Nav::pointer pointer
typedef Nav::reference reference
typedef Nav::size_type size_type
typedef Nav::difference_type difference_type
typedef
std::bidirectional_iterator_tag 
iterator_category

Public Member Functions

void _inc ()
void _dec ()
_Typeoperator++ ()
 Pre-increment.
_Type operator++ (int)
 Post-increment.
_Typeoperator-- ()
 Pre-decrement.
_Type operator-- (int)
 Post-decrement.
template<typename T >
bool operator== (T const &p) const
 Equality operator - (delegated to the wrapped navigator).
template<typename T >
bool operator!= (T const &p) const
 Inequality operator - (delegated to the wrapped navigator).
Constructors/Destructors

We use the default copy constructor.

We use the default destructor.

 geometric_path_iterator ()
 Default constructor.
 geometric_path_iterator (box_ptr box, point_type const &p1, point_type const &p2)
 "Real" constructor.
Dereference Operators
pointer operator-> () const
reference operator* () const

Public Attributes

pcoord_type current
point_type current_sub
point_type start
vector_type vec
Nav _M_nav

Static Public Attributes

static const pcoord_type pcoord_end
static const pcoord_type pcoord_max

Detailed Description

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
struct ash::geometric_path_iterator< Nav, _D >

The base class for hashgrid::path_iterator and hashgrid::const_path_iterator.


Constructor & Destructor Documentation

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
ash::geometric_path_iterator< Nav, _D >::geometric_path_iterator ( ) [inline]

Default constructor.

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
ash::geometric_path_iterator< Nav, _D >::geometric_path_iterator ( box_ptr  box,
point_type const &  p1,
point_type const &  p2 
) [inline]

"Real" constructor.

Parameters:
boxA pointer to the container.
p1The first point.
p2The second point.

Member Function Documentation

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
template<typename T >
bool ash::geometric_path_iterator< Nav, _D >::operator!= ( T const &  p) const [inline]

Inequality operator - (delegated to the wrapped navigator).

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
_Type& ash::geometric_path_iterator< Nav, _D >::operator++ ( ) [inline]

Pre-increment.

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
_Type ash::geometric_path_iterator< Nav, _D >::operator++ ( int  ) [inline]

Post-increment.

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
_Type& ash::geometric_path_iterator< Nav, _D >::operator-- ( ) [inline]

Pre-decrement.

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
_Type ash::geometric_path_iterator< Nav, _D >::operator-- ( int  ) [inline]

Post-decrement.

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
template<typename T >
bool ash::geometric_path_iterator< Nav, _D >::operator== ( T const &  p) const [inline]

Equality operator - (delegated to the wrapped navigator).


Member Data Documentation

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
const geometric_path_iterator< Nav, D >::pcoord_type ash::geometric_path_iterator< Nav, D >::pcoord_end [static]
Initial value:
        typename Nav::pcoord_type(static_cast< typename Nav::size_type >(-1))
template<class Nav, DIM _D = dim_cast<Nav::D>::D>
const geometric_path_iterator< Nav, D >::pcoord_type ash::geometric_path_iterator< Nav, D >::pcoord_max [static]
Initial value:
        typename Nav::pcoord_type((PCoordXY< typename Nav::size_type >::mask::X & (PCoordXY< typename Nav::size_type >::mask::X << 1)) |   (PCoordXY< typename Nav::size_type >::mask::Y & (PCoordXY< typename Nav::size_type >::mask::Y << 1)))

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


© 2012   AshTL
Licensed under  AGPLv3
Hosted by  Get AshTL at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated by  doxygen 1.7.4