Implementation of std::iterator_traits
for enum records. Begin- and end-iterators can be received with static methods EnumRecords::begin and EnumRecords::end . In ranged base for(:)
loops, a local instance of type EnumRecords has to be created.
As the name of the class indicates, this iterator satisfies the C++ standard library concept ForwardIterator .
Definition at line 312 of file records.hpp.
#include <records.hpp>
Public Method Index: | |
TEnum | Enum () const |
TIntegral | Integral () const |
bool | operator!= (ForwardIterator other) const |
const TRecord & | operator* () const |
ForwardIterator & | operator++ () |
ForwardIterator | operator++ (int) |
TRecord const * | operator-> () const |
bool | operator== (ForwardIterator other) const |
|
private |
Implementation of std::iterator_traits
.
Definition at line 334 of file records.hpp.
|
private |
Implementation of std::iterator_traits
.
Definition at line 332 of file records.hpp.
|
private |
Shortcut to the record hook's inner node type (linked list).
Definition at line 321 of file records.hpp.
Implementation of std::iterator_traits
.
Definition at line 335 of file records.hpp.
Implementation of std::iterator_traits
.
Definition at line 336 of file records.hpp.
|
private |
Implementation of std::iterator_traits
.
Definition at line 333 of file records.hpp.
|
private |
The current node this iterator refers to.
Definition at line 324 of file records.hpp.
|
inlineprivatenoexcept |
Constructor.
start | Pointer to the initial element. |
Definition at line 328 of file records.hpp.
|
inline |
Returns the enum element of the enum record that this iterator refers to.
Definition at line 378 of file records.hpp.
|
inline |
Returns the underlying integral value of the enum element of the enum record that this iterator refers to.
Definition at line 387 of file records.hpp.
|
inline |
Comparison operator.
other | The iterator to compare ourselves to. |
true
if this and given iterator are not equal, false
otherwise. Definition at line 369 of file records.hpp.
|
inline |
Returns a constant reference to the enum record this iterator refers to.
Definition at line 394 of file records.hpp.
|
inline |
Prefix increment operator.
Definition at line 344 of file records.hpp.
|
inline |
Postfix increment operator.
Definition at line 352 of file records.hpp.
|
inline |
Returns a constant pointer to the enum record this iterator refers to.
Definition at line 401 of file records.hpp.
|
inline |
Comparison operator.
other | The iterator to compare ourselves to. |
true
if this and the given iterator are pointing to the same element, false
otherwise. Definition at line 361 of file records.hpp.