|
| Region (unsigned long long start, unsigned long long length, unsigned int block_size) |
| Region (unsigned long long start, unsigned long long length, unsigned long long block_size, ull_hack_t) |
| Region (const Region ®ion) |
| Region (Region &®ion)=default |
Region & | operator= (const Region ®ion) |
Region & | operator= (Region &®ion)=default |
bool | empty () const |
unsigned long long | get_start () const |
| Returns the start of the region.
|
unsigned long long | get_length () const |
| Returns the length of the region.
|
unsigned long long | get_end () const |
| Returns the end of the region.
|
void | set_start (unsigned long long start) |
| Sets the start while keeping the length.
|
void | set_length (unsigned long long length) |
| Sets the length while keeping the start.
|
void | adjust_start (long long delta) |
| Adjusts the start while keeping the length.
|
void | adjust_length (long long delta) |
| Adjusts the length while keeping the start.
|
unsigned int | get_block_size () const |
unsigned long long | get_block_size (ull_hack_t) const |
void | set_block_size (unsigned int block_size) |
void | set_block_size (unsigned long long block_size, ull_hack_t) |
unsigned long long | to_bytes (unsigned long long blocks) const |
unsigned long long | to_blocks (unsigned long long bytes) const |
bool | operator== (const Region &rhs) const |
| Compare start and length of two regions.
|
bool | operator!= (const Region &rhs) const |
| Compare start and length of two regions.
|
bool | operator< (const Region &rhs) const |
| Compare start of two regions.
|
bool | operator> (const Region &rhs) const |
| Compare start of two regions.
|
bool | operator<= (const Region &rhs) const |
| Compare start of two regions.
|
bool | operator>= (const Region &rhs) const |
| Compare start of two regions.
|
bool | inside (const Region &rhs) const |
| Check whether the region is contained inside other.
|
bool | intersect (const Region &rhs) const |
| Check whether the region intersects with other.
|
Region | intersection (const Region &rhs) const |
std::vector< Region > | unused_regions (const std::vector< Region > &used_regions) const |
| Returns all regions not included in used_regions.
|
Impl & | get_impl () |
const Impl & | get_impl () const |
A start/length pair with a block size.
The equation end = start + length - 1 holds.
Comparing Regions with different block_sizes will throw an exception.