Volume Cartographer 2.27.0
|
Provides an iterable range of 2D number pairs with optional step size. More...
#include <vc/core/util/Iteration.hpp>
Classes | |
class | Counting2DIterator |
Public Types | |
using | iterator = Counting2DIterator< T > |
using | const_iterator = Counting2DIterator< T const & > |
Public Member Functions | |
Range2DIterable (T vStart, T vEnd, T uStart, T uEnd, T step) | |
iterator | begin () const |
iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
template<typename Q = T> | |
std::enable_if_t< std::is_floating_point< Q >::value, std::size_t > | size () const |
template<typename Q = T> | |
std::enable_if_t< std::is_integral< Q >::value, std::size_t > | size () const |
Private Attributes | |
T | vStart_ {0} |
T | vEnd_ {0} |
T | uStart_ {0} |
T | uEnd_ {0} |
T | step_ {1} |
Provides an iterable range of 2D number pairs with optional step size.
Convenience class for generating range-based for loops over 2D values. Note that this class only returns values and const references.
T | Integral or floating-point type |
Definition at line 194 of file Iteration.hpp.
using volcart::Range2DIterable< T, >::const_iterator = Counting2DIterator<T const&> |
Const iterator type
Definition at line 267 of file Iteration.hpp.
using volcart::Range2DIterable< T, >::iterator = Counting2DIterator<T> |
Iterator type
Definition at line 265 of file Iteration.hpp.
|
inline |
Construct a new range
Definition at line 270 of file Iteration.hpp.
|
inline |
Return the start of the range
Definition at line 283 of file Iteration.hpp.
|
inline |
Return the const start of the range
Definition at line 290 of file Iteration.hpp.
|
inline |
Return the const end of the range
Definition at line 295 of file Iteration.hpp.
|
inline |
Return the end of the range
Definition at line 288 of file Iteration.hpp.
|
inline |
Returns the size of the range (floating point ranges)
Definition at line 302 of file Iteration.hpp.
|
inline |
Returns the size of the range (integral ranges)
Definition at line 312 of file Iteration.hpp.
|
private |
Loop step size
Definition at line 328 of file Iteration.hpp.
|
private |
Inner loop limit
Definition at line 326 of file Iteration.hpp.
|
private |
Inner loop starting value
Definition at line 324 of file Iteration.hpp.
|
private |
Outer loop limit
Definition at line 322 of file Iteration.hpp.
|
private |
Outer loop starting value
Definition at line 320 of file Iteration.hpp.