storage::Region Class Reference

#include <Region.h>

List of all members.

Public Member Functions

 Region ()
 Region (unsigned long long start, unsigned long long len)
bool doIntersect (const Region &r) const
Region intersect (const Region &r) const
bool inside (const Region &r) const
bool operator== (const Region &r) const
bool operator!= (const Region &r) const
bool operator< (const Region &r) const
bool operator> (const Region &r) const
unsigned long long start () const
unsigned long long len () const
unsigned long long end () const
bool empty () const
void setStart (unsigned long long start)
void setLen (unsigned long long len)

Protected Attributes

unsigned long long s
unsigned long long l

Friends

template<typename Type>
Region operator* (Type i, const Region &r)
template<typename Type>
Region operator/ (const Region &r, Type i)
std::ostream & operator<< (std::ostream &s, const Region &p)
bool getChildValue (const xmlNode *node, const char *name, Region &value)
void setChildValue (xmlNode *node, const char *name, const Region &value)


Constructor & Destructor Documentation

storage::Region::Region (  )  [inline]

Referenced by intersect().

storage::Region::Region ( unsigned long long  start,
unsigned long long  len 
) [inline]


Member Function Documentation

bool storage::Region::doIntersect ( const Region r  )  const [inline]

Region storage::Region::intersect ( const Region r  )  const [inline]

bool storage::Region::inside ( const Region r  )  const [inline]

References end(), and start().

bool storage::Region::operator== ( const Region r  )  const [inline]

References l, len(), s, and start().

bool storage::Region::operator!= ( const Region r  )  const [inline]

bool storage::Region::operator< ( const Region r  )  const [inline]

References s, and start().

bool storage::Region::operator> ( const Region r  )  const [inline]

References s, and start().

unsigned long long storage::Region::start (  )  const [inline]

unsigned long long storage::Region::len (  )  const [inline]

unsigned long long storage::Region::end (  )  const [inline]

bool storage::Region::empty (  )  const [inline]

void storage::Region::setStart ( unsigned long long  start  )  [inline]

References s.

void storage::Region::setLen ( unsigned long long  len  )  [inline]


Friends And Related Function Documentation

template<typename Type>
Region operator* ( Type  i,
const Region r 
) [friend]

template<typename Type>
Region operator/ ( const Region r,
Type  i 
) [friend]

std::ostream& operator<< ( std::ostream &  s,
const Region p 
) [friend]

bool getChildValue ( const xmlNode *  node,
const char *  name,
Region value 
) [friend]

void setChildValue ( xmlNode *  node,
const char *  name,
const Region value 
) [friend]


Member Data Documentation

unsigned long long storage::Region::s [protected]

unsigned long long storage::Region::l [protected]


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

Generated on Mon Feb 6 10:42:58 2012 for yast2-storage by  doxygen 1.5.6