Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
toolbox::util::Version Struct Reference

#include <toolbox/util/Version.hpp>

Public Member Functions

constexpr Version (int major=0, int minor=0) noexcept
 
 ~Version ()=default
 
constexpr Version (const Version &) noexcept=default
 
constexpr Versionoperator= (const Version &) noexcept=default
 
constexpr Version (Version &&) noexcept=default
 
constexpr Versionoperator= (Version &&) noexcept=default
 
constexpr bool empty () const noexcept
 
constexpr std::size_t size () const noexcept
 Returns the length of the equivalent string representation.
 
constexpr operator bool () const noexcept
 
void clear () noexcept
 
void swap (Version &rhs) noexcept
 
constexpr auto operator<=> (const Version &) const noexcept=default
 
constexpr bool operator== (const Version &) const noexcept=default
 

Public Attributes

int major {0}
 
int minor {0}
 

Detailed Description

Definition at line 27 of file Version.hpp.

Constructor & Destructor Documentation

◆ Version() [1/3]

constexpr toolbox::util::Version::Version ( int  major = 0,
int  minor = 0 
)
inlineconstexprnoexcept

Definition at line 28 of file Version.hpp.

◆ ~Version()

toolbox::util::Version::~Version ( )
default

◆ Version() [2/3]

constexpr toolbox::util::Version::Version ( const Version )
constexprdefaultnoexcept

◆ Version() [3/3]

constexpr toolbox::util::Version::Version ( Version &&  )
constexprdefaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

constexpr Version & toolbox::util::Version::operator= ( const Version )
constexprdefaultnoexcept

◆ operator=() [2/2]

constexpr Version & toolbox::util::Version::operator= ( Version &&  )
constexprdefaultnoexcept

◆ empty()

constexpr bool toolbox::util::Version::empty ( ) const
inlineconstexprnoexcept

Definition at line 43 of file Version.hpp.

Referenced by operator bool().

◆ size()

constexpr std::size_t toolbox::util::Version::size ( ) const
inlineconstexprnoexcept

Returns the length of the equivalent string representation.

Definition at line 45 of file Version.hpp.

◆ operator bool()

constexpr toolbox::util::Version::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 49 of file Version.hpp.

◆ clear()

void toolbox::util::Version::clear ( )
inlinenoexcept

Definition at line 51 of file Version.hpp.

◆ swap()

void toolbox::util::Version::swap ( Version rhs)
inlinenoexcept

Definition at line 52 of file Version.hpp.

◆ operator<=>()

constexpr auto toolbox::util::Version::operator<=> ( const Version ) const
constexprdefaultnoexcept

◆ operator==()

constexpr bool toolbox::util::Version::operator== ( const Version ) const
constexprdefaultnoexcept

Member Data Documentation

◆ major

int toolbox::util::Version::major {0}

Definition at line 61 of file Version.hpp.

Referenced by clear(), empty(), size(), swap(), and Version().

◆ minor

int toolbox::util::Version::minor {0}

Definition at line 61 of file Version.hpp.

Referenced by clear(), empty(), size(), and swap().


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