|
Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Represents an adaptor of any type to a class in type hierarchy of objects in the algorithms library. More...
#include <AnyObject.h>
Public Member Functions | |
| AnyObject (T, unsigned id=0) | |
| Constructor of the class based on the value of the wrapped object. More... | |
| AnyObjectBase * | clone () const &override |
| Virtual copy constructor. ( ) const & More... | |
| AnyObjectBase * | clone () &&override |
| Virtual copy constructor. ( ) && More... | |
| std::strong_ordering | operator<=> (const AnyObjectBase &other) const override |
| <=> ( const AnyObjectBase & ) const More... | |
| std::strong_ordering | operator<=> (const AnyObject< T > &other) const |
| bool | operator== (const AnyObjectBase &other) const override |
| == ( const AnyObjectBase & ) const More... | |
| bool | operator== (const AnyObject &other) const |
| void | operator>> (ext::ostream &out) const override |
| >> ( ext::ostream & ) const More... | |
| operator std::string () const override | |
| std::string ( ) const More... | |
| void | increment (unsigned by) override |
| Increments the unique counter of the object. ( ) const More... | |
| const T & | getData () const |
| unsigned | getId () const override |
| ( ) const More... | |
Public Member Functions inherited from object::AnyObjectBase | |
| AnyObjectBase ()=default | |
| Default constructor. Needed because some constructor is specified. More... | |
| AnyObjectBase (AnyObjectBase &&) noexcept=default | |
| Default move constructor. Needed because of default destructor. More... | |
| AnyObjectBase (const AnyObjectBase &)=default | |
| Default copy constructor. More... | |
| AnyObjectBase & | operator= (AnyObjectBase &&) noexcept=default |
| Default move operator =. Needed because of default destructor. More... | |
| AnyObjectBase & | operator= (const AnyObjectBase &)=default |
| Default copy operator =. More... | |
| virtual | ~AnyObjectBase () noexcept=default |
| To allow destruction in type hierarchy. More... | |
Represents an adaptor of any type to a class in type hierarchy of objects in the algorithms library.
| T | the type of the wrapped object. |
|
explicit |
Constructor of the class based on the value of the wrapped object.
| data | the object to be wrapped |
|
overridevirtual |
Virtual copy constructor. ( ) &&
Implements object::AnyObjectBase.
|
overridevirtual |
Virtual copy constructor. ( ) const &
Implements object::AnyObjectBase.
| const T & object::AnyObject< T >::getData |
Getter of the wrapped object
|
inlineoverridevirtual |
( ) const
Getter of unique identifier
Implements object::AnyObjectBase.
|
inlineoverridevirtual |
Increments the unique counter of the object. ( ) const
| by | how much to increment ( ) const |
Implements object::AnyObjectBase.
|
explicitoverridevirtual |
std::string ( ) const
std::string ( ) const
Implements object::AnyObjectBase.
|
inline |
The actual three way comparison implementation
| other | the other instance |
|
inlineoverridevirtual |
<=> ( const AnyObjectBase & ) const
<=> ( const AnyObjectBase & ) const
Implements object::AnyObjectBase.
|
inline |
The actual equality comparsion implemention
| other | the other instance |
|
inlineoverridevirtual |
== ( const AnyObjectBase & ) const
== ( const AnyObjectBase & ) const
Implements object::AnyObjectBase.
|
overridevirtual |