Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
instrumented.hpp File Reference
#include <iostream>
#include <iomanip>
#include <atomic>
#include <cmath>
#include <type_traits>
#include <string>
#include "occurrence.hpp"

Classes

class  sw::universal::instrumented_stats
 Global statistics tracker for instrumented operations Thread-safe using atomic counters. More...
class  sw::universal::instrumented_scope
 RAII guard for scoped statistics collection. More...
class  sw::universal::instrumented< T >
 Instrumented wrapper for any arithmetic type. More...
struct  sw::universal::is_instrumented< T >
struct  sw::universal::is_instrumented< instrumented< T > >
struct  sw::universal::underlying_type< T >
struct  sw::universal::underlying_type< instrumented< T > >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Typedefs

template<typename T>
using sw::universal::underlying_type_t = typename underlying_type<T>::type

Functions

template<typename T>
instrumented< T > sw::universal::operator+ (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
instrumented< T > sw::universal::operator- (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
instrumented< T > sw::universal::operator* (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
instrumented< T > sw::universal::operator/ (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
instrumented< T > sw::universal::operator+ (const instrumented< T > &lhs, const T &rhs)
template<typename T>
instrumented< T > sw::universal::operator- (const instrumented< T > &lhs, const T &rhs)
template<typename T>
instrumented< T > sw::universal::operator* (const instrumented< T > &lhs, const T &rhs)
template<typename T>
instrumented< T > sw::universal::operator/ (const instrumented< T > &lhs, const T &rhs)
template<typename T>
instrumented< T > sw::universal::operator+ (const T &lhs, const instrumented< T > &rhs)
template<typename T>
instrumented< T > sw::universal::operator- (const T &lhs, const instrumented< T > &rhs)
template<typename T>
instrumented< T > sw::universal::operator* (const T &lhs, const instrumented< T > &rhs)
template<typename T>
instrumented< T > sw::universal::operator/ (const T &lhs, const instrumented< T > &rhs)
template<typename T>
bool sw::universal::operator== (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
bool sw::universal::operator!= (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
bool sw::universal::operator< (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
bool sw::universal::operator> (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
bool sw::universal::operator<= (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
bool sw::universal::operator>= (const instrumented< T > &lhs, const instrumented< T > &rhs)
template<typename T>
instrumented< T > sw::universal::sqrt (const instrumented< T > &x)
template<typename T>
instrumented< T > sw::universal::abs (const instrumented< T > &x)
template<typename T>
instrumented< T > sw::universal::fabs (const instrumented< T > &x)
template<typename T>
std::ostream & sw::universal::operator<< (std::ostream &ostr, const instrumented< T > &x)
template<typename T>
std::istream & sw::universal::operator>> (std::istream &istr, instrumented< T > &x)

Variables

template<typename T>
constexpr bool sw::universal::is_instrumented_v = is_instrumented<T>::value