|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Index range. More...
#include <cc/Range>
Public Member Functions | |
| Range () | |
| Create an invalid range. | |
| Range (long i) | |
| Create an empty range starting and ending at i. | |
| Range (long i0, long i1) | |
| Create a range starting at i0 and ending at i1. | |
| bool | isValid () const |
| Check if valid. | |
| operator bool () const | |
| Check if valid. | |
| long | i0 () const |
| Begin of range. | |
| long | i1 () const |
| End of range. | |
| long | begin () const |
| Begin of range. | |
| long | end () const |
| End of range. | |
| long | count () const |
| Size of the range. | |
| long | operator[] (int k) const |
| Syntax sugar. | |
| long & | operator[] (int k) |
| Syntax sugar. | |
| bool | operator== (const Range &b) const |
| Equal to operator. | |
| bool | operator!= (const Range &b) const |
| Not equal to operator. | |
| Range | operator+ (long j) const |
| Add j to the begin and end of this range and return the result. | |
| Range & | operator+= (long j) |
| Add j to the begin and end of this range. | |
Index range.
| Range | ( | ) |
Create an invalid range.
| Range | ( | long | i | ) |
Create an empty range starting and ending at i.
| Range | ( | long | i0, |
| long | i1 ) |
Create a range starting at i0 and ending at i1.
| bool isValid | ( | ) | const |
Check if valid.
|
explicit |
Check if valid.
| long i0 | ( | ) | const |
Begin of range.
| long i1 | ( | ) | const |
End of range.
| long begin | ( | ) | const |
Begin of range.
| long end | ( | ) | const |
End of range.
| long count | ( | ) | const |
Size of the range.
| long operator[] | ( | int | k | ) | const |
Syntax sugar.
| long & operator[] | ( | int | k | ) |
Syntax sugar.
| bool operator== | ( | const Range & | b | ) | const |
Equal to operator.
| bool operator!= | ( | const Range & | b | ) | const |
Not equal to operator.
| Range operator+ | ( | long | j | ) | const |
Add j to the begin and end of this range and return the result.
| Range & operator+= | ( | long | j | ) |
Add j to the begin and end of this range.