xapian-core  2.0.0
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
Xapian::LatLongCoordsIterator Class Reference

An iterator across the values in a LatLongCoords object. More...

#include <geospatial.h>

+ Collaboration diagram for Xapian::LatLongCoordsIterator:

Public Member Functions

 LatLongCoordsIterator ()
 Default constructor. Produces an uninitialised iterator. More...
 
const LatLongCoordoperator* () const
 Get the LatLongCoord for the current position. More...
 
LatLongCoordsIteratoroperator++ ()
 Advance the iterator to the next position. More...
 
DerefWrapper_< LatLongCoordoperator++ (int)
 Advance the iterator to the next position (postfix version). More...
 
bool operator== (const LatLongCoordsIterator &other) const
 Equality test for LatLongCoordsIterator objects. More...
 

Private Types

typedef std::input_iterator_tag iterator_category
 
typedef LatLongCoord value_type
 
typedef size_t difference_type
 
typedef LatLongCoordpointer
 
typedef LatLongCoordreference
 

Private Member Functions

 LatLongCoordsIterator (std::vector< LatLongCoord >::const_iterator iter_)
 Constructor used by LatLongCoords. More...
 

Private Attributes

std::vector< LatLongCoord >::const_iterator iter
 The current position of the iterator. More...
 

Friends

class LatLongCoords
 Friend class which needs to be able to construct us. More...
 

Detailed Description

An iterator across the values in a LatLongCoords object.

Experimental - see https://xapian.org/docs/deprecation#experimental-features

Definition at line 164 of file geospatial.h.

Member Typedef Documentation

◆ difference_type

Definition at line 219 of file geospatial.h.

◆ iterator_category

typedef std::input_iterator_tag Xapian::LatLongCoordsIterator::iterator_category
private

LatLongCoordsIterator is what the C++ STL calls an input_iterator.

The following typedefs allow std::iterator_traits<> to work so that this iterator can be used with the STL.

These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian iterator classes are compatible with the STL.

Definition at line 215 of file geospatial.h.

◆ pointer

Definition at line 221 of file geospatial.h.

◆ reference

Definition at line 223 of file geospatial.h.

◆ value_type

Definition at line 217 of file geospatial.h.

Constructor & Destructor Documentation

◆ LatLongCoordsIterator() [1/2]

Xapian::LatLongCoordsIterator::LatLongCoordsIterator ( std::vector< LatLongCoord >::const_iterator  iter_)
inlineprivate

Constructor used by LatLongCoords.

Definition at line 172 of file geospatial.h.

◆ LatLongCoordsIterator() [2/2]

Xapian::LatLongCoordsIterator::LatLongCoordsIterator ( )
inline

Default constructor. Produces an uninitialised iterator.

Definition at line 177 of file geospatial.h.

Member Function Documentation

◆ operator*()

const LatLongCoord& Xapian::LatLongCoordsIterator::operator* ( ) const
inline

Get the LatLongCoord for the current position.

Definition at line 180 of file geospatial.h.

◆ operator++() [1/2]

LatLongCoordsIterator& Xapian::LatLongCoordsIterator::operator++ ( )
inline

Advance the iterator to the next position.

Definition at line 185 of file geospatial.h.

◆ operator++() [2/2]

DerefWrapper_<LatLongCoord> Xapian::LatLongCoordsIterator::operator++ ( int  )
inline

Advance the iterator to the next position (postfix version).

Definition at line 191 of file geospatial.h.

◆ operator==()

bool Xapian::LatLongCoordsIterator::operator== ( const LatLongCoordsIterator other) const
inline

Equality test for LatLongCoordsIterator objects.

Definition at line 198 of file geospatial.h.

References iter.

Friends And Related Function Documentation

◆ LatLongCoords

friend class LatLongCoords
friend

Friend class which needs to be able to construct us.

Definition at line 166 of file geospatial.h.

Member Data Documentation

◆ iter

std::vector<LatLongCoord>::const_iterator Xapian::LatLongCoordsIterator::iter
private

The current position of the iterator.

Definition at line 169 of file geospatial.h.

Referenced by operator==().


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