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::ubox_box Struct Reference

#include <ubox_trace.hpp>

Public Member Functions

bool bounded () const noexcept
long double relative_width () const noexcept
bool contains (long double v) const noexcept

Public Attributes

long double lo { 0 }
long double hi { 0 }
bool lo_open { false }
bool hi_open { false }
bool nan { false }
bool exact { false }
long long tiles { -1 }
std::string text

Member Function Documentation

◆ bounded()

bool sw::universal::ubox_box::bounded ( ) const
inlinenoexcept

◆ contains()

bool sw::universal::ubox_box::contains ( long double v) const
inlinenoexcept

◆ relative_width()

long double sw::universal::ubox_box::relative_width ( ) const
inlinenoexcept

Member Data Documentation

◆ exact

bool sw::universal::ubox_box::exact { false }

◆ hi

long double sw::universal::ubox_box::hi { 0 }

◆ hi_open

bool sw::universal::ubox_box::hi_open { false }

◆ lo

long double sw::universal::ubox_box::lo { 0 }

◆ lo_open

bool sw::universal::ubox_box::lo_open { false }

◆ nan

bool sw::universal::ubox_box::nan { false }

◆ text

std::string sw::universal::ubox_box::text

◆ tiles

long long sw::universal::ubox_box::tiles { -1 }

The documentation for this struct was generated from the following file:
  • /home/runner/work/universal/universal/include/sw/universal/utility/ubox_trace.hpp