CortidQCT
1.2.2.52
|
Type representing a discrete closed, stridable range. More...
#include <DiscreteRange.h>
Public Types | |
using | value_type = T |
type of the elements contained in the range | |
Public Member Functions | |
constexpr | DiscreteRange (value_type min_, value_type max_, value_type stride_) noexcept |
Constructs a discrete range. | |
constexpr | DiscreteRange (value_type min_, value_type max_) noexcept |
constexpr std::size_t | numElements () const noexcept |
Returns the number of elements in the range. | |
constexpr value_type | nThElement (std::size_t n) const noexcept |
Public Attributes | |
value_type | min |
minimum element | |
value_type | max |
maximum element | |
value_type | stride |
stride, i.e. distance between two consecutive elements | |
Type representing a discrete closed, stridable range.
T | Underlying value type of the range |
|
inlinenoexcept |
Constructs a discreate range with an default stride of 1
|
inlinenoexcept |
Returns the n-th element
n | n-th element marker (starts at 1) |