Sese Framework
2.3.0
A cross-platform framework
|
#include <Range.h>
Classes | |
class | Iterator |
Iterators. More... | |
class | ReverseIterator |
Reverse Iterator. More... | |
Public Member Functions | |
Range (TYPE count) | |
Range (TYPE begin, TYPE end) | |
Iterator | begin () |
Iterator | end () |
ReverseIterator | rbegin () |
ReverseIterator | rend () |
bool | exist (const TYPE &num) const |
Private Attributes | |
TYPE | beginNumber = 0 |
TYPE | endNumber = 0 |
|
inlineexplicit |
This constructor is only for positive and incrementing ranges
count | The size of the range |
References sese::Range< TYPE >::beginNumber, count(), and sese::Range< TYPE >::endNumber.
|
inline |
This constructor is for any range, regardless of whether it is incrementing or decrementing
begin | Start |
end | End |
References sese::Range< TYPE >::begin(), sese::Range< TYPE >::beginNumber, sese::Range< TYPE >::end(), and sese::Range< TYPE >::endNumber.
|
inline |
References sese::Range< TYPE >::beginNumber.
Referenced by sese::Range< TYPE >::Range().
|
inline |
References sese::Range< TYPE >::endNumber.
Referenced by sese::Range< TYPE >::Range().
|
inline |
Check if a value is within the range
num | The value to check |
References sese::Range< TYPE >::beginNumber, and sese::Range< TYPE >::endNumber.
|
inline |
References sese::Range< TYPE >::endNumber.
Referenced by sese::TimeWheel::TimeWheel().
|
inline |
References sese::Range< TYPE >::beginNumber.
Referenced by sese::TimeWheel::TimeWheel().
|
private |
|
private |