Public Member Functions | Public Attributes | List of all members
Celartem::Range< T > Struct Template Reference

#include <cel_storagecache.h>

Public Member Functions

 Range (const T &_offset=0, const T &_length=0)
 
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

offset
 Offset. More...
 
length
 Length of the range. More...
 

Detailed Description

template<typename T>
struct Celartem::Range< T >

This structure remembers a range.

Constructor & Destructor Documentation

template<typename T>
Celartem::Range< T >::Range ( const T &  _offset = 0,
const T &  _length = 0 
)
inline

Initialize a new Range instance.

Member Function Documentation

template<typename T>
bool Celartem::Range< T >::contains ( const Range< T > &  r) const
inline

Determines whether this instance contains the range of r or not.

Parameters
rAnother Range instance.
Returns
true if this instance contains the range of r.
template<typename T>
bool Celartem::Range< T >::contains ( uint64_t  inPos,
size_t  inSize 
) const
inline

Determines whether this instance contains the range specified.

Parameters
inPosThe beginning position of a range.
inSizeThe size of the range.
Returns
true if this instance contains the range.
template<typename T>
bool Celartem::Range< T >::contains ( uint64_t  inPos) const
inline

Determines whether this instance contains the point specified.

Parameters
inPosPosition of a point.
Returns
true if this instance contains the point.
template<typename T>
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.

Returns
The end.

Referenced by Celartem::Range< T >::contains().

Member Data Documentation

template<typename T>
T Celartem::Range< T >::length

Length of the range.

Referenced by Celartem::Range< T >::end().

template<typename T>
T Celartem::Range< T >::offset

The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo