Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::ZBCL< FpType > Class Template Reference

#include <zbcl.hpp>

Public Types

using value_type = block<FpType>
using thunk_type = std::function<ZBCL<FpType>()>

Public Member Functions

 ZBCL () noexcept
bool is_empty () const noexcept
 operator bool () const noexcept
const value_type & head () const noexcept
ZBCL< FpType > tail () const
std::vector< value_type > take (std::size_t n) const

Static Public Member Functions

static ZBCL< FpType > cons (const value_type &head_block, thunk_type tail)
static ZBCL< FpType > cons (const value_type &head_block, ZBCL< FpType > tail)
static ZBCL< FpType > singleton (const value_type &head_block)

Member Typedef Documentation

◆ thunk_type

template<typename FpType>
using sw::universal::ZBCL< FpType >::thunk_type = std::function<ZBCL<FpType>()>

◆ value_type

template<typename FpType>
using sw::universal::ZBCL< FpType >::value_type = block<FpType>

Constructor & Destructor Documentation

◆ ZBCL()

template<typename FpType>
sw::universal::ZBCL< FpType >::ZBCL ( )
inlinenoexcept

Member Function Documentation

◆ cons() [1/2]

template<typename FpType>
ZBCL< FpType > sw::universal::ZBCL< FpType >::cons ( const value_type & head_block,
thunk_type tail )
inlinestatic

◆ cons() [2/2]

template<typename FpType>
ZBCL< FpType > sw::universal::ZBCL< FpType >::cons ( const value_type & head_block,
ZBCL< FpType > tail )
inlinestatic

◆ head()

template<typename FpType>
const value_type & sw::universal::ZBCL< FpType >::head ( ) const
inlinenoexcept

◆ is_empty()

template<typename FpType>
bool sw::universal::ZBCL< FpType >::is_empty ( ) const
inlinenoexcept

◆ operator bool()

template<typename FpType>
sw::universal::ZBCL< FpType >::operator bool ( ) const
inlineexplicitnoexcept

◆ singleton()

template<typename FpType>
ZBCL< FpType > sw::universal::ZBCL< FpType >::singleton ( const value_type & head_block)
inlinestatic

◆ tail()

template<typename FpType>
ZBCL< FpType > sw::universal::ZBCL< FpType >::tail ( ) const
inline

◆ take()

template<typename FpType>
std::vector< value_type > sw::universal::ZBCL< FpType >::take ( std::size_t n) const
inline

The documentation for this class was generated from the following files:
  • /home/runner/work/universal/universal/include/sw/universal/number/elreal/elreal_fwd.hpp
  • /home/runner/work/universal/universal/include/sw/universal/number/elreal/zbcl.hpp