Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::SemanticVersion Class Referencefinal

Convenient software version handling routines. See https://semver.org/ for a detailed explaination of the concept. More...

#include <SemanticVersion.h>

Public Member Functions

 SemanticVersion ()
 
 SemanticVersion (uint16 major, uint16 minor, uint16 patch)
 
 SemanticVersion (std::string_view version)
 
bool isInitial () const
 
std::string toString () const
 
bool operator== (const SemanticVersion &other) const =default
 
std::strong_ordering operator<=> (const SemanticVersion &other) const
 

Detailed Description

Convenient software version handling routines. See https://semver.org/ for a detailed explaination of the concept.

Constructor & Destructor Documentation

◆ SemanticVersion() [1/3]

ph::SemanticVersion::SemanticVersion ( )
inline

◆ SemanticVersion() [2/3]

ph::SemanticVersion::SemanticVersion ( uint16 major,
uint16 minor,
uint16 patch )
inline

◆ SemanticVersion() [3/3]

ph::SemanticVersion::SemanticVersion ( std::string_view version)
explicit

Member Function Documentation

◆ isInitial()

bool ph::SemanticVersion::isInitial ( ) const
inline

◆ operator<=>()

std::strong_ordering ph::SemanticVersion::operator<=> ( const SemanticVersion & other) const
inline

◆ operator==()

bool ph::SemanticVersion::operator== ( const SemanticVersion & other) const
inlinedefault

◆ toString()

std::string ph::SemanticVersion::toString ( ) const

The documentation for this class was generated from the following files: