cesium-native 0.50.0
Loading...
Searching...
No Matches
CesiumVectorData::GeoJsonObjectIterator Struct Reference

Iterates over a GeoJsonObject and all of its children. More...

#include <CesiumVectorData/GeoJsonObject.h>

Public Member Functions

reference operator* () const
 Returns a reference to the current object.
 
pointer operator-> ()
 Returns a pointer to the current object.
 
GeoJsonObjectgetFeature () const
 Attempts to find the Feature that contains the current item the iterator is pointing to.
 
bool isEnded () const
 Returns true if this is an "end" iterator (points past the end of all objects).
 
GeoJsonObjectIteratoroperator++ ()
 Iterates to the next GeoJsonObject, returning this modified iterator.
 
GeoJsonObjectIterator operator++ (int)
 Iterates to the next GeoJsonObject, returning the previous state of the iterator.
 
 GeoJsonObjectIterator (GeoJsonObject &rootObject)
 Creates a new GeoJsonObjectIterator with the given GeoJsonObject as the root object.
 
 GeoJsonObjectIterator ()
 Creates a new GeoJsonObjectIterator without any GeoJsonObject. This is equivalent to an "end" iterator.
 

Friends

struct ConstGeoJsonObjectIterator
 
bool operator== (const GeoJsonObjectIterator &a, const GeoJsonObjectIterator &b)
 Checks if two GeoJsonObjectIterator iterators are equal.
 
bool operator!= (const GeoJsonObjectIterator &a, const GeoJsonObjectIterator &b)
 Checks if two GeoJsonObjectIterator iterators are not equal.
 

Detailed Description

Iterates over a GeoJsonObject and all of its children.

Definition at line 245 of file GeoJsonObject.h.

Constructor & Destructor Documentation

◆ GeoJsonObjectIterator() [1/2]

CesiumVectorData::GeoJsonObjectIterator::GeoJsonObjectIterator ( GeoJsonObject & rootObject)
inline

Creates a new GeoJsonObjectIterator with the given GeoJsonObject as the root object.

Parameters
rootObjectThe root object of the new iterator. This will be the first object returned.

Definition at line 348 of file GeoJsonObject.h.

◆ GeoJsonObjectIterator() [2/2]

CesiumVectorData::GeoJsonObjectIterator::GeoJsonObjectIterator ( )
inline

Creates a new GeoJsonObjectIterator without any GeoJsonObject. This is equivalent to an "end" iterator.

Definition at line 359 of file GeoJsonObject.h.

Member Function Documentation

◆ getFeature()

GeoJsonObject * CesiumVectorData::GeoJsonObjectIterator::getFeature ( ) const
inline

Attempts to find the Feature that contains the current item the iterator is pointing to.

If the iterator is pointing to a Feature, that Feature will be returned.

Definition at line 274 of file GeoJsonObject.h.

◆ isEnded()

bool CesiumVectorData::GeoJsonObjectIterator::isEnded ( ) const
inline

Returns true if this is an "end" iterator (points past the end of all objects).

Definition at line 288 of file GeoJsonObject.h.

◆ operator*()

reference CesiumVectorData::GeoJsonObjectIterator::operator* ( ) const
inline

Returns a reference to the current object.

Definition at line 264 of file GeoJsonObject.h.

◆ operator++() [1/2]

GeoJsonObjectIterator & CesiumVectorData::GeoJsonObjectIterator::operator++ ( )
inline

Iterates to the next GeoJsonObject, returning this modified iterator.

Definition at line 296 of file GeoJsonObject.h.

◆ operator++() [2/2]

GeoJsonObjectIterator CesiumVectorData::GeoJsonObjectIterator::operator++ ( int )
inline

Iterates to the next GeoJsonObject, returning the previous state of the iterator.

Definition at line 304 of file GeoJsonObject.h.

◆ operator->()

pointer CesiumVectorData::GeoJsonObjectIterator::operator-> ( )
inline

Returns a pointer to the current object.

Definition at line 266 of file GeoJsonObject.h.

Friends And Related Symbol Documentation

◆ ConstGeoJsonObjectIterator

friend struct ConstGeoJsonObjectIterator
friend

Definition at line 438 of file GeoJsonObject.h.

◆ operator!=

bool operator!= ( const GeoJsonObjectIterator & a,
const GeoJsonObjectIterator & b )
friend

Checks if two GeoJsonObjectIterator iterators are not equal.

Definition at line 337 of file GeoJsonObject.h.

◆ operator==

bool operator== ( const GeoJsonObjectIterator & a,
const GeoJsonObjectIterator & b )
friend

Checks if two GeoJsonObjectIterator iterators are equal.

Definition at line 314 of file GeoJsonObject.h.


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