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.
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Constructor from NCollection iterator.
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Cast from non-const variant to const one.
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Access to NCollection iterator instance.
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
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.
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
NCollection_StlIterator::pointer NCollection_StlIterator< Category, BaseIterator, ItemType, IsConstant >::operator-> |
( |
| ) |
const |
|
inline |
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
Assignment of non-const iterator to const one.
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
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.
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<bool Condition>
template<class Category , class BaseIterator , class ItemType , bool IsConstant>
template<bool Condition>
The documentation for this class was generated from the following file: