Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGCOMPOSITEUTILS_KFROMNITR_H
6 #define TRIGCOMPOSITEUTILS_KFROMNITR_H
81 #endif //> !TRIGCOMPOSITEUTILS_KFROMNITR_H
std::input_iterator_tag iterator_category
Iterator traits.
std::vector< std::size_t > value_type
KFromNItr & operator++()
Pre-increment operator.
pointer operator->() const
void reset()
Reset the iterator to its start position.
const value_type * pointer
std::size_t size() const
The size of each combination (k)
bool operator!=(const KFromNItr &other) const
bool operator==(const KFromNItr &other) const
Iterator comparison functions.
std::size_t m_N
The number of indices.
reference operator*() const
Dereference.
Iterates over all combinations of k values chosen from a range n.
bool exhausted() const
True if this iterator is past the end.
std::ptrdiff_t difference_type
std::vector< std::size_t > m_current
The current combination.
KFromNItr()=default
Default constructor creates a generic past-the-end iterator.
const value_type & reference