|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Software version tuple. More...
#include <cc/Version>
Public Member Functions | |
| Version () | |
| Create an invalid version. | |
| Version (int major, int minor, int patch=0) | |
| Create new version. | |
| Version (const char *s) | |
| Parse version s. | |
| Version (const String &s) | |
| Parse version s. | |
| Version (std::uint32_t x) | |
| Read version encoded as 32-bit word x. | |
| std::uint32_t | toWord () const |
| Convert to word value. | |
| operator std::uint32_t () const | |
| Convert to word value. | |
| bool | isValid () const |
| Check if this version is valid. | |
| operator bool () const | |
| Check if this version is valid. | |
| int | major () const |
| Major version number (0..255) | |
| int | minor () const |
| Minor version number (0..255) | |
| int | patch () const |
| Patch version number (0..65535) | |
| String | toString () const |
| Convert to string. | |
| bool | operator== (const Version &other) const |
| Equal to operator. | |
| std::strong_ordering | operator<=> (const Version &other) const |
| Ordering operator. | |
Software version tuple.
| Version | ( | ) |
Create an invalid version.
| Version | ( | int | major, |
| int | minor, | ||
| int | patch = 0 ) |
Create new version.
| major | Major version number (0..255) |
| minor | Minor version number (0..255) |
| patch | Patch version number (0..65535) |
| Version | ( | const char * | s | ) |
Parse version s.
|
explicit |
Read version encoded as 32-bit word x.
| std::uint32_t toWord | ( | ) | const |
Convert to word value.
| operator std::uint32_t | ( | ) | const |
Convert to word value.
| bool isValid | ( | ) | const |
Check if this version is valid.
|
explicit |
Check if this version is valid.
| int major | ( | ) | const |
Major version number (0..255)
| int minor | ( | ) | const |
Minor version number (0..255)
| int patch | ( | ) | const |
Patch version number (0..65535)
| String toString | ( | ) | const |
Convert to string.
| bool operator== | ( | const Version & | other | ) | const |
Equal to operator.
| std::strong_ordering operator<=> | ( | const Version & | other | ) | const |
Ordering operator.