v_1_0_0::Checksums class final
#include <calculate.hpp>
The result of a Calculation, an iterable list of ChecksumSets.
Constructors, destructors, conversion operators
- Checksums(Checksums&& rhs) noexcept
- Move constructor.
- Checksums(const Checksums& rhs)
- Copy constructor.
- Checksums(size_type size) explicit
- Constructor.
- Checksums(std::initializer_list<ChecksumSet> tracks)
- Constructor.
- ~Checksums() noexcept
- Default destructor.
Public functions
- void append(const ChecksumSet& checksums)
- Append a track's checksums.
- auto at(const size_type index) const -> const ChecksumSet&
- The ChecksumSet with the specified 0-based index
index. -
auto begin() const -> const_
iterator noexcept - Obtain a const_iterator pointing to first ChecksumSet.
- auto begin() -> iterator noexcept
- Obtain a pointer to the first ChecksumSet.
-
auto cbegin() const -> const_
iterator noexcept - Obtain a const_iterator pointing to first ChecksumSet.
-
auto cend() const -> const_
iterator noexcept - Obtain a const_iterator pointing behind last ChecksumSet.
-
auto end() const -> const_
iterator noexcept - Obtain a const_iterator pointing behind last ChecksumSet.
- auto end() -> iterator noexcept
- Obtain a pointer pointing behind the last ChecksumSet.
- auto operator[](const size_type index) const -> const ChecksumSet&
- The ChecksumSet with the specified
index. - auto size() const -> size_type noexcept
- Return the total number of elements.
Function documentation
arcstk:: v_1_0_0:: Checksums:: Checksums(size_type size) explicit
Constructor.
| Parameters | |
|---|---|
| size in | Number of elements |
arcstk:: v_1_0_0:: Checksums:: Checksums(std::initializer_list<ChecksumSet> tracks)
Constructor.
| Parameters | |
|---|---|
| tracks in | Sequence of track checksums |
This constructor is intended for testing purposes only.
void arcstk:: v_1_0_0:: Checksums:: append(const ChecksumSet& checksums)
Append a track's checksums.
| Parameters | |
|---|---|
| checksums in | The checksums of a track |
const ChecksumSet& arcstk:: v_1_0_0:: Checksums:: at(const size_type index) const
The ChecksumSet with the specified 0-based index index.
| Parameters | |
|---|---|
| index in | Index of the ChecksumSet to read |
| Returns | ChecksumSet at index index. |
| Exceptions | |
| std::out_of_range | Iff index >= Checksums:: |
Bounds checking is performed. If index is illegal, an exception is thrown.
const_ iterator arcstk:: v_1_0_0:: Checksums:: begin() const noexcept
Obtain a const_iterator pointing to first ChecksumSet.
| Returns | const_iterator pointing to first ChecksumSet |
|---|
iterator arcstk:: v_1_0_0:: Checksums:: begin() noexcept
Obtain a pointer to the first ChecksumSet.
| Returns | Pointer to the first ChecksumSet |
|---|
const_ iterator arcstk:: v_1_0_0:: Checksums:: cbegin() const noexcept
Obtain a const_iterator pointing to first ChecksumSet.
| Returns | const_iterator pointing to first ChecksumSet |
|---|
const_ iterator arcstk:: v_1_0_0:: Checksums:: cend() const noexcept
Obtain a const_iterator pointing behind last ChecksumSet.
| Returns | const_iterator pointing behind last ChecksumSet |
|---|
const_ iterator arcstk:: v_1_0_0:: Checksums:: end() const noexcept
Obtain a const_iterator pointing behind last ChecksumSet.
| Returns | const_iterator pointing behind last ChecksumSet |
|---|
iterator arcstk:: v_1_0_0:: Checksums:: end() noexcept
Obtain a pointer pointing behind the last ChecksumSet.
| Returns | Pointer pointing behind the last ChecksumSet |
|---|
const ChecksumSet& arcstk:: v_1_0_0:: Checksums:: operator[](const size_type index) const
The ChecksumSet with the specified index.
| Parameters | |
|---|---|
| index in | The 0-based index of the ChecksumSet to return |
| Returns | ChecksumSet at the specified index |
No bounds checking is performed. For index based access with bounds checking, see at().
size_type arcstk:: v_1_0_0:: Checksums:: size() const noexcept
Return the total number of elements.
| Returns | Total number of elements |
|---|