Ardour  8.7-14-g57a6773833
int62_t Class Reference

#include <int62.h>

Inheritance diagram for int62_t:
[legend]

Classes

struct  flag_mismatch
 

Public Member Functions

 int62_t ()
 
 int62_t (bool bc, int64_t vc)
 
 int62_t (int62_t const &other)
 
bool flagged () const
 
int64_t val () const
 
int62_toperator= (int64_t n)
 
int62_toperator= (int62_t const &other)
 
int62_t operator- () const
 
int62_t operator+ (int64_t n) const
 
int62_t operator- (int64_t n) const
 
int62_t operator* (int64_t n) const
 
int62_t operator/ (int64_t n) const
 
int62_t operator% (int64_t n) const
 
int62_t operator+ (int62_t n) const
 
int62_t operator- (int62_t n) const
 
int62_t operator* (int62_t n) const
 
int62_t operator/ (int62_t n) const
 
int62_t operator% (int62_t n) const
 
bool operator< (int62_t const &other) const
 
bool operator<= (int62_t const &other) const
 
bool operator> (int62_t const &other) const
 
bool operator>= (int62_t const &other) const
 
bool operator!= (int62_t const &other) const
 
bool operator== (int62_t const &other) const
 
 operator int64_t () const
 
bool operator< (int64_t n) const
 
bool operator<= (int64_t n) const
 
bool operator> (int64_t n) const
 
bool operator>= (int64_t n) const
 
bool operator!= (int64_t n) const
 
bool operator== (int64_t n) const
 
int62_t abs () const
 
int62_toperator+= (int64_t n)
 
int62_toperator-= (int64_t n)
 
int62_toperator*= (int64_t n)
 
int62_toperator/= (int64_t n)
 
int62_toperator%= (int64_t n)
 
int62_toperator+= (int62_t n)
 
int62_toperator-= (int62_t n)
 
int62_toperator*= (int62_t n)
 
int62_toperator/= (int62_t n)
 
int62_toperator%= (int62_t n)
 

Static Public Member Functions

static int64_t build (bool flag, int64_t v)
 

Static Public Attributes

static const int64_t max = 4611686018427387903
 
static const int64_t min = -2305843009213693952
 

Static Protected Member Functions

static int64_t int62 (int64_t v)
 
static bool flagged (int64_t v)
 

Protected Attributes

std::atomic< int64_t > v
 

Static Protected Attributes

static const int64_t flagbit_mask = (1LL<<62)
 

Detailed Description

Definition at line 37 of file int62.h.

Constructor & Destructor Documentation

◆ int62_t() [1/3]

int62_t::int62_t ( )
inline

Definition at line 62 of file int62.h.

◆ int62_t() [2/3]

int62_t::int62_t ( bool  bc,
int64_t  vc 
)
inline

Definition at line 63 of file int62.h.

◆ int62_t() [3/3]

int62_t::int62_t ( int62_t const &  other)
inline

Definition at line 64 of file int62.h.

Member Function Documentation

◆ abs()

int62_t int62_t::abs ( ) const
inline

Definition at line 135 of file int62.h.

◆ build()

static int64_t int62_t::build ( bool  flag,
int64_t  v 
)
inlinestatic

Definition at line 60 of file int62.h.

◆ flagged() [1/2]

bool int62_t::flagged ( ) const
inline

Definition at line 69 of file int62.h.

◆ flagged() [2/2]

static bool int62_t::flagged ( int64_t  v)
inlinestaticprotected

Definition at line 54 of file int62.h.

◆ int62()

static int64_t int62_t::int62 ( int64_t  v)
inlinestaticprotected

Definition at line 53 of file int62.h.

◆ operator int64_t()

int62_t::operator int64_t ( ) const
inlineexplicit

Definition at line 126 of file int62.h.

◆ operator!=() [1/2]

bool int62_t::operator!= ( int62_t const &  other) const
inline

Definition at line 123 of file int62.h.

◆ operator!=() [2/2]

bool int62_t::operator!= ( int64_t  n) const
inline

Definition at line 132 of file int62.h.

◆ operator%() [1/2]

int62_t int62_t::operator% ( int62_t  n) const
inline

Definition at line 102 of file int62.h.

◆ operator%() [2/2]

int62_t int62_t::operator% ( int64_t  n) const
inline

Definition at line 96 of file int62.h.

◆ operator%=() [1/2]

int62_t& int62_t::operator%= ( int62_t  n)
inline

Definition at line 210 of file int62.h.

◆ operator%=() [2/2]

int62_t& int62_t::operator%= ( int64_t  n)
inline

Definition at line 169 of file int62.h.

◆ operator*() [1/2]

int62_t int62_t::operator* ( int62_t  n) const
inline

Definition at line 100 of file int62.h.

◆ operator*() [2/2]

int62_t int62_t::operator* ( int64_t  n) const
inline

Definition at line 94 of file int62.h.

◆ operator*=() [1/2]

int62_t& int62_t::operator*= ( int62_t  n)
inline

Definition at line 194 of file int62.h.

◆ operator*=() [2/2]

int62_t& int62_t::operator*= ( int64_t  n)
inline

Definition at line 153 of file int62.h.

◆ operator+() [1/2]

int62_t int62_t::operator+ ( int62_t  n) const
inline

Definition at line 98 of file int62.h.

◆ operator+() [2/2]

int62_t int62_t::operator+ ( int64_t  n) const
inline

Definition at line 92 of file int62.h.

◆ operator+=() [1/2]

int62_t& int62_t::operator+= ( int62_t  n)
inline

Definition at line 178 of file int62.h.

◆ operator+=() [2/2]

int62_t& int62_t::operator+= ( int64_t  n)
inline

Definition at line 137 of file int62.h.

◆ operator-() [1/3]

int62_t int62_t::operator- ( ) const
inline

Definition at line 90 of file int62.h.

◆ operator-() [2/3]

int62_t int62_t::operator- ( int62_t  n) const
inline

Definition at line 99 of file int62.h.

◆ operator-() [3/3]

int62_t int62_t::operator- ( int64_t  n) const
inline

Definition at line 93 of file int62.h.

◆ operator-=() [1/2]

int62_t& int62_t::operator-= ( int62_t  n)
inline

Definition at line 186 of file int62.h.

◆ operator-=() [2/2]

int62_t& int62_t::operator-= ( int64_t  n)
inline

Definition at line 145 of file int62.h.

◆ operator/() [1/2]

int62_t int62_t::operator/ ( int62_t  n) const
inline

Definition at line 101 of file int62.h.

◆ operator/() [2/2]

int62_t int62_t::operator/ ( int64_t  n) const
inline

Definition at line 95 of file int62.h.

◆ operator/=() [1/2]

int62_t& int62_t::operator/= ( int62_t  n)
inline

Definition at line 202 of file int62.h.

◆ operator/=() [2/2]

int62_t& int62_t::operator/= ( int64_t  n)
inline

Definition at line 161 of file int62.h.

◆ operator<() [1/2]

bool int62_t::operator< ( int62_t const &  other) const
inline

Definition at line 114 of file int62.h.

◆ operator<() [2/2]

bool int62_t::operator< ( int64_t  n) const
inline

Definition at line 128 of file int62.h.

◆ operator<=() [1/2]

bool int62_t::operator<= ( int62_t const &  other) const
inline

Definition at line 115 of file int62.h.

◆ operator<=() [2/2]

bool int62_t::operator<= ( int64_t  n) const
inline

Definition at line 129 of file int62.h.

◆ operator=() [1/2]

int62_t& int62_t::operator= ( int62_t const &  other)
inline

Definition at line 73 of file int62.h.

◆ operator=() [2/2]

int62_t& int62_t::operator= ( int64_t  n)
inline

Definition at line 72 of file int62.h.

◆ operator==() [1/2]

bool int62_t::operator== ( int62_t const &  other) const
inline

Definition at line 124 of file int62.h.

◆ operator==() [2/2]

bool int62_t::operator== ( int64_t  n) const
inline

Definition at line 133 of file int62.h.

◆ operator>() [1/2]

bool int62_t::operator> ( int62_t const &  other) const
inline

Definition at line 116 of file int62.h.

◆ operator>() [2/2]

bool int62_t::operator> ( int64_t  n) const
inline

Definition at line 130 of file int62.h.

◆ operator>=() [1/2]

bool int62_t::operator>= ( int62_t const &  other) const
inline

Definition at line 117 of file int62.h.

◆ operator>=() [2/2]

bool int62_t::operator>= ( int64_t  n) const
inline

Definition at line 131 of file int62.h.

◆ val()

int64_t int62_t::val ( ) const
inline

Definition at line 70 of file int62.h.

Member Data Documentation

◆ flagbit_mask

const int64_t int62_t::flagbit_mask = (1LL<<62)
staticprotected

Definition at line 47 of file int62.h.

◆ max

const int64_t int62_t::max = 4611686018427387903
static

Definition at line 66 of file int62.h.

◆ min

const int64_t int62_t::min = -2305843009213693952
static

Definition at line 67 of file int62.h.

◆ v

std::atomic<int64_t> int62_t::v
protected

Definition at line 44 of file int62.h.


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