class final
#include <checksum.hpp>
v_1_0_0::Checksum An AccurateRip checksum for a single file or track.
A Checksum has a value_
A Checksum can be represented by its numeric value() which is of type value_
A Checksum has a converting constructor for its value_
Operator << is overloaded for printing Checksums to streams. The Checksum will then occurr in its standard layout: as a hexadecimal number without the base '0x', all digits in upper case, and filled with leading zeros up to a width of 8 digits.
As a technical convenience, a Checksum may be empty() which means: it carries no value. Calling value() on an empty() Checksum may lead any result. Two empty Checksum instances qualify as equal when compared using operator ==.
Public types
- using value_type = uint32_t
- Numerical base type of checksums: a 32-bit wide unsigned integer.
Constructors, destructors, conversion operators
- Checksum()
- Constructor.
-
Checksum(const value_
type value) - Converting constructor.
Public functions
- auto empty() const -> bool noexcept
- Return
TRUE
iff this Checksum is empty, otherwiseFALSE
. -
auto value() const -> value_
type noexcept - Numeric value of the checksum.
Function documentation
arcstk:: v_1_0_0:: Checksum:: Checksum(const value_ type value)
Converting constructor.
Parameters | |
---|---|
value in | Actual checksum value |
value_ type arcstk:: v_1_0_0:: Checksum:: value() const noexcept
Numeric value of the checksum.
Returns | Numeric value of the checksum |
---|