Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions
NCollection_ItemsView::View< MapType, RefType, Extractor, IsConst > Class Template Reference

Generic view class for Items() iteration. More...

#include <NCollection_ItemsView.hxx>

Public Types

using MapRef = std::conditional_t<IsConst, const MapType&, MapType&>
 
using iterator = Iterator<typename MapType::Iterator, RefType, Extractor>
 

Public Member Functions

 View (MapRef theMap)
 Constructor.
 
iterator begin () const
 Returns iterator to first element.
 
iterator end () const
 Returns iterator past the end.
 

Detailed Description

template<class MapType, class RefType, class Extractor, bool IsConst>
class NCollection_ItemsView::View< MapType, RefType, Extractor, IsConst >

Generic view class for Items() iteration.

Template Parameters
MapTypethe map class type
RefTypethe reference type for structured bindings
Extractorfunctor class for extracting RefType from iterator
IsConstif true, this is a const view

Member Typedef Documentation

◆ iterator

◆ MapRef

template<class MapType , class RefType , class Extractor , bool IsConst>
using NCollection_ItemsView::View< MapType, RefType, Extractor, IsConst >::MapRef = std::conditional_t<IsConst, const MapType&, MapType&>

Constructor & Destructor Documentation

◆ View()

template<class MapType , class RefType , class Extractor , bool IsConst>
NCollection_ItemsView::View< MapType, RefType, Extractor, IsConst >::View ( MapRef theMap)
inlineexplicit

Constructor.

Member Function Documentation

◆ begin()

Returns iterator to first element.

◆ end()

Returns iterator past the end.


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