#include <version.h>
|
constexpr | Version (size_t p_major=0, size_t p_minor=0, size_t p_patch=0) |
|
constexpr bool | IsAtLeast (const Version &other) const |
|
std::string | ToString () const |
|
Definition at line 16 of file version.h.
◆ Version()
constexpr impeller::Version::Version |
( |
size_t |
p_major = 0 , |
|
|
size_t |
p_minor = 0 , |
|
|
size_t |
p_patch = 0 |
|
) |
| |
|
inlineexplicitconstexpr |
◆ FromVector()
std::optional< Version > impeller::Version::FromVector |
( |
const std::vector< size_t > & |
version | ) |
|
|
static |
Definition at line 11 of file version.cc.
12 if (version.size() == 0) {
15 if (version.size() == 1) {
16 return Version{version[0], 0, 0};
18 if (version.size() == 2) {
19 return Version{version[0], version[1], 0};
21 if (version.size() == 3) {
22 return Version{version[0], version[1], version[2]};
Referenced by impeller::DetermineVersion().
◆ IsAtLeast()
constexpr bool impeller::Version::IsAtLeast |
( |
const Version & |
other | ) |
const |
|
inlineconstexpr |
◆ ToString()
std::string impeller::Version::ToString |
( |
| ) |
const |
◆ major_version
size_t impeller::Version::major_version |
◆ minor_version
size_t impeller::Version::minor_version |
◆ patch_version
size_t impeller::Version::patch_version |
The documentation for this struct was generated from the following files: