cesium-native 0.43.0
Loading...
Searching...
No Matches
Cesium3DTilesContent::QuadtreeChildren::iterator Class Reference

An STL-compatible iterator over the children of a quadtree tile. More...

#include <Cesium3DTilesContent/ImplicitTilingUtilities.h>

Public Types

using iterator_category = std::forward_iterator_tag
 The iterator category tag denoting this is a forward iterator.
 
using value_type = CesiumGeometry::QuadtreeTileID
 The type of value that is being iterated over.
 
using difference_type = void
 The type used to identify distance between iterators.
 
using pointer = CesiumGeometry::QuadtreeTileID*
 A pointer to the type being iterated over.
 
using reference = CesiumGeometry::QuadtreeTileID&
 A reference to the type being iterated over.
 

Public Member Functions

 iterator (const CesiumGeometry::QuadtreeTileID &parentTileID, bool isEnd) noexcept
 Creates a new iterator over the children of a quadtree tile.
 
const CesiumGeometry::QuadtreeTileIDoperator* () const
 Returns a reference to the current CesiumGeometry::QuadtreeTileID being iterated.
 
const CesiumGeometry::QuadtreeTileIDoperator-> () const
 Returns a pointer to the current CesiumGeometry::QuadtreeTileID being iterated.
 
iteratoroperator++ ()
 Advances the iterator to the next child.
 
iterator operator++ (int)
 Advances the iterator to the next child.
 
bool operator== (const iterator &rhs) const noexcept
 Checks if two iterators are at the same child.
 
bool operator!= (const iterator &rhs) const noexcept
 Checks if two iterators are NOT at the same child.
 

Detailed Description

An STL-compatible iterator over the children of a quadtree tile.

Definition at line 35 of file ImplicitTilingUtilities.h.

Member Typedef Documentation

◆ difference_type

The type used to identify distance between iterators.

This is void as the distance between two QuadtreeTileIDs isn't particularly useful.

Definition at line 51 of file ImplicitTilingUtilities.h.

◆ iterator_category

The iterator category tag denoting this is a forward iterator.

Definition at line 40 of file ImplicitTilingUtilities.h.

◆ pointer

A pointer to the type being iterated over.

Definition at line 55 of file ImplicitTilingUtilities.h.

◆ reference

A reference to the type being iterated over.

Definition at line 59 of file ImplicitTilingUtilities.h.

◆ value_type

The type of value that is being iterated over.

Definition at line 44 of file ImplicitTilingUtilities.h.

Constructor & Destructor Documentation

◆ iterator()

Cesium3DTilesContent::QuadtreeChildren::iterator::iterator ( const CesiumGeometry::QuadtreeTileID & parentTileID,
bool isEnd )
explicitnoexcept

Creates a new iterator over the children of a quadtree tile.

Parameters
parentTileIDThe CesiumGeometry::QuadtreeTileID of the parent tile whose children will be iterated over.
isEndIf true, this iterator will start at the end of the data it's iterating over.

Member Function Documentation

◆ operator*()

const CesiumGeometry::QuadtreeTileID & Cesium3DTilesContent::QuadtreeChildren::iterator::operator* ( ) const
inline

Returns a reference to the current CesiumGeometry::QuadtreeTileID being iterated.

Definition at line 77 of file ImplicitTilingUtilities.h.

◆ operator->()

const CesiumGeometry::QuadtreeTileID * Cesium3DTilesContent::QuadtreeChildren::iterator::operator-> ( ) const
inline

Returns a pointer to the current CesiumGeometry::QuadtreeTileID being iterated.

Definition at line 84 of file ImplicitTilingUtilities.h.


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