#include <foreach.h>
SingletonForEachIterator implements the foreach-protocol such that it iterates a single time over a single value.
T | The type of the object to iterate over. |
Public Types | |
using | ValueType = typename ConstIf< typename std::remove_reference< T >::type, !STD_IS_REPLACEMENT(reference, T)>::type |
Public Types inherited from ForEachIterator< SingletonForEachIterator< T > > | |
using | IsForEachIterator = std::true_type |
Public Member Functions | |
MAXON_ATTRIBUTE_FORCE_INLINE | SingletonForEachIterator (T &&value) |
MAXON_ATTRIBUTE_FORCE_INLINE | SingletonForEachIterator (SingletonForEachIterator &&src) |
SingletonForEachIterator (const SingletonForEachIterator &src)=default | |
MAXON_ATTRIBUTE_FORCE_INLINE | operator Bool () const |
MAXON_ATTRIBUTE_FORCE_INLINE void | operator++ () |
MAXON_ATTRIBUTE_FORCE_INLINE ValueType & | operator* () const |
MAXON_ATTRIBUTE_FORCE_INLINE ValueType * | operator-> () const |
Public Member Functions inherited from ForEachIterator< SingletonForEachIterator< T > > | |
MAXON_ATTRIBUTE_FORCE_INLINE | ForEachIterator (ARGS &&... args) |
String | ToString (const FormatStatement *formatStatement=nullptr) |
SingletonForEachIterator< T > & | Find (const T &v) |
Int | FindIndex (const T &v) |
MAXON_ATTRIBUTE_FORCE_INLINE Bool | Contains (const T &v) |
MAXON_ATTRIBUTE_FORCE_INLINE Wrapper | begin () |
Private Attributes | |
T | _value |
Bool | _valid |
Additional Inherited Members | |
Static Public Member Functions inherited from ForEachIterator< SingletonForEachIterator< T > > | |
static MAXON_ATTRIBUTE_FORCE_INLINE | PRIVATE_MAXON_RBF_SENTINEL (Wrapper) end() |
using ValueType = typename ConstIf<typename std::remove_reference<T>::type, !STD_IS_REPLACEMENT(reference, T)>::type |
|
explicit |
|
default |
|
explicit |
MAXON_ATTRIBUTE_FORCE_INLINE void operator++ | ( | ) |
MAXON_ATTRIBUTE_FORCE_INLINE ValueType& operator* | ( | ) | const |
MAXON_ATTRIBUTE_FORCE_INLINE ValueType* operator-> | ( | ) | const |
|
private |
|
private |