#include <CeylanClonable.h>
Public Member Functions | |
Clonable () | |
Basic constructor. | |
virtual | ~Clonable () throw () |
Virtual destructor. | |
virtual Clonable & | clone () const =0 |
Returns a clone of this object. | |
Private Member Functions | |
Clonable (const Clonable &source) | |
Copy constructor made private to ensure that it will never be called. | |
Clonable & | operator= (const Clonable &source) |
Assignment operator made private to ensure that it will never be called. |
Definition at line 61 of file CeylanClonable.h.
Ceylan::Clonable::Clonable | ( | ) | [inline] |
virtual Ceylan::Clonable::~Clonable | ( | ) | throw () [inline, virtual] |
Ceylan::Clonable::Clonable | ( | const Clonable & | source | ) | [private] |
Copy constructor made private to ensure that it will never be called.
The compiler should complain whenever this undefined constructor is called, implicitly or not.
virtual Clonable& Ceylan::Clonable::clone | ( | ) | const [pure virtual] |
Returns a clone of this object.
The ownership of the clone is transferred to the caller, who therefore shall delete the clone when appropriate.
ClonableException | whenever the cloning fails. |
Referenced by Ceylan::SmartResourceManager< Key >::scanForAddition().
Assignment operator made private to ensure that it will never be called.
The compiler should complain whenever this undefined operator is called, implicitly or not.