Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Version Struct Referenceexport

Semantic Version data. More...

Public Member Functions

 Version (int major, int minor, int patch, const std::string &prerelease_tag="")
 Semantic Version Constructor.
int getMajor ()
 Gets the major version number.
int getMinor ()
 Gets the minor version number.
int getPatch ()
 Gets the patch version number.
std::string getPreRelease ()
 Gets the pre-release tag.
std::string toString () const

Private Attributes

int major_
int minor_
int patch_
std::string pre_release_tag_

Detailed Description

Semantic Version data.

Constructor & Destructor Documentation

◆ Version()

Mila::Version::Version ( int major,
int minor,
int patch,
const std::string & prerelease_tag = "" )
inline

Semantic Version Constructor.

Parameters
majorMajor API version
minorMinor version for functional changes
patchPatch for bug fixes
prerelease_tagOptional pre-release text

Member Function Documentation

◆ getMajor()

int Mila::Version::getMajor ( )
inline

Gets the major version number.

Returns
Major version

◆ getMinor()

int Mila::Version::getMinor ( )
inline

Gets the minor version number.

Returns
Minor version

◆ getPatch()

int Mila::Version::getPatch ( )
inline

Gets the patch version number.

Returns
Patch version

◆ getPreRelease()

std::string Mila::Version::getPreRelease ( )
inline

Gets the pre-release tag.

Returns
Optional pre-release tag

◆ toString()

std::string Mila::Version::toString ( ) const
inline

Member Data Documentation

◆ major_

int Mila::Version::major_
private

◆ minor_

int Mila::Version::minor_
private

◆ patch_

int Mila::Version::patch_
private

◆ pre_release_tag_

std::string Mila::Version::pre_release_tag_
private

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