LMMS
Loading...
Searching...
No Matches
zyncarla::version_type Class Reference

class containing a zynaddsubfx version More...

#include <zyn-version.h>

Public Member Functions

constexpr version_type (char maj, char min, char rev)
constexpr version_type ()
 constructs the current zynaddsubfx version
void set_major (int maj)
void set_minor (int min)
void set_revision (int rev)
int get_major () const
int get_minor () const
int get_revision () const
constexpr bool operator< (const version_type &other) const

Private Member Functions

constexpr int v_strcmp (const version_type &v2, int i) const

Private Attributes

char version [3]

Friends

std::ostream & operator<< (std::ostream &os, const version_type &v)
 prints version as <major>.<minor>.<revision>

Detailed Description

class containing a zynaddsubfx version

Constructor & Destructor Documentation

◆ version_type() [1/2]

zyncarla::version_type::version_type ( char maj,
char min,
char rev )
inlineconstexpr

◆ version_type() [2/2]

zyncarla::version_type::version_type ( )
inlineconstexpr

constructs the current zynaddsubfx version

Member Function Documentation

◆ get_major()

int zyncarla::version_type::get_major ( ) const
inline

◆ get_minor()

int zyncarla::version_type::get_minor ( ) const
inline

◆ get_revision()

int zyncarla::version_type::get_revision ( ) const
inline

◆ operator<()

bool zyncarla::version_type::operator< ( const version_type & other) const
inlineconstexpr

◆ set_major()

void zyncarla::version_type::set_major ( int maj)
inline

◆ set_minor()

void zyncarla::version_type::set_minor ( int min)
inline

◆ set_revision()

void zyncarla::version_type::set_revision ( int rev)
inline

◆ v_strcmp()

int zyncarla::version_type::v_strcmp ( const version_type & v2,
int i ) const
inlineconstexprprivate

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const version_type & v )
friend

prints version as <major>.<minor>.<revision>

Member Data Documentation

◆ version

char zyncarla::version_type::version[3]
private

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