Helper class that allows to use NCollection iterators as STL iterators. NCollection iterator can be extended to STL iterator of any category by adding necessary methods: STL forward iterator requires IsEqual method, STL bidirectional iterator requires Previous method, and STL random access iterator requires Offset and Differ methods. See NCollection_Vector as example of declaring custom STL iterators.
More...
#include <NCollection_StlIterator.hxx>
template<class Category, class BaseIterator, class ItemType, bool IsConstant>
class NCollection_StlIterator< Category, BaseIterator, ItemType, IsConstant >
Helper class that allows to use NCollection iterators as STL iterators. NCollection iterator can be extended to STL iterator of any category by adding necessary methods: STL forward iterator requires IsEqual method, STL bidirectional iterator requires Previous method, and STL random access iterator requires Offset and Differ methods. See NCollection_Vector as example of declaring custom STL iterators.
◆ NCollection_StlIterator() [1/3]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ NCollection_StlIterator() [2/3]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Constructor from NCollection iterator.
◆ NCollection_StlIterator() [3/3]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Cast from non-const variant to const one.
◆ ChangeIterator()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Access to NCollection iterator instance.
◆ Iterator()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Access to NCollection iterator instance.
◆ operator!=()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator*()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
NCollection_StlIterator::reference NCollection_StlIterator< Category, BaseIterator, ItemType, IsConstant >::operator* |
( |
| ) |
const |
|
inline |
Get reference to current item.
◆ operator+()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator++() [1/2]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator++() [2/2]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator+=()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator-() [1/2]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator-() [2/2]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator--() [1/2]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator--() [2/2]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator-=()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator->()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
NCollection_StlIterator::pointer NCollection_StlIterator< Category, BaseIterator, ItemType, IsConstant >::operator-> |
( |
| ) |
const |
|
inline |
◆ operator<()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator<=()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator=()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Assignment of non-const iterator to const one.
◆ operator==()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator>()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator>=()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
◆ operator[]()
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
NCollection_StlIterator::reference NCollection_StlIterator< Category, BaseIterator, ItemType, IsConstant >::operator[] |
( |
typename NCollection_StlIterator< Category, BaseIterator, ItemType, IsConstant >::difference_type |
theOffset | ) |
const |
|
inline |
Get item at offset from current.
◆ Reference() [1/2]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<bool Condition>
opencascade::std::enable_if<!Condition, ItemType&>::type NCollection_StlIterator< Category, BaseIterator, ItemType, IsConstant >::Reference |
( |
| ) |
const |
|
inlineprotected |
◆ Reference() [2/2]
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<bool Condition>
opencascade::std::enable_if<Condition, const ItemType&>::type NCollection_StlIterator< Category, BaseIterator, ItemType, IsConstant >::Reference |
( |
| ) |
const |
|
inlineprotected |
The documentation for this class was generated from the following file: