#include <Object.h>
◆ Object() [1/9]
object::Object::Object |
( |
const char * |
string | ) |
|
|
inlineexplicit |
Specialisation of the make method for c-strings.
◆ Object() [2/9]
template<class Type >
requires ( ! std::is_same_v < std::decay_t < Type >,
Object > )
object::Object::Object |
( |
Type && |
data | ) |
|
|
inlineexplicit |
Specialisation of the make method for objects that are not from the object hierarchy of Algorithms library.
◆ Object() [3/9]
template<class ... Types>
Specialisation of the make method for variants.
The resulting object is not constructed from the variant itself but from the value stored inside. If the value stored inside the variant is variant again, the process is repeated.
◆ Object() [4/9]
template<class ... Types>
object::Object::Object |
( |
const ext::variant< Types ... > & |
data | ) |
|
|
inlineexplicit |
Specialisation of the make method for variants.
The resulting object is not constructed from the variant itself but from the value stored inside. If the value stored inside the variant is variant again, the process is repeated.
◆ Object() [5/9]
template<class Type >
object::Object::Object |
( |
const AnyObject< Type > & |
data | ) |
|
|
inlineexplicit |
Constructor that wraps an object given by a constant reference. Uses clone of the parameter internally.
◆ Object() [6/9]
template<class Type >
object::Object::Object |
( |
AnyObject< Type > & |
data | ) |
|
|
inlineexplicit |
Constructor that wraps an object given by a reference. Uses clone of the parameter internally.
◆ Object() [7/9]
template<class Type >
object::Object::Object |
( |
AnyObject< Type > && |
data | ) |
|
|
inlineexplicit |
Constructor that wraps an object given by an r-value reference. Uses clone of the parameter internally.
◆ Object() [8/9]
Constructor that wraps an object given by constant reference. Uses clone of the parameter internally.
◆ Object() [9/9]
Constructor that wraps an object given by r-value reference. Uses clone of the parameter internally.
◆ getData() [1/2]
Gets the wrapped object.
- Returns
- wrapped object.
◆ getData() [2/2]
Gets the wrapped object.
- Returns
- wrapped object.
◆ getId()
unsigned object::Object::getId |
( |
| ) |
const |
|
inline |
Getter of unique identifier
- Returns
- the unique identifier
◆ operator std::string()
object::Object::operator std::string |
( |
| ) |
const |
|
inlineexplicit |
Casts the wrapped object to as compact as possible string representation.
- Returns
- string representation of the wrapped object
◆ operator++() [1/2]
Object & object::Object::operator++ |
( |
| ) |
|
|
inline |
Increments the unique counter of the object by one. Prefix version.
- Returns
- this instance
◆ operator++() [2/2]
Object object::Object::operator++ |
( |
int |
| ) |
|
|
inline |
Increments the unique counter of the object by one. Postfix version.
- Returns
- this instance
◆ operator+=()
Object object::Object::operator+= |
( |
unsigned |
by | ) |
|
|
inline |
Increments the unique counter of the object.
- Parameters
-
◆ operator<=>()
std::strong_ordering object::Object::operator<=> |
( |
const Object & |
other | ) |
const |
|
inline |
The three way comparison implementation
- Parameters
-
other | the other object to compare with. |
- Returns
- the strong ordering between this object and the
other
.
◆ operator==()
bool object::Object::operator== |
( |
const Object & |
other | ) |
const |
|
inline |
The equality comparison implementation.
- Parameters
-
other | the other object to compare with. |
- Returns
- true if this and other objects are equal, false othervise
◆ setData() [1/2]
Sets the wrapped object from r-value reference. Uses clone of the parameter internally.
◆ setData() [2/2]
Sets the wrapped object from constant reference. Uses clone of the parameter internally.
◆ operator<<
Print the wrapped object as raw representation to ostream.
- Parameters
-
os | ostream where to print |
instance | wrapper to print |
- Returns
- modified output stream
The documentation for this class was generated from the following file: