25 operator uint32_t()
const {
26 return (
static_cast<uint32_t
>(
major) << 16) |
static_cast<uint32_t
>(
minor);
30 return static_cast<uint32_t
>(*this) >=
static_cast<uint32_t
>(other);
34 return static_cast<uint32_t
>(*this) <=
static_cast<uint32_t
>(other);
38 return static_cast<uint32_t
>(*this) >
static_cast<uint32_t
>(other);
42 return static_cast<uint32_t
>(*this) <
static_cast<uint32_t
>(other);
46 return static_cast<uint32_t
>(*this) ==
static_cast<uint32_t
>(other);
50 return static_cast<uint32_t
>(*this) !=
static_cast<uint32_t
>(other);
54 return std::to_string(
major) +
"." + std::to_string(
minor);
57 operator std::string()
const {
Represents a Bash version to target for code generation.
Definition BashVersion.h:21
uint16_t minor
Definition BashVersion.h:23
uint16_t major
Definition BashVersion.h:22
bool operator<=(const BashVersion &other) const
Definition BashVersion.h:33
bool operator>=(const BashVersion &other) const
Definition BashVersion.h:29
bool operator>(const BashVersion &other) const
Definition BashVersion.h:37
bool operator!=(const BashVersion &other) const
Definition BashVersion.h:49
std::string to_string() const
Definition BashVersion.h:53
bool operator<(const BashVersion &other) const
Definition BashVersion.h:41
bool operator==(const BashVersion &other) const
Definition BashVersion.h:45