|
| | SOR (const std::string &p_s) |
| | Ctor from a string representation.
|
| |
| | SOR (__float128 p_r) |
| | Ctor from a float.
|
| |
|
| ~SOR () override |
| | Dtor.
|
| |
|
| SOR (const SOR &)=delete |
| |
|
| SOR (SOR &&)=delete |
| |
|
SOR & | operator= (const SOR &)=delete |
| |
|
SOR & | operator= (SOR &&)=delete |
| |
|
__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 |
| | String representation of object for operators '=', 'cvs' and 'stack'. Reals are formated for output with a default precision of 10 digits.
|
| |
| OTCode | ot () const override |
| | Returns an OTCode.
|
| |
| std::string | type () const override |
| | Returns a type name.
|
| |
| bool | equal (const SO *p_other) const override |
| | Checks if this SO is equal to another SO.
|
| |
| bool | gt (OpError &p_ec, const SO *p_other) const override |
| | Greater than.
|
| |
| bool | ge (OpError &p_ec, const SO *p_other) const override |
| | Greater or equal.
|
| |
|
void | trunc () |
| | In place trunc().
|
| |
|
void | ceil () |
| | In place ceil().
|
| |
|
void | floor () |
| | In place floor().
|
| |
| OpError | reciprocal () |
| | In place reciprocal.
|
| |
|
| SO () |
| | Ctor.
|
| |
| | SO (bool p_exec) |
| | Ctor.
|
| |
|
| SO (const SO &p_other) |
| | Copy ctor.
|
| |
| virtual | ~SO () |
| | Virtual dtor.
|
| |
|
| SO (SO &&)=delete |
| |
|
SO & | operator= (const SO &)=delete |
| |
|
SO & | operator= (SO &&)=delete |
| |
|
bool | getExec () const |
| | Getter for exec_.
|
| |
|
void | setExec (bool p_exec) |
| | Setter for exec_.
|
| |
| virtual size_t | getSize () const |
| | Returns the size of the SO.
|
| |
| virtual SO * | clone () const |
| | Creates a new instance as copy with deep cloning.
|
| |
| virtual std::string | opequalequal () const |
| | String representation for operators '==' and 'pstack'.
|
| |
|
| Counter (Counter< SO > &&)=delete |
| |
|
Counter< SO > & | operator= (const Counter< SO > &)=delete |
| |
|
Counter< SO > & | operator= (Counter< SO > &&)=delete |
| |
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.
- Invariant
- None.
| bool SOR::equal |
( |
const SO * |
p_other | ) |
const |
|
inlineoverridevirtual |
Checks if this SO is equal to another SO.
Equality means:
SOL und SOM are always equal.
For SOD, SOF 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<>.
- Returns
- bool ... true if the SO's are of the same type and equal
- See also
- Will be used directly and unchanged as operator eq
- Parameters
-
| [in] | p_other | The object to compare with. |
Implements SO.