Interface that every object which can be cloned should implement. More...
#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. | |
Interface that every object which can be cloned should implement.
Definition at line 61 of file CeylanClonable.h.
| Ceylan::Clonable::Clonable | ( | ) | [inline] |
Basic constructor.
Definition at line 68 of file CeylanClonable.h.
| virtual Ceylan::Clonable::~Clonable | ( | ) | throw () [inline, virtual] |
Virtual destructor.
Definition at line 75 of file CeylanClonable.h.
| 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.
1.6.3