Geogram Version 1.9.6-rc
A programming library of geometric algorithms
Loading...
Searching...
No Matches
range.h File Reference

C++-20 like helpers for manipulating ranges of integers. More...

Go to the source code of this file.

Classes

class  GEO::index_as_iterator
 Wraps an integer to be used with the range-based for construct. More...
 
class  GEO::index_range
 A generic index_range bounded by two "non-iterators". More...
 
class  GEO::const_index_ptr_in_array
 Encapsulates a const pointer to an element in an index_t array. More...
 
class  GEO::index_ptr_in_array
 Encapsulates a pointer to an element in an index_t array. More...
 
class  GEO::index_ptr_range
 
class  GEO::const_index_ptr_range
 
class  GEO::transformed_iterator< IT, XFORM >
 An iterator that applies a user-defined function when deferenced. More...
 
class  GEO::transformed_iterator_ref< IT, XFORM >
 An iterator that applies a user-defined function when deferenced. More...
 
class  GEO::transformed_range< RANGE, XFORM >
 A range composed with a user-defined function. More...
 
class  GEO::transformed_range_ref< RANGE, XFORM >
 A range composed with a user-defined function. More...
 

Namespaces

namespace  GEO
 Global Vorpaline namespace.
 

Functions

template<class RANGE , typename XFORM >
auto GEO::transform_range (const RANGE &range, XFORM xform)
 Creates a range that applies a user-defined function to each element when accessed.
 
template<class RANGE , typename XFORM >
auto GEO::transform_range_ref (const RANGE &range, XFORM xform)
 Creates a range that applies a user-defined function to each element when accessed.
 

Detailed Description

C++-20 like helpers for manipulating ranges of integers.

Note
transform() not implemented yet, I need c++14 for that (auto return type).

Definition in file range.h.