Disk ARchive
2.7.15
Full featured and portable backup and archiving tool
|
stores a range of integers or a set of ranges More...
#include <range.hpp>
Public Member Functions | |
range (const infinint &low, const infinint &high) | |
range (const range &ref)=default | |
range (range &&ref) noexcept=default | |
range & | operator= (const range &ref)=default |
range & | operator= (range &&ref) noexcept=default |
void | operator+= (const range &ref) |
range | operator+ (const range &ref) const |
std::string | display () const |
void | reset_read () const |
provides a way to read range contents segment by segment More... | |
bool | read_next_segment (infinint &low, infinint &high) const |
read the next available segment More... | |
void | clear () |
Private Attributes | |
std::list< segment > | parts |
std::list< segment >::const_iterator | read_cursor |
read the next available segment
[out] | low | when read_next_segment() returns true, contains the low value of the next segment |
[out] | high | when read_next_segment() returns true, contains the high value of the next segment |
|
inline |
provides a way to read range contents segment by segment