Scippy

SoPlex

Sequential object-oriented simPlex

StableSum< T > Class Template Reference

#include <stablesum.h>

Public Member Functions

 StableSum ()
 
 StableSum (const T &init)
 
void operator+= (const T &input)
 
void operator-= (const T &input)
 
 operator typename std::remove_const< T >::type () const
 

Private Attributes

std::remove_const< T >::type sum
 

Detailed Description

template<typename T>
class soplex::StableSum< T >

Definition at line 35 of file stablesum.h.

Constructor & Destructor Documentation

◆ StableSum() [1/2]

StableSum ( )

Definition at line 40 of file stablesum.h.

◆ StableSum() [2/2]

StableSum ( const T &  init)

Definition at line 41 of file stablesum.h.

Member Function Documentation

◆ operator typename std::remove_const< T >::type()

operator typename std::remove_const< T >::type ( ) const

Definition at line 53 of file stablesum.h.

References StableSum< T >::sum.

◆ operator+=()

void operator+= ( const T &  input)

Definition at line 43 of file stablesum.h.

◆ operator-=()

void operator-= ( const T &  input)

Definition at line 48 of file stablesum.h.

Member Data Documentation

◆ sum

std::remove_const<T>::type sum
private