#include <cel_storagecache.h>
Public Member Functions | |
| Range (const T &_offset=0, const T &_length=0) | |
| T | end () const |
| bool | contains (const Range< T > &r) const |
| bool | contains (uint64_t inPos, size_t inSize) const |
| bool | contains (uint64_t inPos) const |
Public Attributes | |
| T | offset |
| Offset. More... | |
| T | length |
| Length of the range. More... | |
This structure remembers a range.
|
inline |
Initialize a new Range instance.
|
inline |
Determines whether this instance contains the range of r or not.
| r | Another Range instance. |
true if this instance contains the range of r.
|
inline |
Determines whether this instance contains the range specified.
| inPos | The beginning position of a range. |
| inSize | The size of the range. |
true if this instance contains the range.
|
inline |
Determines whether this instance contains the point specified.
| inPos | Position of a point. |
true if this instance contains the point.
|
inline |
Get the end of the range.
Please note that the 'end' is the position which is right to the range; it is not contained in the range.
Referenced by Celartem::Range< T >::contains().
| T Celartem::Range< T >::length |
Length of the range.
Referenced by Celartem::Range< T >::end().
| T Celartem::Range< T >::offset |
Offset.
Referenced by Celartem::Range< T >::contains(), and Celartem::Range< T >::end().