CommonLibSSE NG
REL::Version Class Reference

#include <Version.h>

Public Types

using value_type = std::uint16_t
 
using reference = value_type &
 
using const_reference = const value_type &
 

Public Member Functions

constexpr Version () noexcept=default
 
constexpr Version (std::array< value_type, 4 > a_version) noexcept
 
constexpr Version (value_type a_v1, value_type a_v2=0, value_type a_v3=0, value_type a_v4=0) noexcept
 
constexpr Version (std::string_view a_version)
 
constexpr reference operator[] (std::size_t a_idx) noexcept
 
constexpr const_reference operator[] (std::size_t a_idx) const noexcept
 
constexpr decltype(auto) begin () const noexcept
 
constexpr decltype(auto) cbegin () const noexcept
 
constexpr decltype(auto) end () const noexcept
 
constexpr decltype(auto) cend () const noexcept
 
constexpr std::strong_ordering compare (const Version &a_rhs) const noexcept
 
constexpr std::uint32_t pack () const noexcept
 
constexpr value_type major () const noexcept
 
constexpr value_type minor () const noexcept
 
constexpr value_type patch () const noexcept
 
constexpr value_type build () const noexcept
 
std::string string (std::string_view a_separator="-"sv) const
 
std::wstring wstring (std::wstring_view a_separator=L"-"sv) const
 

Static Public Member Functions

static constexpr Version unpack (std::uint32_t a_packedVersion) noexcept
 

Member Typedef Documentation

◆ const_reference

◆ reference

◆ value_type

using REL::Version::value_type = std::uint16_t

Constructor & Destructor Documentation

◆ Version() [1/4]

constexpr REL::Version::Version ( )
constexprdefaultnoexcept

◆ Version() [2/4]

constexpr REL::Version::Version ( std::array< value_type, 4 >  a_version)
inlineexplicitconstexprnoexcept

◆ Version() [3/4]

constexpr REL::Version::Version ( value_type  a_v1,
value_type  a_v2 = 0,
value_type  a_v3 = 0,
value_type  a_v4 = 0 
)
inlineconstexprnoexcept

◆ Version() [4/4]

constexpr REL::Version::Version ( std::string_view  a_version)
inlineexplicitconstexpr

Member Function Documentation

◆ begin()

constexpr decltype(auto) REL::Version::begin ( ) const
inlineconstexprnoexcept

◆ build()

constexpr value_type REL::Version::build ( ) const
inlineconstexprnoexcept

◆ cbegin()

constexpr decltype(auto) REL::Version::cbegin ( ) const
inlineconstexprnoexcept

◆ cend()

constexpr decltype(auto) REL::Version::cend ( ) const
inlineconstexprnoexcept

◆ compare()

constexpr std::strong_ordering REL::Version::compare ( const Version a_rhs) const
inlineconstexprnoexcept

◆ end()

constexpr decltype(auto) REL::Version::end ( ) const
inlineconstexprnoexcept

◆ major()

constexpr value_type REL::Version::major ( ) const
inlineconstexprnoexcept

◆ minor()

constexpr value_type REL::Version::minor ( ) const
inlineconstexprnoexcept

◆ operator[]() [1/2]

constexpr const_reference REL::Version::operator[] ( std::size_t  a_idx) const
inlineconstexprnoexcept

◆ operator[]() [2/2]

constexpr reference REL::Version::operator[] ( std::size_t  a_idx)
inlineconstexprnoexcept

◆ pack()

constexpr std::uint32_t REL::Version::pack ( ) const
inlineconstexprnoexcept

◆ patch()

constexpr value_type REL::Version::patch ( ) const
inlineconstexprnoexcept

◆ string()

std::string REL::Version::string ( std::string_view  a_separator = "-"sv) const
inline

◆ unpack()

static constexpr Version REL::Version::unpack ( std::uint32_t  a_packedVersion)
inlinestaticconstexprnoexcept

◆ wstring()

std::wstring REL::Version::wstring ( std::wstring_view  a_separator = L"-"sv) const
inline

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