24 operator uint32_t()
const {
25 return (
static_cast<uint32_t
>(
major) << 16) |
static_cast<uint32_t
>(
minor);
29 return static_cast<uint32_t
>(*this) >=
static_cast<uint32_t
>(other);
33 return static_cast<uint32_t
>(*this) <=
static_cast<uint32_t
>(other);
37 return static_cast<uint32_t
>(*this) >
static_cast<uint32_t
>(other);
41 return static_cast<uint32_t
>(*this) <
static_cast<uint32_t
>(other);
45 return static_cast<uint32_t
>(*this) ==
static_cast<uint32_t
>(other);
49 return static_cast<uint32_t
>(*this) !=
static_cast<uint32_t
>(other);
53 return std::to_string(
major) +
"." + std::to_string(
minor);
56 operator std::string()
const {
Represents a Bash version to target for code generation.
Definition BashVersion.h:20
uint16_t minor
Definition BashVersion.h:22
uint16_t major
Definition BashVersion.h:21
bool operator<=(const BashVersion &other) const
Definition BashVersion.h:32
bool operator>=(const BashVersion &other) const
Definition BashVersion.h:28
bool operator>(const BashVersion &other) const
Definition BashVersion.h:36
bool operator!=(const BashVersion &other) const
Definition BashVersion.h:48
std::string to_string() const
Definition BashVersion.h:52
bool operator<(const BashVersion &other) const
Definition BashVersion.h:40
bool operator==(const BashVersion &other) const
Definition BashVersion.h:44