#include <Region.h>
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) |
| storage::Region::Region | ( | ) | [inline] |
Referenced by intersect().
| storage::Region::Region | ( | unsigned long long | start, | |
| unsigned long long | len | |||
| ) | [inline] |
| bool storage::Region::doIntersect | ( | const Region & | r | ) | const [inline] |
References end(), and start().
Referenced by storage::Disk::freeCylindersAroundPartition(), storage::Disk::getUnusedSpace(), and intersect().
References doIntersect(), end(), Region(), s, and start().
Referenced by storage::Partition::contains(), storage::Disk::getUnusedSpace(), and storage::Partition::intersectArea().
| bool storage::Region::operator== | ( | const Region & | r | ) | const [inline] |
| bool storage::Region::operator!= | ( | const Region & | r | ) | const [inline] |
| unsigned long long storage::Region::start | ( | ) | const [inline] |
References s.
Referenced by storage::Disk::callAddpart(), storage::Disk::createChecks(), storage::Partition::cylStart(), doIntersect(), storage::Disk::getPartedSectors(), inside(), intersect(), operator<(), operator==(), and operator>().
| unsigned long long storage::Region::len | ( | ) | const [inline] |
| unsigned long long storage::Region::end | ( | ) | const [inline] |
| bool storage::Region::empty | ( | ) | const [inline] |
References l.
Referenced by storage::Disk::changePartitionArea(), and storage::Disk::createChecks().
| void storage::Region::setStart | ( | unsigned long long | start | ) | [inline] |
References s.
| void storage::Region::setLen | ( | unsigned long long | len | ) | [inline] |
References l.
Referenced by storage::Partition::forgetResize(), storage::Disk::getPartedValues(), and storage::Partition::setResizedSize().
| 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] |
unsigned long long storage::Region::s [protected] |
Referenced by end(), storage::getChildValue(), intersect(), operator<(), storage::operator<<(), operator==(), operator>(), storage::setChildValue(), setStart(), and start().
unsigned long long storage::Region::l [protected] |
Referenced by empty(), end(), storage::getChildValue(), len(), storage::operator<<(), operator==(), storage::setChildValue(), and setLen().
1.5.6