tudocomp
– The TU Dortmund Compression Framework
uint_t.hpp File Reference
#include <tudocomp/util/IntegerBase.hpp>
#include <cstdint>
#include <cmath>

Go to the source code of this file.

Classes

class  tdc::uint_impl_t< bits >
 Custom integer type for storing values of arbitrary bit size bits. More...
 
struct  tdc::UinttDispatch< MB >
 
struct  tdc::enable_if<(N<=32)>::type >
 
struct  tdc::enable_if<(N<=32)>::type >
 
struct  tdc::ConstIntegerBaseTrait< T, X >::type >< N >
 
struct  tdc::IntegerBaseTrait< T, X >::type >< N >
 
struct  tdc::ConstIntegerBaseTrait< bool >
 
struct  tdc::IntegerBaseTrait< bool >
 
class  tdc::uint_impl_t< bits >
 Custom integer type for storing values of arbitrary bit size bits. More...
 
class  tdc::uint_impl_t< 1 >
 
struct  tdc::uint_dispatch_t< N >
 
struct  tdc::uint_dispatch_t< 1 >
 
class  std::numeric_limits< tdc::uint_impl_t< N > >
 
struct  std::hash< tdc::uint_impl_t< N > >
 

Namespaces

 tdc
 Contains the text compression and encoding framework.
 
 std
 

Typedefs

template<size_t N>
using tdc::uint_t = typename uint_dispatch_t< N >::type
 

Functions

template<size_t bits>
tdc::uint_impl_t IntegerBase tdc::__attribute__ ((packed))
 
constexpr uint_impl_t ()
 
constexpr uint_impl_t (uint_impl_t &&i)
 
constexpr uint_impl_t (const uint_impl_t &i)
 
uint_impl_toperator= (const uint_impl_t &b)
 
constexpr uint_impl_t (unsigned char i)
 
uint_impl_toperator= (unsigned char data)
 
constexpr operator unsigned char () const
 
constexpr uint_impl_t (signed char i)
 
uint_impl_toperator= (signed char data)
 
constexpr operator signed char () const
 
constexpr uint_impl_t (char i)
 
constexpr uint_impl_toperator= (char data)
 
constexpr operator char () const
 
constexpr uint_impl_t (unsigned int i)
 
uint_impl_toperator= (unsigned int data)
 
constexpr operator unsigned int () const
 
constexpr uint_impl_t (unsigned short int i)
 
uint_impl_toperator= (unsigned short int data)
 
constexpr operator unsigned short int () const
 
constexpr uint_impl_t (unsigned long int i)
 
uint_impl_toperator= (unsigned long int data)
 
constexpr operator unsigned long int () const
 
constexpr uint_impl_t (unsigned long long int i)
 
uint_impl_toperator= (unsigned long long int data)
 
constexpr operator unsigned long long int () const
 
constexpr uint_impl_t (int i)
 
uint_impl_toperator= (int data)
 
constexpr operator int () const
 
constexpr uint_impl_t (short int i)
 
uint_impl_toperator= (short int data)
 
constexpr operator short int () const
 
constexpr uint_impl_t (long int i)
 
uint_impl_toperator= (long int data)
 
constexpr operator long int () const
 
constexpr uint_impl_t (long long int i)
 
uint_impl_toperator= (long long int data)
 
constexpr operator long long int () const
 
template<size_t N>
std::ostream & tdc::operator<< (std::ostream &os, const uint_impl_t< N > &v)
 
template<size_t N>
std::istream & tdc::operator>> (std::istream &is, uint_impl_t< N > &v)
 
template<size_t N>
std::string std::to_string (tdc::uint_impl_t< N > value)
 

Variables

uint64_t m_data
 
class tdc::uint_impl_t< 1 > tdc::__attribute__
 

Function Documentation

◆ operator char()

constexpr __attribute__::operator char ( ) const

Definition at line 56 of file uint_t.hpp.

◆ operator int()

constexpr __attribute__::operator int ( ) const

Definition at line 77 of file uint_t.hpp.

◆ operator long int()

constexpr __attribute__::operator long int ( ) const

Definition at line 85 of file uint_t.hpp.

◆ operator long long int()

constexpr __attribute__::operator long long int ( ) const

Definition at line 89 of file uint_t.hpp.

◆ operator short int()

constexpr __attribute__::operator short int ( ) const

Definition at line 81 of file uint_t.hpp.

◆ operator signed char()

constexpr __attribute__::operator signed char ( ) const

Definition at line 52 of file uint_t.hpp.

◆ operator unsigned char()

constexpr __attribute__::operator unsigned char ( ) const

Definition at line 48 of file uint_t.hpp.

◆ operator unsigned int()

constexpr __attribute__::operator unsigned int ( ) const

Definition at line 61 of file uint_t.hpp.

◆ operator unsigned long int()

constexpr __attribute__::operator unsigned long int ( ) const

Definition at line 69 of file uint_t.hpp.

◆ operator unsigned long long int()

constexpr __attribute__::operator unsigned long long int ( ) const

Definition at line 73 of file uint_t.hpp.

◆ operator unsigned short int()

constexpr __attribute__::operator unsigned short int ( ) const

Definition at line 65 of file uint_t.hpp.

◆ operator=() [1/12]

uint_impl_t& __attribute__::operator= ( const uint_impl_t b)
inline

Definition at line 43 of file uint_t.hpp.

◆ operator=() [2/12]

uint_impl_t& __attribute__::operator= ( unsigned char  data)
inline

Definition at line 47 of file uint_t.hpp.

◆ operator=() [3/12]

uint_impl_t& __attribute__::operator= ( signed char  data)
inline

Definition at line 51 of file uint_t.hpp.

◆ operator=() [4/12]

constexpr uint_impl_t& __attribute__::operator= ( char  data)

Definition at line 55 of file uint_t.hpp.

◆ operator=() [5/12]

uint_impl_t& __attribute__::operator= ( unsigned int  data)
inline

Definition at line 60 of file uint_t.hpp.

◆ operator=() [6/12]

uint_impl_t& __attribute__::operator= ( unsigned short int  data)
inline

Definition at line 64 of file uint_t.hpp.

◆ operator=() [7/12]

uint_impl_t& __attribute__::operator= ( unsigned long int  data)
inline

Definition at line 68 of file uint_t.hpp.

◆ operator=() [8/12]

uint_impl_t& __attribute__::operator= ( unsigned long long int  data)
inline

Definition at line 72 of file uint_t.hpp.

◆ operator=() [9/12]

uint_impl_t& __attribute__::operator= ( int  data)
inline

Definition at line 76 of file uint_t.hpp.

◆ operator=() [10/12]

uint_impl_t& __attribute__::operator= ( short int  data)
inline

Definition at line 80 of file uint_t.hpp.

◆ operator=() [11/12]

uint_impl_t& __attribute__::operator= ( long int  data)
inline

Definition at line 84 of file uint_t.hpp.

◆ operator=() [12/12]

uint_impl_t& __attribute__::operator= ( long long int  data)
inline

Definition at line 88 of file uint_t.hpp.

◆ uint_impl_t() [1/14]

constexpr __attribute__::uint_impl_t ( )

Definition at line 38 of file uint_t.hpp.

◆ uint_impl_t() [2/14]

constexpr __attribute__::uint_impl_t ( uint_impl_t &&  i)

Definition at line 39 of file uint_t.hpp.

◆ uint_impl_t() [3/14]

constexpr __attribute__::uint_impl_t ( const uint_impl_t &  i)

Definition at line 42 of file uint_t.hpp.

◆ uint_impl_t() [4/14]

constexpr __attribute__::uint_impl_t ( unsigned char  i)

Definition at line 46 of file uint_t.hpp.

◆ uint_impl_t() [5/14]

constexpr __attribute__::uint_impl_t ( signed char  i)

Definition at line 50 of file uint_t.hpp.

◆ uint_impl_t() [6/14]

constexpr __attribute__::uint_impl_t ( char  i)

Definition at line 54 of file uint_t.hpp.

◆ uint_impl_t() [7/14]

constexpr __attribute__::uint_impl_t ( unsigned int  i)

Definition at line 59 of file uint_t.hpp.

◆ uint_impl_t() [8/14]

constexpr __attribute__::uint_impl_t ( unsigned short int  i)

Definition at line 63 of file uint_t.hpp.

◆ uint_impl_t() [9/14]

constexpr __attribute__::uint_impl_t ( unsigned long int  i)

Definition at line 67 of file uint_t.hpp.

◆ uint_impl_t() [10/14]

constexpr __attribute__::uint_impl_t ( unsigned long long int  i)

Definition at line 71 of file uint_t.hpp.

◆ uint_impl_t() [11/14]

constexpr __attribute__::uint_impl_t ( int  i)

Definition at line 75 of file uint_t.hpp.

◆ uint_impl_t() [12/14]

constexpr __attribute__::uint_impl_t ( short int  i)

Definition at line 79 of file uint_t.hpp.

◆ uint_impl_t() [13/14]

constexpr __attribute__::uint_impl_t ( long int  i)

Definition at line 83 of file uint_t.hpp.

◆ uint_impl_t() [14/14]

constexpr __attribute__::uint_impl_t ( long long int  i)

Definition at line 87 of file uint_t.hpp.

Variable Documentation

◆ m_data

uint64_t m_data

Definition at line 30 of file uint_t.hpp.