|
| | SOS (const std::string &p_str) |
| | Ctor from string reference.
|
| |
|
| SOS (const SOS &p_other) |
| | Copy ctor.
|
| |
| | SOS (const SOshptr &p_other, const std::string &p_str) |
| | Ctor from parent class.
|
| |
|
| ~SOS () override |
| | Dtor.
|
| |
|
| SOS (SOS &&)=delete |
| |
|
SOS & | operator= (const SOS &)=delete |
| |
|
SOS & | operator= (SOS &&)=delete |
| |
|
std::string | getString () const |
| | Getter for the string value.
|
| |
| std::string & | getStringRef () |
| | Getter for reference to the string value.
|
| |
| SOS * | dup () const override |
| | Creates a new instance as copy following the red book definition.
|
| |
| SOS * | clone () const override |
| | Creates a new instance as copy with deep cloning.
|
| |
| std::string | opequal () const override |
| | String representation of object for operators '=', 'cvs' and 'stack'.
|
| |
| std::string | opequalequal () const override |
| | String representation for operators '==' and 'pstack'.
|
| |
| OTCode | ot () const override |
| | Returns an OTCode.
|
| |
| std::string_view | 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.
|
| |
| size_t | getSize () const override |
| | Returns the size of the SO.
|
| |
| void | putCh (size_t p_index, int p_char) |
| | Sets a single character within the string.
|
| |
|
void | erase0 () |
| | Erases the fist character of the String.
|
| |
| void | replace (size_t p_pos, const std::string &p_src) |
| | Replaces characters at position p_pos.
|
| |
| std::string | opequal () const override |
| | String representation of object for operators '=', 'cvs' and 'stack'.
|
| |
| bool | equal (const SO *p_other) const override |
| | Checks if this SO is equal to another SO.
|
| |
|
| SO () |
| | Ctor.
|
| |
| | SO (bool p_exec) |
| | Ctor.
|
| |
|
| SO (const SO &p_other) |
| | Copy ctor.
|
| |
|
| SO (SO &&)=delete |
| |
|
| SO () |
| | Ctor.
|
| |
| | SO (bool p_exec) |
| | Ctor.
|
| |
|
| SO (const SO &p_other) |
| | Copy ctor.
|
| |
| virtual | ~SO ()=default |
| | 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_.
|
| |
|
| Counter (Counter< SO > &&)=delete |
| |
|
Counter< SO > & | operator= (const Counter< SO > &)=delete |
| |
|
Counter< SO > & | operator= (Counter< SO > &&)=delete |
| |
| bool SOS::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<>.
- Precondition
- parameter != nullptr
- 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.