MySQL 9.1.0
Source Code Documentation
|
Class representing a version. More...
#include <designator.h>
Public Member Functions | |
Version (int x, int y, int z=0) | |
Version () | |
Version (unsigned long ver) | |
std::string | str () const |
Public Attributes | |
long | ver_major |
long | ver_minor |
long | ver_patch |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Version &ver) |
bool | operator< (const Version &lhs, const Version &rhs) |
bool | operator== (const Version &lhs, const Version &rhs) |
bool | operator!= (const Version &lhs, const Version &rhs) |
bool | operator<= (const Version &lhs, const Version &rhs) |
bool | operator> (const Version &lhs, const Version &rhs) |
bool | operator>= (const Version &lhs, const Version &rhs) |
Class representing a version.
Versions consist of a three-position dotted pair MAJOR.MINOR.PATCH
where MAJOR is the major version number, MINOR is the minor version number, and PATCH is the patch number. Version comparison is done lexicographically in the normal manner so that 1.1.5 < 1.2.1 < 1.2.3.
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
friend |
long Version::ver_major |
long Version::ver_minor |
long Version::ver_patch |