Version number.
More...
#include <parse_version_string.hpp>
|
| bool | eq (int maj, int min, int pat) const |
| |
| bool | ne (int maj, int min, int pat) const |
| |
| bool | le (int maj, int min, int pat) const |
| |
| bool | lt (int maj, int min, int pat) const |
| |
| bool | ge (int maj, int min, int pat) const |
| |
| bool | gt (int maj, int min, int pat) const |
| |
| bool | operator== (const Version &rhs) const |
| |
| bool | operator!= (const Version &rhs) const |
| |
| bool | operator< (const Version &rhs) const |
| |
| bool | operator<= (const Version &rhs) const |
| |
| bool | operator> (const Version &rhs) const |
| |
| bool | operator>= (const Version &rhs) const |
| |
Version number.
This is typically generated from parse_version_string().
◆ eq()
| bool ritsuko::Version::eq |
( |
int | maj, |
|
|
int | min, |
|
|
int | pat ) const |
|
inline |
- Parameters
-
| maj | Major version number. |
| min | Minor version number. |
| pat | Patch number. |
- Returns
- Whether the version is equal to
<maj>.<min>.<pat>.
◆ ge()
| bool ritsuko::Version::ge |
( |
int | maj, |
|
|
int | min, |
|
|
int | pat ) const |
|
inline |
- Parameters
-
| maj | Major version number. |
| min | Minor version number. |
| pat | Patch number. |
- Returns
- Whether the version is greater than or equal to
<maj>.<min>.<pat>.
◆ gt()
| bool ritsuko::Version::gt |
( |
int | maj, |
|
|
int | min, |
|
|
int | pat ) const |
|
inline |
- Parameters
-
| maj | Major version number. |
| min | Minor version number. |
| pat | Patch number. |
- Returns
- Whether the version is greater than
<maj>.<min>.<pat>.
◆ le()
| bool ritsuko::Version::le |
( |
int | maj, |
|
|
int | min, |
|
|
int | pat ) const |
|
inline |
- Parameters
-
| maj | Major version number. |
| min | Minor version number. |
| pat | Patch number. |
- Returns
- Whether the version is less than or equal to
<maj>.<min>.<pat>.
◆ lt()
| bool ritsuko::Version::lt |
( |
int | maj, |
|
|
int | min, |
|
|
int | pat ) const |
|
inline |
- Parameters
-
| maj | Major version number. |
| min | Minor version number. |
| pat | Patch number. |
- Returns
- Whether the version is less than
<maj>.<min>.
◆ ne()
| bool ritsuko::Version::ne |
( |
int | maj, |
|
|
int | min, |
|
|
int | pat ) const |
|
inline |
- Parameters
-
| maj | Major version number. |
| min | Minor version number. |
| pat | Patch number. |
- Returns
- Whether the version is not equal to
<maj>.<min>.<pat>.
◆ operator!=()
| bool ritsuko::Version::operator!= |
( |
const Version & | rhs | ) |
const |
|
inline |
- Parameters
-
- Returns
- Whether this version is equal to
rhs.
◆ operator<()
| bool ritsuko::Version::operator< |
( |
const Version & | rhs | ) |
const |
|
inline |
- Parameters
-
- Returns
- Whether this version is less than
rhs.
◆ operator<=()
| bool ritsuko::Version::operator<= |
( |
const Version & | rhs | ) |
const |
|
inline |
- Parameters
-
- Returns
- Whether this version is less than or equal to
rhs.
◆ operator==()
| bool ritsuko::Version::operator== |
( |
const Version & | rhs | ) |
const |
|
inline |
- Parameters
-
- Returns
- Whether this version is equal to
rhs.
◆ operator>()
| bool ritsuko::Version::operator> |
( |
const Version & | rhs | ) |
const |
|
inline |
- Parameters
-
- Returns
- Whether this version is greater than
rhs.
◆ operator>=()
| bool ritsuko::Version::operator>= |
( |
const Version & | rhs | ) |
const |
|
inline |
- Parameters
-
- Returns
- Whether this version is greater than or equal to
rhs.
◆ major
| int ritsuko::Version::major = 0 |
◆ minor
| int ritsuko::Version::minor = 0 |
◆ patch
| int ritsuko::Version::patch = 0 |
The documentation for this struct was generated from the following file: