Represents a version number in the form major[.minor[.subminor[.build]]].
More...
#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/VersionTuple.h>
|
| VersionTuple () |
|
| VersionTuple (unsigned Major) |
|
| VersionTuple (unsigned Major, unsigned Minor) |
|
| VersionTuple (unsigned Major, unsigned Minor, unsigned Subminor) |
|
| VersionTuple (unsigned Major, unsigned Minor, unsigned Subminor, unsigned Build) |
|
bool | empty () const |
| Determine whether this version information is empty (e.g., all version components are zero). More...
|
|
unsigned | getMajor () const |
| Retrieve the major version number. More...
|
|
std::optional< unsigned > | getMinor () const |
| Retrieve the minor version number, if provided. More...
|
|
std::optional< unsigned > | getSubminor () const |
| Retrieve the subminor version number, if provided. More...
|
|
std::optional< unsigned > | getBuild () const |
| Retrieve the build version number, if provided. More...
|
|
VersionTuple | withoutBuild () const |
| Return a version tuple that contains only the first 3 version components. More...
|
|
VersionTuple | normalize () const |
| Return a version tuple that contains only components that are non-zero. More...
|
|
Represents a version number in the form major[.minor[.subminor[.build]]].
◆ VersionTuple() [1/5]
wpi::VersionTuple::VersionTuple |
( |
| ) |
|
|
inline |
◆ VersionTuple() [2/5]
wpi::VersionTuple::VersionTuple |
( |
unsigned |
Major | ) |
|
|
inlineexplicit |
◆ VersionTuple() [3/5]
wpi::VersionTuple::VersionTuple |
( |
unsigned |
Major, |
|
|
unsigned |
Minor |
|
) |
| |
|
inlineexplicit |
◆ VersionTuple() [4/5]
wpi::VersionTuple::VersionTuple |
( |
unsigned |
Major, |
|
|
unsigned |
Minor, |
|
|
unsigned |
Subminor |
|
) |
| |
|
inlineexplicit |
◆ VersionTuple() [5/5]
wpi::VersionTuple::VersionTuple |
( |
unsigned |
Major, |
|
|
unsigned |
Minor, |
|
|
unsigned |
Subminor, |
|
|
unsigned |
Build |
|
) |
| |
|
inlineexplicit |
◆ empty()
bool wpi::VersionTuple::empty |
( |
| ) |
const |
|
inline |
Determine whether this version information is empty (e.g., all version components are zero).
◆ getBuild()
std::optional< unsigned > wpi::VersionTuple::getBuild |
( |
| ) |
const |
|
inline |
Retrieve the build version number, if provided.
◆ getMajor()
unsigned wpi::VersionTuple::getMajor |
( |
| ) |
const |
|
inline |
Retrieve the major version number.
◆ getMinor()
std::optional< unsigned > wpi::VersionTuple::getMinor |
( |
| ) |
const |
|
inline |
Retrieve the minor version number, if provided.
◆ getSubminor()
std::optional< unsigned > wpi::VersionTuple::getSubminor |
( |
| ) |
const |
|
inline |
Retrieve the subminor version number, if provided.
◆ normalize()
Return a version tuple that contains only components that are non-zero.
◆ withoutBuild()
Return a version tuple that contains only the first 3 version components.
◆ operator!=
Determine if two version numbers are not equivalent.
If not provided, minor and subminor version numbers are considered to be zero.
◆ operator<
Determine whether one version number precedes another.
If not provided, minor and subminor version numbers are considered to be zero.
◆ operator<=
Determine whether one version number precedes or is equivalent to another.
If not provided, minor and subminor version numbers are considered to be zero.
◆ operator==
Determine if two version numbers are equivalent.
If not provided, minor and subminor version numbers are considered to be zero.
◆ operator>
Determine whether one version number follows another.
If not provided, minor and subminor version numbers are considered to be zero.
◆ operator>=
Determine whether one version number follows or is equivalent to another.
If not provided, minor and subminor version numbers are considered to be zero.
The documentation for this class was generated from the following file:
- /home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/VersionTuple.h