Arbiter
Dependency manager library that supports decentralization
|
Represents a semantic version, as defined by semver.org. More...
Public Member Functions | |
ArbiterSemanticVersion (unsigned major, unsigned minor, unsigned patch, Arbiter::Optional< std::string > prereleaseVersion=Arbiter::Optional< std::string >(), Arbiter::Optional< std::string > buildMetadata=Arbiter::Optional< std::string >()) | |
std::unique_ptr< Arbiter::Base > | clone () const override |
std::ostream & | describe (std::ostream &os) const override |
bool | operator!= (const Base &other) const |
bool | operator< (const ArbiterSemanticVersion &other) const noexcept |
bool | operator<= (const ArbiterSemanticVersion &other) const noexcept |
bool | operator== (const Arbiter::Base &other) const override |
bool | operator> (const ArbiterSemanticVersion &other) const noexcept |
bool | operator>= (const ArbiterSemanticVersion &other) const noexcept |
Static Public Member Functions | |
static Arbiter::Optional< ArbiterSemanticVersion > | fromString (const std::string &versionString) |
Attempts to parse a well-formed semantic version from a string. More... | |
Public Attributes | |
Arbiter::Optional< std::string > | _buildMetadata |
unsigned | _major |
unsigned | _minor |
unsigned | _patch |
Arbiter::Optional< std::string > | _prereleaseVersion |
ArbiterSemanticVersion::ArbiterSemanticVersion | ( | unsigned | major, |
unsigned | minor, | ||
unsigned | patch, | ||
Arbiter::Optional< std::string > | prereleaseVersion = Arbiter::Optional<std::string>() , |
||
Arbiter::Optional< std::string > | buildMetadata = Arbiter::Optional<std::string>() |
||
) |
|
overridevirtual |
Implements Arbiter::Base.
|
overridevirtual |
Implements Arbiter::Base.
|
static |
Attempts to parse a well-formed semantic version from a string.
|
inherited |
|
noexcept |
|
noexcept |
|
overridevirtual |
Implements Arbiter::Base.
|
noexcept |
|
noexcept |
Arbiter::Optional<std::string> ArbiterSemanticVersion::_buildMetadata |
Arbiter::Optional<std::string> ArbiterSemanticVersion::_prereleaseVersion |