Public Member Functions | Public Attributes

Celartem::Range< T > Struct Template Reference

#include <cel_storagecache.h>

List of all members.

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.
length
 Length of the range.

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:
r Another Range instance.
Returns:
true if this instance contains the range of r.
template<typename T>
bool Celartem::Range< T >::contains ( uint64_t  inPos  )  const [inline]

Determines whether this instance contains the point specified.

Parameters:
inPos Position of a point.
Returns:
true if this instance contains the point.
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:
inPos The beginning position of a range.
inSize The size of the range.
Returns:
true if this instance contains the range.
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:

This document is made with doxygen 1.7.1 at Sat Mar 31 2012 04:35:57.
Caminova Logo