Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::common::Int128_t Class Reference

#include <int128_t.h>

Public Member Functions

template<>
bool tryCast (int128_t input, int8_t &result)
 
template<>
bool tryCast (int128_t input, int16_t &result)
 
template<>
bool tryCast (int128_t input, int32_t &result)
 
template<>
bool tryCast (int128_t input, int64_t &result)
 
template<>
bool tryCast (int128_t input, uint8_t &result)
 
template<>
bool tryCast (int128_t input, uint16_t &result)
 
template<>
bool tryCast (int128_t input, uint32_t &result)
 
template<>
bool tryCast (int128_t input, uint64_t &result)
 
template<>
bool tryCast (int128_t input, float &result)
 
template<>
bool tryCast (int128_t input, double &result)
 
template<>
bool tryCast (int128_t input, long double &result)
 
template<>
bool tryCastTo (int8_t value, int128_t &result)
 
template<>
bool tryCastTo (int16_t value, int128_t &result)
 
template<>
bool tryCastTo (int32_t value, int128_t &result)
 
template<>
bool tryCastTo (int64_t value, int128_t &result)
 
template<>
bool tryCastTo (uint8_t value, int128_t &result)
 
template<>
bool tryCastTo (uint16_t value, int128_t &result)
 
template<>
bool tryCastTo (uint32_t value, int128_t &result)
 
template<>
bool tryCastTo (uint64_t value, int128_t &result)
 
template<>
bool tryCastTo (int128_t value, int128_t &result)
 
template<>
bool tryCastTo (float value, int128_t &result)
 
template<>
bool tryCastTo (double value, int128_t &result)
 
template<>
bool tryCastTo (long double value, int128_t &result)
 

Static Public Member Functions

static std::string ToString (int128_t input)
 
template<class T >
static bool tryCast (int128_t input, T &result)
 
template<class T >
static T Cast (int128_t input)
 
template<class T >
static bool tryCastTo (T value, int128_t &result)
 
template<class T >
static int128_t castTo (T value)
 
static void negateInPlace (int128_t &input)
 
static int128_t negate (int128_t input)
 
static bool tryMultiply (int128_t lhs, int128_t rhs, int128_t &result)
 
static int128_t Add (int128_t lhs, int128_t rhs)
 
static int128_t Sub (int128_t lhs, int128_t rhs)
 
static int128_t Mul (int128_t lhs, int128_t rhs)
 
static int128_t Div (int128_t lhs, int128_t rhs)
 
static int128_t Mod (int128_t lhs, int128_t rhs)
 
static int128_t Xor (int128_t lhs, int128_t rhs)
 
static int128_t LeftShift (int128_t lhs, int amount)
 
static int128_t RightShift (int128_t lhs, int amount)
 
static int128_t BinaryAnd (int128_t lhs, int128_t rhs)
 
static int128_t BinaryOr (int128_t lhs, int128_t rhs)
 
static int128_t BinaryNot (int128_t val)
 
static int128_t divMod (int128_t lhs, int128_t rhs, int128_t &remainder)
 
static int128_t divModPositive (int128_t lhs, uint64_t rhs, uint64_t &remainder)
 
static bool addInPlace (int128_t &lhs, int128_t rhs)
 
static bool subInPlace (int128_t &lhs, int128_t rhs)
 
static bool Equals (int128_t lhs, int128_t rhs)
 
static bool notEquals (int128_t lhs, int128_t rhs)
 
static bool greaterThan (int128_t lhs, int128_t rhs)
 
static bool greaterThanOrEquals (int128_t lhs, int128_t rhs)
 
static bool lessThan (int128_t lhs, int128_t rhs)
 
static bool lessThanOrEquals (int128_t lhs, int128_t rhs)
 

Static Public Attributes

static const int128_t powerOf10 [40]
 

Member Function Documentation

◆ Add()

static int128_t kuzu::common::Int128_t::Add ( int128_t lhs,
int128_t rhs )
static

◆ addInPlace()

static bool kuzu::common::Int128_t::addInPlace ( int128_t & lhs,
int128_t rhs )
static

◆ BinaryAnd()

static int128_t kuzu::common::Int128_t::BinaryAnd ( int128_t lhs,
int128_t rhs )
static

◆ BinaryNot()

static int128_t kuzu::common::Int128_t::BinaryNot ( int128_t val)
static

◆ BinaryOr()

static int128_t kuzu::common::Int128_t::BinaryOr ( int128_t lhs,
int128_t rhs )
static

◆ Cast()

template<class T >
static T kuzu::common::Int128_t::Cast ( int128_t input)
inlinestatic

◆ castTo()

template<class T >
static int128_t kuzu::common::Int128_t::castTo ( T value)
inlinestatic

◆ Div()

static int128_t kuzu::common::Int128_t::Div ( int128_t lhs,
int128_t rhs )
static

◆ divMod()

static int128_t kuzu::common::Int128_t::divMod ( int128_t lhs,
int128_t rhs,
int128_t & remainder )
static

◆ divModPositive()

static int128_t kuzu::common::Int128_t::divModPositive ( int128_t lhs,
uint64_t rhs,
uint64_t & remainder )
static

◆ Equals()

static bool kuzu::common::Int128_t::Equals ( int128_t lhs,
int128_t rhs )
inlinestatic

◆ greaterThan()

static bool kuzu::common::Int128_t::greaterThan ( int128_t lhs,
int128_t rhs )
inlinestatic

◆ greaterThanOrEquals()

static bool kuzu::common::Int128_t::greaterThanOrEquals ( int128_t lhs,
int128_t rhs )
inlinestatic

◆ LeftShift()

static int128_t kuzu::common::Int128_t::LeftShift ( int128_t lhs,
int amount )
static

◆ lessThan()

static bool kuzu::common::Int128_t::lessThan ( int128_t lhs,
int128_t rhs )
inlinestatic

◆ lessThanOrEquals()

static bool kuzu::common::Int128_t::lessThanOrEquals ( int128_t lhs,
int128_t rhs )
inlinestatic

◆ Mod()

static int128_t kuzu::common::Int128_t::Mod ( int128_t lhs,
int128_t rhs )
static

◆ Mul()

static int128_t kuzu::common::Int128_t::Mul ( int128_t lhs,
int128_t rhs )
static

◆ negate()

static int128_t kuzu::common::Int128_t::negate ( int128_t input)
inlinestatic

◆ negateInPlace()

static void kuzu::common::Int128_t::negateInPlace ( int128_t & input)
inlinestatic

◆ notEquals()

static bool kuzu::common::Int128_t::notEquals ( int128_t lhs,
int128_t rhs )
inlinestatic

◆ RightShift()

static int128_t kuzu::common::Int128_t::RightShift ( int128_t lhs,
int amount )
static

◆ Sub()

static int128_t kuzu::common::Int128_t::Sub ( int128_t lhs,
int128_t rhs )
static

◆ subInPlace()

static bool kuzu::common::Int128_t::subInPlace ( int128_t & lhs,
int128_t rhs )
static

◆ ToString()

static std::string kuzu::common::Int128_t::ToString ( int128_t input)
static

◆ tryCast() [1/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
double & result )

◆ tryCast() [2/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
float & result )

◆ tryCast() [3/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
int16_t & result )

◆ tryCast() [4/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
int32_t & result )

◆ tryCast() [5/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
int64_t & result )

◆ tryCast() [6/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
int8_t & result )

◆ tryCast() [7/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
long double & result )

◆ tryCast() [8/12]

template<class T >
static bool kuzu::common::Int128_t::tryCast ( int128_t input,
T & result )
static

◆ tryCast() [9/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
uint16_t & result )

◆ tryCast() [10/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
uint32_t & result )

◆ tryCast() [11/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
uint64_t & result )

◆ tryCast() [12/12]

template<>
bool kuzu::common::Int128_t::tryCast ( int128_t input,
uint8_t & result )

◆ tryCastTo() [1/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( double value,
int128_t & result )

◆ tryCastTo() [2/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( float value,
int128_t & result )

◆ tryCastTo() [3/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( int128_t value,
int128_t & result )

◆ tryCastTo() [4/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( int16_t value,
int128_t & result )

◆ tryCastTo() [5/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( int32_t value,
int128_t & result )

◆ tryCastTo() [6/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( int64_t value,
int128_t & result )

◆ tryCastTo() [7/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( int8_t value,
int128_t & result )

◆ tryCastTo() [8/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( long double value,
int128_t & result )

◆ tryCastTo() [9/13]

template<class T >
static bool kuzu::common::Int128_t::tryCastTo ( T value,
int128_t & result )
static

◆ tryCastTo() [10/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( uint16_t value,
int128_t & result )

◆ tryCastTo() [11/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( uint32_t value,
int128_t & result )

◆ tryCastTo() [12/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( uint64_t value,
int128_t & result )

◆ tryCastTo() [13/13]

template<>
bool kuzu::common::Int128_t::tryCastTo ( uint8_t value,
int128_t & result )

◆ tryMultiply()

static bool kuzu::common::Int128_t::tryMultiply ( int128_t lhs,
int128_t rhs,
int128_t & result )
static

◆ Xor()

static int128_t kuzu::common::Int128_t::Xor ( int128_t lhs,
int128_t rhs )
static

Member Data Documentation

◆ powerOf10

const int128_t kuzu::common::Int128_t::powerOf10[40]
static

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