|
Leonardus
|
Semantic Object Real. More...
#include <sosimp.h>
Inheritance diagram for SOR:
Collaboration diagram for SOR:Public Member Functions | |
| SOR (const std::string &p_s) | |
| Ctor. | |
| SOR (__float128 p_r) | |
| Ctor. | |
| __float128 | getReal () const |
| Getter for real value. | |
| void | setReal (__float128 p_r) |
| Setter for real value. | |
| SOR * | dup () const override |
| Creates a new instance as copy following the red book definition. | |
| std::string | opequal () const override |
| For operators '=', 'cvs' and 'stack'. | |
| OTCode | ot () const override |
| Returns an OTCode. | |
| std::string | type () const override |
| Returns a type name. | |
| bool | equal (const SO *p_other) const override |
| Equality. | |
| bool | gt (const SO *p_other) const override |
| Greater than. | |
| bool | ge (const SO *p_other) const override |
| Greater or equal. | |
| void | trunc () |
| Direct trunc(). | |
| void | ceil () |
| Direct ceil(). | |
| void | floor () |
| Direct floor(). | |
Public Member Functions inherited from SO | |
| SO (bool p_exec=false) | |
| Ctor. | |
| virtual | ~SO ()=default |
| Virtual dtor. | |
| bool | getExec () const |
| Getter for exec_. | |
| void | setExec (bool p_exec) |
| Setter for exec_. | |
| virtual size_t | getSize () const |
| Getter for the number of characters or number of objects. | |
| virtual SO * | clone () const |
| Creates a new instance as copy with deep cloning. | |
| virtual std::string | opequalequal () const |
| For operators '==' and 'pstack'. | |
Public Member Functions inherited from Counter< SO > | |
| Counter (Counter< SO > &&)=delete | |
| Counter< SO > & | operator= (const Counter< SO > &)=delete |
| Counter< SO > & | operator= (Counter< SO > &&)=delete |
Private Attributes | |
| __float128 | r_ |
| The real value as decimal number. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Counter< SO > | |
| static size_t | getTotalCounter () |
| Static getter for totaly created objects. | |
| static size_t | getAliveCounter () |
| Static getter for objects alive. | |
| static size_t | getWatermarkCounter () |
| Static getter for the object counter watermark. | |
Protected Member Functions inherited from Counter< SO > | |
| Counter () | |
| Ctor. | |
| Counter (const Counter< SO > &) | |
| Copy ctor. | |
| ~Counter () | |
| Dtor. | |
Protected Member Functions inherited from DbC | |
| virtual bool | invariant () const noexcept |
| Checks the invariants of the class in which it is defined. | |
Semantic Object Real.
A real number as a quad-precision floating-point number adhering to the IEEE 754-2008 standard,
featuring a 112-bit significand and a 15-bit exponent.
This format offers at least 33 bits of precision.
|
inlineoverridevirtual |
Creates a new instance as copy following the red book definition.
Implements SO.
|
inlineoverridevirtual |
Equality.
Equality means: SOL und SOM are always equal.
For SOD and SOK, share_ptr<> points to the same object.
For SOA, share_ptr<> points to the same object, but empty arrays are equal nonetheless.
For SOO and SOo the function pointer must be the same.
Otherwise the value must be the same, even for SOS with shared_ptr<>.
Implements SO.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
For operators '=', 'cvs' and 'stack'.
Reals are formated for output with a default precision of 10 digits.
The precision can be changed with the operator __rprecision.
Implements SO.
|
inlineoverridevirtual |
Returns an OTCode.
A "manual" implementation of polymorphism, where C++-polymorphisms fail
Implements SO.
|
inlineoverridevirtual |