Stable Numerics Subroutine Library
Programming Reference Manual
Version 1.1 DD-00006-011

8.2.2 Constructors

constexpr triplex() = default; 
constexpr triplex(const triplex<T>&) = default; 
constexpr triplex(const T& v); 
constexpr triplex(const T& a, const T& b, const T& c); 
constexpr triplex(const interval<T>& o); 
constexpr triplex(const interval<T>& o, const T& m); 
constexpr triplex(const kaucher_interval<T>& o); 
constexpr triplex(const kaucher_interval<T>& o, const T& m); 
constexpr triplex(const std::pair<T,T>& p, const T& m); 
constexpr triplex(const T v[3]);

These are the constructors of the triplex<T> class. All constructors with the constexpr declaration specifier are implemented in inline.

triplex()


Default constructor, leaves infinimum, value and supremum uninitialized.

triplex(const triplex<T>&)


Default copy constructor.

triplex(const T&, const T&, const T&) and triplex(const T a[3])


Assignment constructor, assigns infinimum, value and supremum to the first and second argument respectively.

triplex(const T&)


Assignment constructor, initializes the interval as a singleton of the given value.

triplex(std::pair<T,T> &, const T&)


Assignment constructor, initializes the infinimum and supremum to the first and second value of the std::pair, respectively and sets the value to the given scalar.

triplex(const interval<T>&) and triplex(const interval<T>&, const T&)


Assignment constructor, initializes a triplex from a classic interval, the value is either set as the middle of the interval or explicitly by the given scalar.

triplex(const kaucher_interval<T>&) and triplex(const kaucher_interval<T>&, const T&)


Assignment constructor, initializes a triplex from a kaucher interval, the value is either set as the middle of the interval or explicitly by the given scalar.