|
constexpr | VersionNumberString () noexcept |
| Default ctor for zero version.
|
|
| VersionNumberString (const std::string &versionString) noexcept |
| String derived version number instantiation.
|
|
| VersionNumberString (const std::string &versionString, const std::regex &versionPattern) noexcept |
| String derived version number instantiation.
|
|
| VersionNumberString (const std::string &versionString, const std::string &delim) noexcept |
| String derived version number instantiation.
|
|
| VersionNumberString (const VersionNumberString &) noexcept=default |
|
| VersionNumberString (VersionNumberString &&) noexcept=default |
|
constexpr ssize_t | endOfStringMatch () const noexcept |
| If constructed with version-string , returns the string offset after the last matching character, or 0 if none matched, or -1 if not constructed with a string.
|
|
constexpr bool | hasString () const noexcept |
| Returns true if constructed with a version-string , otherwise false.
|
|
VersionNumberString & | operator= (const VersionNumberString &) noexcept=default |
|
VersionNumberString & | operator= (VersionNumberString &&) noexcept=default |
|
std::string | toString () const noexcept |
|
constexpr const std::string & | versionString () const noexcept |
| Returns the used version-string , empty if not constructed with such.
|
|
constexpr | VersionNumber () noexcept |
| Default ctor for zero version.
|
|
constexpr | VersionNumber (const VersionNumber &) noexcept=default |
|
constexpr | VersionNumber (int majorRev, int minorRev, int subMinorRev) noexcept |
| Explicit version number instantiation, with all components defined explicitly excluding git.
|
|
constexpr | VersionNumber (int majorRev, int minorRev, int subMinorRev, int gitCommits, uint64_t gitSSHA, bool gitDirty) noexcept |
| Explicit version number instantiation, with all components defined explicitly including git.
|
|
constexpr | VersionNumber (VersionNumber &&) noexcept=default |
|
constexpr int | git_commits () const noexcept |
|
constexpr bool | git_dirty () const noexcept |
|
constexpr uint64_t | git_ssha () const noexcept |
|
constexpr bool | hasGitInfo () const noexcept |
| Returns true , if the optional git information is defined explicitly, otherwise false .
|
|
constexpr std::size_t | hash () const noexcept |
|
constexpr bool | hasMajor () const noexcept |
| Returns true , if the major component is defined explicitly, otherwise false .
|
|
constexpr bool | hasMinor () const noexcept |
| Returns true , if the optional minor component is defined explicitly, otherwise false .
|
|
constexpr bool | hasSub () const noexcept |
| Returns true , if the optional sub component is defined explicitly, otherwise false .
|
|
constexpr bool | isZero () const noexcept |
| Returns true , if all version components are zero, otherwise false .
|
|
constexpr int | major () const noexcept |
|
constexpr int | minor () const noexcept |
|
constexpr std::strong_ordering | operator<=> (const VersionNumber &vo) const noexcept |
| Three way std::strong_ordering comparison operator.
|
|
constexpr VersionNumber & | operator= (const VersionNumber &) noexcept=default |
|
constexpr VersionNumber & | operator= (VersionNumber &&) noexcept=default |
|
constexpr bool | operator== (const VersionNumber &vo) const noexcept |
| Two way comparison operator.
|
|
constexpr int | sub () const noexcept |
|
std::string | toString () const noexcept |
|
Simple version number class containing a version number either being defined explicit
or derived from a string
.
For the latter case, you can query whether a component has been defined explicitly by the given versionString
, via hasMajor()
, hasMinor()
and hasSub()
.
The state whether a component is defined explicitly is not considered in the hashCode()
, equals(Object)
or compareTo(Object)
methods, since the version number itself is treated regardless.
Definition at line 217 of file VersionNumber.hpp.