Semantic Object.
More...
#include <so.h>
|
| SO (bool p_exec=false) |
| Ctor.
|
|
virtual | ~SO ()=default |
| Virtual dtor. More...
|
|
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. More...
|
|
virtual SO * | dup () const =0 |
| Creates a new instance as copy following the red book definition. More...
|
|
virtual SO * | clone () const |
| Creates a new instance as copy with deep cloning. More...
|
|
virtual std::string | opequal () const =0 |
| For operators '=', 'cvs' and 'stack'. More...
|
|
virtual std::string | opequalequal () const |
| For operators '==' and 'pstack'. More...
|
|
virtual OTCode | ot () const =0 |
| Returns an OTCode. More...
|
|
virtual std::string | type () const =0 |
| Returns a type name. More...
|
|
virtual bool | equal (const SO *) const =0 |
| Equality. More...
|
|
virtual bool | gt (const SO *) const |
| Greater than. More...
|
|
virtual bool | ge (const SO *) const |
| Greater or equal. More...
|
|
| Counter (Counter< SO > &&)=delete |
|
Counter< SO > & | operator= (const Counter< SO > &)=delete |
|
Counter< SO > & | operator= (Counter< SO > &&)=delete |
|
|
bool | exec_ |
| All SOs have executive vs literal attribut. More...
|
|
|
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. More...
|
|
Semantic Object.
- Invariant
- Global Invariants: No Instance. Forced by pure virtual functions.
◆ ~SO()
Virtual dtor.
For polymorphic containers.
◆ clone()
virtual SO * SO::clone |
( |
| ) |
const |
|
inlinevirtual |
Creates a new instance as copy with deep cloning.
Reimplemented in SOA, SOD, SOK, and SOS.
◆ dup()
virtual SO * SO::dup |
( |
| ) |
const |
|
pure virtual |
Creates a new instance as copy following the red book definition.
Implemented in SOA, SOD, SOK, SOQ, SOS, SOM, SOL, SOI, SOB, SOR, SON, and SOO.
◆ equal()
virtual bool SO::equal |
( |
const SO * |
| ) |
const |
|
pure virtual |
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
Implemented in SOA, SOD, SOK, SOQ, SOS, SOM, SOL, SOI, SOB, SOR, SON, and SOO.
◆ ge()
virtual bool SO::ge |
( |
const SO * |
| ) |
const |
|
inlinevirtual |
◆ getSize()
virtual size_t SO::getSize |
( |
| ) |
const |
|
inlinevirtual |
Getter for the number of characters or number of objects.
Reimplemented in SOA, SOD, SOK, SOS, and SON.
◆ gt()
virtual bool SO::gt |
( |
const SO * |
| ) |
const |
|
inlinevirtual |
◆ opequal()
virtual std::string SO::opequal |
( |
| ) |
const |
|
pure virtual |
For operators '=', 'cvs' and 'stack'.
Implemented in SOcomposite, SOQ, SOS, SOM, SOL, SOI, SOB, SOR, SON, and SOO.
◆ opequalequal()
virtual std::string SO::opequalequal |
( |
| ) |
const |
|
inlinevirtual |
For operators '==' and 'pstack'.
This function attempts to produce a result that resembles the red book syntax for creating the object.
Reimplemented in SOA, SOD, SOK, SOS, SOM, and SOL.
◆ ot()
virtual OTCode SO::ot |
( |
| ) |
const |
|
pure virtual |
Returns an OTCode.
A "manual" implementation of polymorphism, where C++-polymorphisms fail
- Returns
- OTCode ... The OTCode of the instance.
Implemented in SOA, SOD, SOK, SOQ, SOS, SOM, SOL, SOI, SOB, SOR, SON, SOO, and SOo.
◆ type()
virtual std::string SO::type |
( |
| ) |
const |
|
pure virtual |
Returns a type name.
- Returns
- std::string ... The type name of the instance.
Implemented in SOA, SOD, SOK, SOQ, SOS, SOM, SOL, SOI, SOB, SOR, SON, and SOO.
◆ exec_
All SOs have executive vs literal attribut.
But is has impact only for SON and SOA.
The documentation for this class was generated from the following file: