Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
object::AnyObjectBase Class Referenceabstract

#include <AnyObjectBase.h>

Inheritance diagram for object::AnyObjectBase:
[legend]

Public Member Functions

 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...
 
AnyObjectBaseoperator= (AnyObjectBase &&) noexcept=default
 Default move operator =. Needed because of default destructor. More...
 
AnyObjectBaseoperator= (const AnyObjectBase &)=default
 Default copy operator =. More...
 
virtual ~AnyObjectBase () noexcept=default
 To allow destruction in type hierarchy. More...
 
virtual AnyObjectBaseclone () const &=0
 Virtual copy constructor. More...
 
virtual AnyObjectBaseclone () &&=0
 Virtual copy constructor. More...
 
virtual std::strong_ordering operator<=> (const AnyObjectBase &other) const =0
 Virtual three way comparison operator. More...
 
virtual bool operator== (const AnyObjectBase &other) const =0
 Virtual equality comparison operator. More...
 
virtual void operator>> (ext::ostream &out) const =0
 Virtual print to stream. More...
 
virtual operator std::string () const =0
 Virtual to string cast operator. More...
 
virtual void increment (unsigned by)=0
 Increments the unique counter of the object. More...
 
virtual unsigned getId () const =0
 

Constructor & Destructor Documentation

◆ AnyObjectBase() [1/3]

object::AnyObjectBase::AnyObjectBase ( )
default

Default constructor. Needed because some constructor is specified.

◆ AnyObjectBase() [2/3]

object::AnyObjectBase::AnyObjectBase ( AnyObjectBase &&  )
defaultnoexcept

Default move constructor. Needed because of default destructor.

◆ AnyObjectBase() [3/3]

object::AnyObjectBase::AnyObjectBase ( const AnyObjectBase )
default

Default copy constructor.

◆ ~AnyObjectBase()

virtual object::AnyObjectBase::~AnyObjectBase ( )
virtualdefaultnoexcept

To allow destruction in type hierarchy.

Member Function Documentation

◆ clone() [1/2]

virtual AnyObjectBase * object::AnyObjectBase::clone ( ) &&
pure virtual

Virtual copy constructor.

Returns
dynamically allocated move constructed instance

Implemented in object::AnyObject< T >.

◆ clone() [2/2]

virtual AnyObjectBase * object::AnyObjectBase::clone ( ) const &
pure virtual

Virtual copy constructor.

Returns
dynamically allocated copy constructed instance

Implemented in object::AnyObject< T >.

Here is the caller graph for this function:

◆ getId()

virtual unsigned object::AnyObjectBase::getId ( ) const
pure virtual

Getter of unique identifier

Returns
the unique identifier

Implemented in object::AnyObject< T >.

Here is the caller graph for this function:

◆ increment()

virtual void object::AnyObjectBase::increment ( unsigned  by)
pure virtual

Increments the unique counter of the object.

Parameters
byhow much to increment

Implemented in object::AnyObject< T >.

Here is the caller graph for this function:

◆ operator std::string()

virtual object::AnyObjectBase::operator std::string ( ) const
explicitpure virtual

Virtual to string cast operator.

Implemented in object::AnyObject< T >.

◆ operator<=>()

virtual std::strong_ordering object::AnyObjectBase::operator<=> ( const AnyObjectBase other) const
pure virtual

Virtual three way comparison operator.

Parameters
otherthe other instance
Returns
negative if this < other, zero if this == other, positive if this > other

Implemented in object::AnyObject< T >.

◆ operator=() [1/2]

AnyObjectBase & object::AnyObjectBase::operator= ( AnyObjectBase &&  )
defaultnoexcept

Default move operator =. Needed because of default destructor.

◆ operator=() [2/2]

AnyObjectBase & object::AnyObjectBase::operator= ( const AnyObjectBase )
default

Default copy operator =.

◆ operator==()

virtual bool object::AnyObjectBase::operator== ( const AnyObjectBase other) const
pure virtual

Virtual equality comparison operator.

Parameters
otherthe other instance
Returns
negative if this < other, zero if this == other, positive if this > other

Implemented in object::AnyObject< T >.

◆ operator>>()

virtual void object::AnyObjectBase::operator>> ( ext::ostream out) const
pure virtual

Virtual print to stream.

Parameters
outthe stream instance

Implemented in object::AnyObject< T >.


The documentation for this class was generated from the following file: