Representation of a major/minor version number. More...
Public Member Functions | |
constexpr | versionNumber (int major, int minor) noexcept |
Construct from major, number. More... | |
constexpr | versionNumber (const float ver) noexcept |
Construct from floating-point version number. More... | |
versionNumber (Istream &is) | |
Construct from Istream by reading in a float. More... | |
versionNumber (const std::string &verNum) | |
Construct by parsing string "major.minor". More... | |
int | canonical () noexcept |
The canonical major/minor pair as an integer value. More... | |
int | getMajor () const noexcept |
Return the major version number. More... | |
int | getMinor () const noexcept |
Return the minor version number. More... | |
std::string | str () const |
A string representation of major.minor. More... | |
bool | operator== (const versionNumber &rhs) const noexcept |
Version number equality. More... | |
bool | operator!= (const versionNumber &rhs) const noexcept |
Version number inequality. More... | |
bool | operator< (const versionNumber &rhs) const noexcept |
Version number older than rhs. More... | |
bool | operator<= (const versionNumber &rhs) const noexcept |
Version number is the same or older than rhs. More... | |
bool | operator> (const versionNumber &rhs) const noexcept |
Version number newer than rhs. More... | |
bool | operator>= (const versionNumber &rhs) const noexcept |
Version number same or newer than rhs. More... | |
Representation of a major/minor version number.
Definition at line 79 of file IOstreamOption.H.
|
inlineconstexprnoexcept |
Construct from major, number.
Definition at line 89 of file IOstreamOption.H.
|
inlineexplicitconstexprnoexcept |
Construct from floating-point version number.
Definition at line 95 of file IOstreamOption.H.
|
inline |
Construct from Istream by reading in a float.
Non-explicit for convenience
Definition at line 102 of file IOstreamOption.H.
|
inlineexplicit |
Construct by parsing string "major.minor".
Definition at line 108 of file IOstreamOption.H.
|
inlinenoexcept |
The canonical major/minor pair as an integer value.
Definition at line 117 of file IOstreamOption.H.
|
inlinenoexcept |
Return the major version number.
Definition at line 123 of file IOstreamOption.H.
Referenced by IOstreamOption::versionNumber::str().
|
inlinenoexcept |
Return the minor version number.
Definition at line 129 of file IOstreamOption.H.
Referenced by IOstreamOption::versionNumber::str().
|
inline |
A string representation of major.minor.
Definition at line 135 of file IOstreamOption.H.
References IOstreamOption::versionNumber::getMajor(), and IOstreamOption::versionNumber::getMinor().
Referenced by decomposedBlockData::writeData().
|
inlinenoexcept |
Version number equality.
Definition at line 147 of file IOstreamOption.H.
|
inlinenoexcept |
Version number inequality.
Definition at line 153 of file IOstreamOption.H.
|
inlinenoexcept |
Version number older than rhs.
Definition at line 159 of file IOstreamOption.H.
|
inlinenoexcept |
Version number is the same or older than rhs.
Definition at line 165 of file IOstreamOption.H.
|
inlinenoexcept |
Version number newer than rhs.
Definition at line 171 of file IOstreamOption.H.
|
inlinenoexcept |
Version number same or newer than rhs.
Definition at line 177 of file IOstreamOption.H.