Ceylan::Clonable Class Reference

Interface that every object which can be cloned should implement. More...

#include <CeylanClonable.h>

Inheritance diagram for Ceylan::Clonable:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Clonable ()
 Basic constructor.
virtual ~Clonable () throw ()
 Virtual destructor.
virtual Clonableclone () 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.
Clonableoperator= (const Clonable &source)
 Assignment operator made private to ensure that it will never be called.


Detailed Description

Interface that every object which can be cloned should implement.

Definition at line 61 of file CeylanClonable.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Exceptions:
ClonableException whenever the cloning fails.

Referenced by Ceylan::SmartResourceManager< Key >::scanForAddition().

Clonable& Ceylan::Clonable::operator= ( const Clonable source  )  [private]

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.


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

Generated on Thu Jun 4 20:40:11 2009 for Ceylan by  doxygen 1.5.8