Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::Math::CompensatedSum< T > Class Template Reference

#include <Math.h>

Collaboration diagram for Harlinn::Math::CompensatedSum< T >:
[legend]

Public Types

using value_type = T
 
using ValueType = T
 

Public Member Functions

constexpr CompensatedSum () noexcept=default
 
constexpr CompensatedSum (ValueType v) noexcept
 
constexpr CompensatedSumoperator= (ValueType v) noexcept
 
constexpr CompensatedSumoperator+= (ValueType v) noexcept
 
constexpr operator ValueType () const noexcept
 
std::string ToString () const
 

Private Attributes

ValueType sum_ = 0
 
ValueType c_ = 0
 

Member Typedef Documentation

◆ value_type

template<typename T >
using Harlinn::Math::CompensatedSum< T >::value_type = T

◆ ValueType

template<typename T >
using Harlinn::Math::CompensatedSum< T >::ValueType = T

Constructor & Destructor Documentation

◆ CompensatedSum() [1/2]

template<typename T >
Harlinn::Math::CompensatedSum< T >::CompensatedSum ( )
constexprdefaultnoexcept

◆ CompensatedSum() [2/2]

template<typename T >
Harlinn::Math::CompensatedSum< T >::CompensatedSum ( ValueType v)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ operator ValueType()

template<typename T >
Harlinn::Math::CompensatedSum< T >::operator ValueType ( ) const
inlineexplicitconstexprnoexcept

◆ operator+=()

template<typename T >
CompensatedSum & Harlinn::Math::CompensatedSum< T >::operator+= ( ValueType v)
inlineconstexprnoexcept

◆ operator=()

template<typename T >
CompensatedSum & Harlinn::Math::CompensatedSum< T >::operator= ( ValueType v)
inlineconstexprnoexcept

◆ ToString()

template<typename T >
std::string Harlinn::Math::CompensatedSum< T >::ToString ( ) const

Member Data Documentation

◆ c_

template<typename T >
ValueType Harlinn::Math::CompensatedSum< T >::c_ = 0
private

◆ sum_

template<typename T >
ValueType Harlinn::Math::CompensatedSum< T >::sum_ = 0
private

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