Skip to content

shz::version

Markdown

Class representing a full SH4ZAM API version.

  • Header: #include <sh4zam/shz_version.hpp> (source)
static constexpr version compiled() noexcept

Compile-time version of SH4ZAM headers which are being included.

static version linked() noexcept

Link-time version of SH4ZAM library which was linked against.

Calls: shz_version_linked()

shz_version_t value_

Private packed value member.

version(shz_version_t value) noexcept
version(uint8_t major, uint16_t minor, uint8_t patch) noexcept

Constructs a version from the given full value.

operator shz_version_t() const noexcept

Implicit conversion operator to make this class automatically comparable to a uint32_t.

version operator=(uint32_t rhs) noexcept

Assignment operator for assigning a version to a full version ID value.

uint8_t major() const noexcept

Extracts the major component value from a full version.

uint16_t minor() const noexcept

Extracts the minor component value from a full version.

uint8_t patch() const noexcept

Extracts the patch component value from a full version.