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

The base class for hashgrid::range_iterator and hashgrid::const_range_iterator. More...

#include <ash/impl/geometric_iterators.h>

List of all members.

Public Types

enum  { D = Nav::D }
typedef geometric_range_iterator _Type
typedef Nav::key_type key_type
typedef Nav::morton_type morton_type
typedef Nav::pcoord_type pcoord_type
typedef Nav::point_type point_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 _fast_inc ()
void _fast_dec ()
void _safe_inc ()
void _safe_dec ()
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_range_iterator ()
 Default constructor.
 geometric_range_iterator (Nav const &nav, size_type r)
 "Real" constructor.
Dereference Operators
pointer operator-> () const
reference operator* () const

Public Attributes

bool fast
pcoord_type current
pcoord_type upper
pcoord_type lower
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_range_iterator< Nav, _D >

The base class for hashgrid::range_iterator and hashgrid::const_range_iterator.


Constructor & Destructor Documentation

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

Default constructor.

template<class Nav, DIM D>
ash::geometric_range_iterator< Nav, D >::geometric_range_iterator ( Nav const &  nav,
size_type  r 
)

"Real" constructor.

Parameters:
navA navigator for the current location.
rThe range to search around that location.

Member Function Documentation

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
template<typename T >
bool ash::geometric_range_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_range_iterator< Nav, _D >::operator++ ( ) [inline]

Pre-increment.

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

Post-increment.

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

Pre-decrement.

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

Post-decrement.

template<class Nav, DIM _D = dim_cast<Nav::D>::D>
template<typename T >
bool ash::geometric_range_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_range_iterator< Nav, D >::pcoord_type ash::geometric_range_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_range_iterator< Nav, D >::pcoord_type ash::geometric_range_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