| 
    Volume Cartographer 2.28.0
    
   | 
 
Provides an iterable range of numbers with optional step size. More...
#include <vc/core/util/Iteration.hpp>
Classes | |
| class | CountingIterator | 
Public Types | |
| using | iterator = CountingIterator< T > | 
| using | const_iterator = CountingIterator< T const & > | 
Public Member Functions | |
| RangeIterable (T start, T end, 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 | start_ {0} | 
| T | end_ {0} | 
| T | step_ {1} | 
Provides an iterable range of numbers with optional step size.
Convenience class for generating range-based for loops over numerical values. Note that this class only returns values and const references.
| T | Integral or floating-point type | 
Definition at line 24 of file Iteration.hpp.
| using volcart::RangeIterable< T, >::const_iterator = CountingIterator<T const&> | 
Const iterator type
Definition at line 83 of file Iteration.hpp.
| using volcart::RangeIterable< T, >::iterator = CountingIterator<T> | 
Iterator type
Definition at line 81 of file Iteration.hpp.
      
  | 
  inline | 
Construct a new range
Definition at line 86 of file Iteration.hpp.
      
  | 
  inline | 
Return the start of the range
Definition at line 95 of file Iteration.hpp.
      
  | 
  inline | 
Return the const start of the range
Definition at line 99 of file Iteration.hpp.
      
  | 
  inline | 
Return the const end of the range
Definition at line 104 of file Iteration.hpp.
      
  | 
  inline | 
Return the end of the range
Definition at line 97 of file Iteration.hpp.
      
  | 
  inline | 
Returns the size of the range (floating point ranges)
Definition at line 108 of file Iteration.hpp.
      
  | 
  inline | 
Returns the size of the range (integral ranges)
Definition at line 115 of file Iteration.hpp.
      
  | 
  private | 
Definition at line 122 of file Iteration.hpp.
      
  | 
  private | 
Definition at line 121 of file Iteration.hpp.
      
  | 
  private | 
Definition at line 123 of file Iteration.hpp.