torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::Cloneable< _CloneableType > Class Template Referenceabstract

Represents all EOM classes that can be cloned(copied). More...

#include <Cloneable.hpp>

Public Member Functions

virtual ~Cloneable () throw ()
 
virtual boost::shared_ptr
< _CloneableType > 
clone ()=0
 

Protected Member Functions

 Cloneable ()
 

Private Member Functions

 Cloneable (const Cloneable< _CloneableType > &source)
 
Cloneable< _CloneableType > & operator= (const Cloneable< _CloneableType > &source)
 

Detailed Description

template<class _CloneableType>
class torc::generic::Cloneable< _CloneableType >

Represents all EOM classes that can be cloned(copied).

The Cloneable class defines a method called clone() that is overridden by derived classes to provide a polymorphic copy operation.

Definition at line 41 of file Cloneable.hpp.

Constructor & Destructor Documentation

template<class _CloneableType >
torc::generic::Cloneable< _CloneableType >::Cloneable ( )
protected

Constructor to be used by inheriting classes

Definition at line 75 of file Cloneable.hpp.

75 {}
template<class _CloneableType >
torc::generic::Cloneable< _CloneableType >::~Cloneable ( )
throw (
)
virtual

Definition at line 77 of file Cloneable.hpp.

77 {}
template<class _CloneableType>
torc::generic::Cloneable< _CloneableType >::Cloneable ( const Cloneable< _CloneableType > &  source)
private

Member Function Documentation

template<class _CloneableType>
virtual boost::shared_ptr<_CloneableType> torc::generic::Cloneable< _CloneableType >::clone ( )
pure virtual

Create a copy of this object. This method is polymorphic.

Returns
Pointer to a copy of this object
template<class _CloneableType>
Cloneable<_CloneableType>& torc::generic::Cloneable< _CloneableType >::operator= ( const Cloneable< _CloneableType > &  source)
private

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