|
WPILibC++
2020.3.2
|
Represents a version number in the form major[.minor[.subminor[.build]]]. More...
#include <VersionTuple.h>
Public Member Functions | |
| 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). | |
| unsigned | getMajor () const |
| Retrieve the major version number. | |
| std::optional< unsigned > | getMinor () const |
| Retrieve the minor version number, if provided. | |
| std::optional< unsigned > | getSubminor () const |
| Retrieve the subminor version number, if provided. | |
| std::optional< unsigned > | getBuild () const |
| Retrieve the build version number, if provided. | |
| std::string | getAsString () const |
| Retrieve a string representation of the version number. | |
| bool | tryParse (StringRef string) |
| Try to parse the given string as a version number. More... | |
Friends | |
| bool | operator== (const VersionTuple &X, const VersionTuple &Y) |
| Determine if two version numbers are equivalent. More... | |
| bool | operator!= (const VersionTuple &X, const VersionTuple &Y) |
| Determine if two version numbers are not equivalent. More... | |
| bool | operator< (const VersionTuple &X, const VersionTuple &Y) |
| Determine whether one version number precedes another. More... | |
| bool | operator> (const VersionTuple &X, const VersionTuple &Y) |
| Determine whether one version number follows another. More... | |
| bool | operator<= (const VersionTuple &X, const VersionTuple &Y) |
| Determine whether one version number precedes or is equivalent to another. More... | |
| bool | operator>= (const VersionTuple &X, const VersionTuple &Y) |
| Determine whether one version number follows or is equivalent to another. More... | |
Represents a version number in the form major[.minor[.subminor[.build]]].
| bool wpi::VersionTuple::tryParse | ( | StringRef | string | ) |
Try to parse the given string as a version number.
true if the string does not match the regular expression [0-9]+(.[0-9]+){0,3}
|
friend |
Determine if two version numbers are not equivalent.
If not provided, minor and subminor version numbers are considered to be zero.
|
friend |
Determine whether one version number precedes another.
If not provided, minor and subminor version numbers are considered to be zero.
|
friend |
Determine whether one version number precedes or is equivalent to another.
If not provided, minor and subminor version numbers are considered to be zero.
|
friend |
Determine if two version numbers are equivalent.
If not provided, minor and subminor version numbers are considered to be zero.
|
friend |
Determine whether one version number follows another.
If not provided, minor and subminor version numbers are considered to be zero.
|
friend |
Determine whether one version number follows or is equivalent to another.
If not provided, minor and subminor version numbers are considered to be zero.