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

The const equivalent of GeoJsonObjectIterator. 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.
 
const GeoJsonObjectgetFeature ()
 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).
 
ConstGeoJsonObjectIteratoroperator++ ()
 Iterates to the next GeoJsonObject, returning this modified iterator.
 
ConstGeoJsonObjectIterator operator++ (int)
 Iterates to the next GeoJsonObject, returning the previous state of the iterator.
 
 ConstGeoJsonObjectIterator (const GeoJsonObject &rootObject)
 Creates a new ConstGeoJsonObjectIterator with the given GeoJsonObject as the root object.
 
 ConstGeoJsonObjectIterator ()=default
 Creates a new ConstGeoJsonObjectIterator without any GeoJsonObject. This is equivalent to an "end" iterator.
 

Friends

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

Detailed Description

The const equivalent of GeoJsonObjectIterator.

Definition at line 444 of file GeoJsonObject.h.

Constructor & Destructor Documentation

◆ ConstGeoJsonObjectIterator()

CesiumVectorData::ConstGeoJsonObjectIterator::ConstGeoJsonObjectIterator ( const GeoJsonObject & rootObject)
inline

Creates a new ConstGeoJsonObjectIterator 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 516 of file GeoJsonObject.h.

Member Function Documentation

◆ getFeature()

const GeoJsonObject * CesiumVectorData::ConstGeoJsonObjectIterator::getFeature ( )
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 465 of file GeoJsonObject.h.

◆ isEnded()

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

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

Definition at line 471 of file GeoJsonObject.h.

◆ operator*()

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

Returns a reference to the current object.

Definition at line 455 of file GeoJsonObject.h.

◆ operator++() [1/2]

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

Iterates to the next GeoJsonObject, returning this modified iterator.

Definition at line 477 of file GeoJsonObject.h.

◆ operator++() [2/2]

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

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

Definition at line 485 of file GeoJsonObject.h.

◆ operator->()

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

Returns a pointer to the current object.

Definition at line 457 of file GeoJsonObject.h.

Friends And Related Symbol Documentation

◆ operator!=

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

Checks if two ConstGeoJsonObjectIterator iterators are not equal.

Definition at line 503 of file GeoJsonObject.h.

◆ operator==

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

Checks if two ConstGeoJsonObjectIterator iterators are equal.

Definition at line 493 of file GeoJsonObject.h.


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