Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::storage::StorageValue Union Reference

#include <compression.h>

Public Member Functions

 StorageValue ()=default
 
template<typename T >
requires std::same_as<std::remove_cvref_t<T>, common::int128_t>
 StorageValue (T value)
 
template<typename T >
requires std::integral<T> && std::numeric_limits<T>::is_signed
 StorageValue (T value)
 
template<typename T >
requires std::integral<T> && (!std::numeric_limits<T>::is_signed)
 StorageValue (T value)
 
template<typename T >
requires std::is_floating_point<T>::value
 StorageValue (T value)
 
bool operator== (const StorageValue &other) const
 
template<StorageValueType T>
StorageValueoperator= (const T &val)
 
template<StorageValueType T>
get () const
 
bool gt (const StorageValue &other, common::PhysicalTypeID type) const
 

Static Public Member Functions

static std::optional< StorageValuereadFromVector (const common::ValueVector &vector, common::offset_t posInVector)
 

Public Attributes

int64_t signedInt
 
uint64_t unsignedInt
 
double floatVal
 
common::int128_t signedInt128
 

Constructor & Destructor Documentation

◆ StorageValue() [1/5]

kuzu::storage::StorageValue::StorageValue ( )
default

◆ StorageValue() [2/5]

template<typename T >
requires std::same_as<std::remove_cvref_t<T>, common::int128_t>
kuzu::storage::StorageValue::StorageValue ( T value)
inlineexplicit

◆ StorageValue() [3/5]

template<typename T >
requires std::integral<T> && std::numeric_limits<T>::is_signed
kuzu::storage::StorageValue::StorageValue ( T value)
inlineexplicit

◆ StorageValue() [4/5]

template<typename T >
requires std::integral<T> && (!std::numeric_limits<T>::is_signed)
kuzu::storage::StorageValue::StorageValue ( T value)
inlineexplicit

◆ StorageValue() [5/5]

template<typename T >
requires std::is_floating_point<T>::value
kuzu::storage::StorageValue::StorageValue ( T value)
inlineexplicit

Member Function Documentation

◆ get()

template<StorageValueType T>
T kuzu::storage::StorageValue::get ( ) const
inline

◆ gt()

bool kuzu::storage::StorageValue::gt ( const StorageValue & other,
common::PhysicalTypeID type ) const

◆ operator=()

template<StorageValueType T>
StorageValue & kuzu::storage::StorageValue::operator= ( const T & val)
inline

◆ operator==()

bool kuzu::storage::StorageValue::operator== ( const StorageValue & other) const
inline

◆ readFromVector()

static std::optional< StorageValue > kuzu::storage::StorageValue::readFromVector ( const common::ValueVector & vector,
common::offset_t posInVector )
static

Member Data Documentation

◆ floatVal

double kuzu::storage::StorageValue::floatVal

◆ signedInt

int64_t kuzu::storage::StorageValue::signedInt

◆ signedInt128

common::int128_t kuzu::storage::StorageValue::signedInt128

◆ unsignedInt

uint64_t kuzu::storage::StorageValue::unsignedInt

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