9class TilesetContentManager;
30 class const_iterator {
63 const
Tile* operator->() const noexcept;
68 const_iterator& operator++() noexcept;
72 const_iterator operator++(
int) noexcept;
75 bool operator==(const const_iterator& rhs) const noexcept;
77 bool operator!=(const const_iterator& rhs) const noexcept;
80 explicit const_iterator(const
Tile* pRootTile) noexcept;
82 std::vector<const
Tile*> _traversalStack;
84 friend class LoadedTileEnumerator;
85 friend class LoadedConstTileEnumerator;
106 const
Tile* _pRootTile;
108 template <typename TIterator> static TIterator& increment(TIterator& it);
109 friend class LoadedTileEnumerator;
156 Tile* operator->() const noexcept;
161 iterator& operator++() noexcept;
165 iterator operator++(
int) noexcept;
168 bool operator==(const iterator& rhs) const noexcept;
170 bool operator!=(const iterator& rhs) const noexcept;
173 explicit iterator(
Tile* pRootTile) noexcept;
175 std::vector<
Tile*> _traversalStack;
177 friend class LoadedTileEnumerator;
178 friend class LoadedConstTileEnumerator;
An iterator over constant Tile instances.
const Tile value_type
The type of value that is being iterated over.
const Tile & operator*() const noexcept
Returns a reference to the current item being iterated.
void difference_type
The type used to identify distance between iterators.
std::forward_iterator_tag iterator_category
The iterator category tag denoting this is a forward iterator.
const Tile * pointer
A pointer to the type being iterated over.
const Tile & reference
A reference to the type being iterated over.
const_iterator begin() const noexcept
Returns an iterator starting at the first tile.
const_iterator end() const noexcept
Returns an iterator starting after the last tile.
LoadedConstTileEnumerator(const Tile *pRootTile) noexcept
Creates a new instance to enumerate loaded tiles in the subtree rooted at pRootTile.
An iterator over Tile instances.
std::forward_iterator_tag iterator_category
The iterator category tag denoting this is a forward iterator.
Tile & reference
A reference to the type being iterated over.
Tile value_type
The type of value that is being iterated over.
Tile * pointer
A pointer to the type being iterated over.
void difference_type
The type used to identify distance between iterators.
Tile & operator*() const noexcept
Returns a reference to the current item being iterated.
iterator end() const noexcept
Returns an iterator starting after the last tile.
iterator begin() const noexcept
Returns an iterator starting at the first tile.
LoadedConstTileEnumerator::const_iterator const_iterator
An iterator over constant Tile instances.
LoadedTileEnumerator(Tile *pRootTile) noexcept
Creates a new instance to enumerate loaded tiles in the subtree rooted at pRootTile.
Classes that implement the 3D Tiles standard.