Semantic Object Integer.
More...
#include <sosimp.h>
|
|
| SOI (const std::string &p_s) |
| | Ctor.
|
| |
|
| SOI (__int128 p_i) |
| | Ctor.
|
| |
|
__int128 | getInteger () const |
| | Getter for the integer value.
|
| |
|
void | setInteger (__int128 p_i) |
| | Setter for the integer value.
|
| |
| SOI * | 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 | decrement () |
| | Decrement.
|
| |
|
void | increment () |
| | Increment.
|
| |
|
| 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'.
|
| |
|
| Counter (Counter< SO > &&)=delete |
| |
|
Counter< SO > & | operator= (const Counter< SO > &)=delete |
| |
|
Counter< SO > & | operator= (Counter< SO > &&)=delete |
| |
|
|
__int128 | i_ |
| | The 128 bit integer.
|
| |
|
|
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.
|
| |
|
| Counter () |
| | Ctor.
|
| |
|
| Counter (const Counter< SO > &) |
| | Copy ctor.
|
| |
|
| ~Counter () |
| | Dtor.
|
| |
| virtual bool | invariant () const noexcept |
| | Checks the invariants of the class in which it is defined.
|
| |
Semantic Object Integer.
A 128-bit two's complement integer, thus -2^127 to 2^127-1
- Invariant
- None.
◆ dup()
Creates a new instance as copy following the red book definition.
Implements SO.
◆ equal()
| bool SOI::equal |
( |
const SO * |
| ) |
const |
|
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<>.
- 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
Implements SO.
◆ ge()
| bool SOI::ge |
( |
const SO * |
| ) |
const |
|
inlineoverridevirtual |
Greater or equal.
Will be overwritten for SOI, SOR, SOQ and SOS. The redundancy between equal(), gt() and ge() ist a matter of performance.
Reimplemented from SO.
◆ gt()
| bool SOI::gt |
( |
const SO * |
| ) |
const |
|
inlineoverridevirtual |
Greater than.
Will be overwritten for SOI, SOR, SOQ and SOS. The redundancy between equal(), gt() and ge() ist a matter of performance.
Reimplemented from SO.
◆ opequal()
| std::string SOI::opequal |
( |
| ) |
const |
|
inlineoverridevirtual |
For operators '=', 'cvs' and 'stack'.
Implements SO.
◆ ot()
Returns an OTCode.
A "manual" implementation of polymorphism, where C++-polymorphisms fail
- Returns
- OTCode ... The OTCode of the instance.
Implements SO.
◆ type()
| std::string SOI::type |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns a type name.
- Returns
- std::string ... The type name of the instance.
Implements SO.
The documentation for this class was generated from the following file: