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

An STL-compatible iterator over the children of an octree 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::OctreeTileID
 The type of value that is being iterated over.
 
using difference_type = void
 The type used to identify distance between iterators.
 
using pointer = CesiumGeometry::OctreeTileID*
 A pointer to the type being iterated over.
 
using reference = CesiumGeometry::OctreeTileID&
 A reference to the type being iterated over.
 

Public Member Functions

 iterator (const CesiumGeometry::OctreeTileID &parentTileID, bool isEnd) noexcept
 Creates a new iterator over the children of a octree tile.
 
const CesiumGeometry::OctreeTileIDoperator* () const
 Returns a reference to the current CesiumGeometry::OctreeTileID being iterated.
 
const CesiumGeometry::OctreeTileIDoperator-> () const
 Returns a pointer to the current CesiumGeometry::OctreeTileID 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 an octree tile.

Definition at line 138 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 OctreeTileIDs isn't particularly useful.

Definition at line 154 of file ImplicitTilingUtilities.h.

◆ iterator_category

The iterator category tag denoting this is a forward iterator.

Definition at line 143 of file ImplicitTilingUtilities.h.

◆ pointer

A pointer to the type being iterated over.

Definition at line 158 of file ImplicitTilingUtilities.h.

◆ reference

A reference to the type being iterated over.

Definition at line 162 of file ImplicitTilingUtilities.h.

◆ value_type

The type of value that is being iterated over.

Definition at line 147 of file ImplicitTilingUtilities.h.

Constructor & Destructor Documentation

◆ iterator()

Cesium3DTilesContent::OctreeChildren::iterator::iterator ( const CesiumGeometry::OctreeTileID & parentTileID,
bool isEnd )
explicitnoexcept

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

Parameters
parentTileIDThe CesiumGeometry::OctreeTileID 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::OctreeTileID & Cesium3DTilesContent::OctreeChildren::iterator::operator* ( ) const
inline

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

Definition at line 180 of file ImplicitTilingUtilities.h.

◆ operator->()

const CesiumGeometry::OctreeTileID * Cesium3DTilesContent::OctreeChildren::iterator::operator-> ( ) const
inline

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

Definition at line 187 of file ImplicitTilingUtilities.h.


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