ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
anna::Cloneable Class Referenceabstract

#include <Cloneable.hpp>

Inheritance diagram for anna::Cloneable:
Inheritance graph
[legend]
Collaboration diagram for anna::Cloneable:
Collaboration graph
[legend]

Public Member Functions

virtual ~Cloneable ()
 
virtual Cloneableclone () const =0
 
- Public Member Functions inherited from anna::AutoPointer
virtual ~AutoPointer ()
 
WhenFinished::_v getWhenFinished () const
 
void setWhenFinished (const WhenFinished::_v whenFinished)
 
virtual String asString () const
 

Static Public Member Functions

static const char * className ()
 
- Static Public Member Functions inherited from anna::AutoPointer
template<typename T >
static T * release (T &instance)
 
template<typename T >
static T * release (T *instance)
 
static const char * className ()
 

Protected Member Functions

 Cloneable (const WhenFinished::_v whenFinished=WhenFinished::Ignore)
 
 Cloneable (const Cloneable &other)
 
- Protected Member Functions inherited from anna::AutoPointer
 AutoPointer (const WhenFinished::_v whenFinished)
 

Detailed Description

Clase de la que deben heredar todas las clases con capacidades de clonado.

La clase que implemente este interface debe invocar a alguno de las macros que facilitan la implementación de los métodos virtuales requeridos.

See also
clone_final clone_default clone_abstract

Constructor & Destructor Documentation

◆ ~Cloneable()

virtual anna::Cloneable::~Cloneable ( )
inlinevirtual

Destructor.

32 {;}
Here is the call graph for this function:

◆ Cloneable() [1/2]

anna::Cloneable::Cloneable ( const WhenFinished::_v  whenFinished = WhenFinished::Ignore)
inlineprotected

Constructor

Parameters
whenFinishedIndica que operación a realizar cuando se invoque a anna::Cloneable::release.
51 : AutoPointer(whenFinished) {;}
AutoPointer(const WhenFinished::_v whenFinished)
Definition: AutoPointer.hpp:98

◆ Cloneable() [2/2]

anna::Cloneable::Cloneable ( const Cloneable other)
inlineprotected

Constructor copia.

Parameters
otherInstancia de la que copiar.
Warning
la instancia generada con este constructor establecerá que al invocar a anna::Cloneable::release se invocará al operador delete de esta instancia.
AutoPointer(const WhenFinished::_v whenFinished)
Definition: AutoPointer.hpp:98
Definition: AutoPointer.hpp:32

Member Function Documentation

◆ className()

static const char* anna::Cloneable::className ( )
inlinestatic

Devuelve el nombre lógico de esta clase.

Returns
el nombre lógico de esta clase.
44 { return "Cloneable"; }

◆ clone()

virtual Cloneable* anna::Cloneable::clone ( ) const
pure virtual

Genera de esta instancia. Por cada clon generado habrá que invocar a release.

Returns
Un clon de la instancia recibida

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