#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. | |
| T | length |
| Length of the range. | |
This structure remembers a range.
| Celartem::Range< T >::Range | ( | const T & | _offset = 0, |
|
| const T & | _length = 0 | |||
| ) | [inline] |
Initialize a new Range instance.
| bool Celartem::Range< T >::contains | ( | const Range< T > & | r | ) | const [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. | bool Celartem::Range< T >::contains | ( | uint64_t | inPos | ) | const [inline] |
Determines whether this instance contains the point specified.
| inPos | Position of a point. |
true if this instance contains the point. | bool Celartem::Range< T >::contains | ( | uint64_t | inPos, | |
| size_t | inSize | |||
| ) | const [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. | T Celartem::Range< T >::end | ( | ) | const [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().