plugify 1.0.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
plg::version Struct Reference

Public Member Functions

constexpr version (uint16_t mj, uint16_t mn, uint16_t pt, prerelease prt=prerelease::none, std::optional< uint16_t > prn=std::nullopt) noexcept
 
constexpr version (uint16_t mj, uint16_t mn, uint16_t pt, prerelease prt, uint16_t prn) noexcept
 
constexpr version (std::string_view str)
 
constexpr version (const version &)=default
 
constexpr version (version &&)=default
 
versionoperator= (const version &)=default
 
versionoperator= (version &&)=default
 
constexpr from_chars_result from_chars (const char *first, const char *last) noexcept
 
constexpr to_chars_result to_chars (char *first, char *last) const noexcept
 
constexpr bool from_string_noexcept (std::string_view str) noexcept
 
constexpr versionfrom_string (std::string_view str)
 
std::string to_string_noexcept () const noexcept
 
std::string to_string () const
 
constexpr uint8_t string_length () const noexcept
 
constexpr int compare (const version &other) const noexcept
 

Public Attributes

uint16_t major = 0
 
uint16_t minor = 1
 
uint16_t patch = 0
 
prerelease prerelease_type = prerelease::none
 
std::optional< uint16_tprerelease_number = std::nullopt
 

Detailed Description

Definition at line 222 of file version.hpp.

Constructor & Destructor Documentation

◆ version() [1/3]

constexpr plg::version::version ( uint16_t  mj,
uint16_t  mn,
uint16_t  pt,
prerelease  prt = prerelease::none,
std::optional< uint16_t prn = std::nullopt 
)
inlineconstexprnoexcept

Definition at line 229 of file version.hpp.

◆ version() [2/3]

constexpr plg::version::version ( uint16_t  mj,
uint16_t  mn,
uint16_t  pt,
prerelease  prt,
uint16_t  prn 
)
inlineconstexprnoexcept

Definition at line 241 of file version.hpp.

◆ version() [3/3]

constexpr plg::version::version ( std::string_view  str)
inlineexplicitconstexpr

Definition at line 253 of file version.hpp.

Member Function Documentation

◆ compare()

constexpr int plg::version::compare ( const version other) const
inlineconstexprnoexcept

Definition at line 357 of file version.hpp.

◆ from_chars()

constexpr from_chars_result plg::version::from_chars ( const char first,
const char last 
)
inlineconstexprnoexcept

Definition at line 269 of file version.hpp.

◆ from_string()

constexpr version & plg::version::from_string ( std::string_view  str)
inlineconstexpr

Definition at line 321 of file version.hpp.

◆ from_string_noexcept()

constexpr bool plg::version::from_string_noexcept ( std::string_view  str)
inlineconstexprnoexcept

Definition at line 317 of file version.hpp.

◆ string_length()

constexpr uint8_t plg::version::string_length ( ) const
inlineconstexprnoexcept

Definition at line 342 of file version.hpp.

◆ to_chars()

constexpr to_chars_result plg::version::to_chars ( char first,
char last 
) const
inlineconstexprnoexcept

Definition at line 297 of file version.hpp.

◆ to_string()

std::string plg::version::to_string ( ) const
inline

Definition at line 335 of file version.hpp.

◆ to_string_noexcept()

std::string plg::version::to_string_noexcept ( ) const
inlinenoexcept

Definition at line 326 of file version.hpp.

Member Data Documentation

◆ major

uint16_t plg::version::major = 0

Definition at line 223 of file version.hpp.

◆ minor

uint16_t plg::version::minor = 1

Definition at line 224 of file version.hpp.

◆ patch

uint16_t plg::version::patch = 0

Definition at line 225 of file version.hpp.

◆ prerelease_number

std::optional<uint16_t> plg::version::prerelease_number = std::nullopt

Definition at line 227 of file version.hpp.

◆ prerelease_type

prerelease plg::version::prerelease_type = prerelease::none

Definition at line 226 of file version.hpp.


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