A simple data structure for representing and comparing Mitsuba version strings.
More...
#include <mitsuba/core/version.h>
A simple data structure for representing and comparing Mitsuba version strings.
Default constructor: initialize to an invalid version (0.0.0)
Version::Version |
( |
int |
major, |
|
|
int |
minor, |
|
|
int |
release |
|
) |
| |
|
inline |
Initialize with the specified version number.
Version::Version |
( |
const std::string & |
versionString | ) |
|
Parse a version string of the form "major.minor.release" and turn it into a Version structure.
int Version::getMajorVersion |
( |
| ) |
const |
|
inline |
Return the major version.
int Version::getMinorVersion |
( |
| ) |
const |
|
inline |
Return the minor version.
int Version::getRelease |
( |
| ) |
const |
|
inline |
bool Version::isCompatible |
( |
const Version & |
other | ) |
const |
|
inline |
Are the following two versions compatible?
bool Version::isValid |
( |
| ) |
|
|
inline |
Is this a valid version number?
Check if this program version is older than other
.
bool Version::operator<= |
( |
const Version & |
other | ) |
const |
|
inline |
Check if this program version is older than or equal to other
.
bool Version::operator== |
( |
const Version & |
other | ) |
const |
|
inline |
Check if two program versions match.
std::string Version::toString |
( |
| ) |
const |
Turn into a string of the form "major.minor.release".
std::string Version::toStringComplete |
( |
| ) |
const |
Turn into a string of the form "major.minor.release (Architecture)".
The documentation for this struct was generated from the following file: