Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
VW::version_struct Class Reference

#include <version.h>

Public Member Functions

constexpr version_struct (int maj=0, int min=0, int rv=0)
 
 version_struct (const char *v_str)
 
constexpr version_struct (const version_struct &other)=default
 
constexpr version_struct (version_struct &&other) noexcept=default
 
VW_STD14_CONSTEXPR version_structoperator= (const version_struct &other)=default
 
VW_STD14_CONSTEXPR version_structoperator= (version_struct &&other) noexcept=default
 
constexpr bool operator== (const version_struct &v) const
 
constexpr bool operator!= (const version_struct &v) const
 
constexpr bool operator< (const version_struct &v) const
 
constexpr bool operator>= (const version_struct &v) const
 
constexpr bool operator> (const version_struct &v) const
 
constexpr bool operator<= (const version_struct &v) const
 
std::string to_string () const
 

Static Public Member Functions

static version_struct from_string (const char *str)
 

Public Attributes

int32_t major
 
int32_t minor
 
int32_t rev
 

Constructor & Destructor Documentation

◆ version_struct() [1/4]

constexpr VW::version_struct::version_struct ( int  maj = 0,
int  min = 0,
int  rv = 0 
)
inlineconstexpr

◆ version_struct() [2/4]

VW::version_struct::version_struct ( const char *  v_str)
explicit

◆ version_struct() [3/4]

constexpr VW::version_struct::version_struct ( const version_struct other)
constexprdefault

◆ version_struct() [4/4]

constexpr VW::version_struct::version_struct ( version_struct &&  other)
constexprdefaultnoexcept

Member Function Documentation

◆ from_string()

static version_struct VW::version_struct::from_string ( const char *  str)
static

◆ operator!=()

constexpr bool VW::version_struct::operator!= ( const version_struct v) const
inlineconstexpr

◆ operator<()

constexpr bool VW::version_struct::operator< ( const version_struct v) const
inlineconstexpr

◆ operator<=()

constexpr bool VW::version_struct::operator<= ( const version_struct v) const
inlineconstexpr

◆ operator=() [1/2]

VW_STD14_CONSTEXPR version_struct & VW::version_struct::operator= ( const version_struct other)
default

◆ operator=() [2/2]

VW_STD14_CONSTEXPR version_struct & VW::version_struct::operator= ( version_struct &&  other)
defaultnoexcept

◆ operator==()

constexpr bool VW::version_struct::operator== ( const version_struct v) const
inlineconstexpr

◆ operator>()

constexpr bool VW::version_struct::operator> ( const version_struct v) const
inlineconstexpr

◆ operator>=()

constexpr bool VW::version_struct::operator>= ( const version_struct v) const
inlineconstexpr

◆ to_string()

std::string VW::version_struct::to_string ( ) const

Member Data Documentation

◆ major

int32_t VW::version_struct::major

◆ minor

int32_t VW::version_struct::minor

◆ rev

int32_t VW::version_struct::rev

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