Apache Mesos
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
Version Struct Reference

#include <version.hpp>

Public Member Functions

 Version (uint32_t _majorVersion, uint32_t _minorVersion, uint32_t _patchVersion, const std::vector< std::string > &_prerelease={}, const std::vector< std::string > &_build={})
 
bool operator== (const Version &other) const
 
bool operator!= (const Version &other) const
 
bool operator< (const Version &other) const
 
bool operator> (const Version &other) const
 
bool operator<= (const Version &other) const
 
bool operator>= (const Version &other) const
 

Static Public Member Functions

static Try< Versionparse (const std::string &input)
 

Public Attributes

const uint32_t majorVersion
 
const uint32_t minorVersion
 
const uint32_t patchVersion
 
const std::vector< std::string > prerelease
 
const std::vector< std::string > build
 

Friends

std::ostream & operator<< (std::ostream &stream, const Version &version)
 

Constructor & Destructor Documentation

Version::Version ( uint32_t  _majorVersion,
uint32_t  _minorVersion,
uint32_t  _patchVersion,
const std::vector< std::string > &  _prerelease = {},
const std::vector< std::string > &  _build = {} 
)
inline

Member Function Documentation

bool Version::operator!= ( const Version other) const
inline
bool Version::operator< ( const Version other) const
inline
bool Version::operator<= ( const Version other) const
inline
bool Version::operator== ( const Version other) const
inline
bool Version::operator> ( const Version other) const
inline
bool Version::operator>= ( const Version other) const
inline
static Try<Version> Version::parse ( const std::string &  input)
inlinestatic

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Version version 
)
friend

Member Data Documentation

const std::vector<std::string> Version::build
const uint32_t Version::majorVersion
const uint32_t Version::minorVersion
const uint32_t Version::patchVersion
const std::vector<std::string> Version::prerelease

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