Public Member Functions | List of all members
geo::IteratorBox< Iter, BeginFunc, EndFunc > Class Template Reference

#include <GeometryCore.h>

Inheritance diagram for geo::IteratorBox< Iter, BeginFunc, EndFunc >:
util::span< Iter > util::span_base

Public Member Functions

 IteratorBox (GeometryCore const *geom)
 
- Public Member Functions inherited from util::span< Iter >
 span (begin_iterator b, end_iterator e)
 Constructor: specifies the begin and end iterator. More...
 
 span (SrcIterB &&b, SrcIterE &&e, Adaptor &&adaptor)
 Constructor: specifies the begin and end iterator and an adapter. More...
 
 span (span< OBIter, OEIter > const &from)
 Constructor: copies from another span (possibly with different types). More...
 
 span (span_t const &)=default
 
 span (span_t &&)=default
 
span_toperator= (span_t const &)=default
 
span_toperator= (span_t &&)=default
 
begin_iterator begin () const
 Returns a copy of the begin iterator. More...
 
end_iterator end () const
 Returns a copy of the end iterator. More...
 
std::size_t size () const
 Returns the size between begin and end, converted to std::size_t. More...
 
bool empty () const
 Returns whether the span is empty (that is, no steps between them). More...
 

Additional Inherited Members

- Public Types inherited from util::span< Iter >
using begin_iterator = Iter
 Type of begin iterator. More...
 
using end_iterator = Iter
 Type of end iterator. More...
 
using span_t = span< begin_iterator, end_iterator >
 Type of this class. More...
 
using pair_t = std::pair< begin_iterator, end_iterator >
 Type of iterator pair. More...
 
using value_type = typename begin_iterator::value_type
 Type of values pointed by the iterators. More...
 
using reference = typename begin_iterator::reference
 Type of reference pointed by the iterators. More...
 
- Public Types inherited from util::span_base
template<typename Cont >
using get_begin_iterator = std::decay_t< decltype(get_begin(std::declval< Cont >()))>
 Type of begin iterator of Cont type. More...
 
template<typename Cont >
using get_end_iterator = std::decay_t< decltype(get_end(std::declval< Cont >()))>
 Type of end iterator of Cont type. More...
 
template<typename Cont >
using get_cbegin_iterator = std::decay_t< decltype(get_cbegin(std::declval< Cont >()))>
 Type of constant begin iterator of Cont type. More...
 
template<typename Cont >
using get_cend_iterator = std::decay_t< decltype(get_cend(std::declval< Cont >()))>
 Type of constant end iterator of Cont type. More...
 
- Static Public Member Functions inherited from util::span_base
template<typename Cont >
static decltype(auto) get_begin (Cont &cont)
 Returns the begin iterator of the specified container. More...
 
template<typename Cont >
static decltype(auto) get_end (Cont &cont)
 Returns the end iterator of the specified container. More...
 
template<typename Cont >
static decltype(auto) get_cbegin (Cont &cont)
 Returns the constant begin iterator of the specified container. More...
 
template<typename Cont >
static decltype(auto) get_cend (Cont &cont)
 Returns the constant end iterator of the specified container. More...
 

Detailed Description

template<typename Iter, Iter(GeometryCore::*)() const BeginFunc, Iter(GeometryCore::*)() const EndFunc>
class geo::IteratorBox< Iter, BeginFunc, EndFunc >

Definition at line 1380 of file GeometryCore.h.

Constructor & Destructor Documentation

template<typename Iter , Iter(GeometryCore::*)() const BeginFunc, Iter(GeometryCore::*)() const EndFunc>
geo::IteratorBox< Iter, BeginFunc, EndFunc >::IteratorBox ( GeometryCore const *  geom)
inline

Definition at line 1383 of file GeometryCore.h.

1384  : util::span<Iter>((geom->*BeginFunc)(), (geom->*EndFunc)())
1385  {}

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