ritsuko
Helper utilities for ArtifactDB C++ code
Loading...
Searching...
No Matches
ritsuko::Version Struct Reference

Version number. More...

#include <parse_version_string.hpp>

Public Member Functions

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
 

Public Attributes

int major = 0
 
int minor = 0
 
int patch = 0
 

Detailed Description

Version number.

This is typically generated from parse_version_string().

Member Function Documentation

◆ eq()

bool ritsuko::Version::eq ( int maj,
int min,
int pat ) const
inline
Parameters
majMajor version number.
minMinor version number.
patPatch 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
majMajor version number.
minMinor version number.
patPatch 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
majMajor version number.
minMinor version number.
patPatch 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
majMajor version number.
minMinor version number.
patPatch 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
majMajor version number.
minMinor version number.
patPatch number.
Returns
Whether the version is less than <maj>.<min>.

◆ ne()

bool ritsuko::Version::ne ( int maj,
int min,
int pat ) const
inline
Parameters
majMajor version number.
minMinor version number.
patPatch number.
Returns
Whether the version is not equal to <maj>.<min>.<pat>.

◆ operator!=()

bool ritsuko::Version::operator!= ( const Version & rhs) const
inline
Parameters
rhsA Version object.
Returns
Whether this version is equal to rhs.

◆ operator<()

bool ritsuko::Version::operator< ( const Version & rhs) const
inline
Parameters
rhsA Version object.
Returns
Whether this version is less than rhs.

◆ operator<=()

bool ritsuko::Version::operator<= ( const Version & rhs) const
inline
Parameters
rhsA Version object.
Returns
Whether this version is less than or equal to rhs.

◆ operator==()

bool ritsuko::Version::operator== ( const Version & rhs) const
inline
Parameters
rhsA Version object.
Returns
Whether this version is equal to rhs.

◆ operator>()

bool ritsuko::Version::operator> ( const Version & rhs) const
inline
Parameters
rhsA Version object.
Returns
Whether this version is greater than rhs.

◆ operator>=()

bool ritsuko::Version::operator>= ( const Version & rhs) const
inline
Parameters
rhsA Version object.
Returns
Whether this version is greater than or equal to rhs.

Member Data Documentation

◆ major

int ritsuko::Version::major = 0

Major version number.

◆ minor

int ritsuko::Version::minor = 0

Minor version number.

◆ patch

int ritsuko::Version::patch = 0

Patch version number.


The documentation for this struct was generated from the following file: