Location of a data chunk (offset + length).
Definition at line 146 of file utility.h.
#include <utility.h>
◆ Location() [1/2]
humoto::Location::Location |
( |
| ) |
|
|
inline |
◆ Location() [2/2]
humoto::Location::Location |
( |
const std::size_t |
offset, |
|
|
const std::size_t |
length |
|
) |
| |
|
inline |
Construct location with given parameters.
- Parameters
-
[in] | offset | offset |
[in] | length | length |
Definition at line 168 of file utility.h.
◆ checkLength()
bool humoto::Location::checkLength |
( |
const std::size_t |
max_length | ) |
const |
|
inline |
Check length of location.
- Parameters
-
[in] | max_length | maximal length |
- Returns
- true if location is valid
Definition at line 208 of file utility.h.
◆ end()
std::size_t humoto::Location::end |
( |
| ) |
const |
|
inline |
Offset of the element following the last element.
- Returns
- offset of the element following the last element (offset_ + length_)
Definition at line 231 of file utility.h.
◆ front()
std::size_t humoto::Location::front |
( |
| ) |
const |
|
inline |
Offset of the first element.
- Returns
- offset of the first element (offset_)
Definition at line 220 of file utility.h.
◆ log()
Log hierarchy as a set of tasks.
- Parameters
-
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Definition at line 257 of file utility.h.
◆ operator!=()
bool humoto::Location::operator!= |
( |
const Location & |
another_location | ) |
const |
|
inline |
Compare two locations.
- Parameters
-
[in] | another_location | some other location |
- Returns
- true/false
Definition at line 195 of file utility.h.
◆ operator==()
bool humoto::Location::operator== |
( |
const Location & |
another_location | ) |
const |
|
inline |
Compare two locations.
- Parameters
-
[in] | another_location | some other location |
- Returns
- true/false
Definition at line 181 of file utility.h.
◆ set()
void humoto::Location::set |
( |
const std::size_t |
offset, |
|
|
const std::size_t |
length |
|
) |
| |
|
inline |
Set location.
- Parameters
-
[in] | offset | offset |
[in] | length | length |
Definition at line 243 of file utility.h.
◆ length_
std::size_t humoto::Location::length_ |
◆ offset_
std::size_t humoto::Location::offset_ |
The documentation for this class was generated from the following file: