Om
Public Member Functions | Private Member Functions | Friends | List of all members
Om::Copyable Class Referenceabstract

An object that can be passed to Copy to be copied. More...

#include "copyable.hpp"

+ Inheritance diagram for Om::Copyable:

Public Member Functions

virtual ~Copyable ()=0
 
virtual std::auto_ptr< CopyableCopy () const =0
 

Private Member Functions

Copyableoperator= (Copyable const &)
 

Friends

template<typename TheCopyable >
std::auto_ptr< TheCopyable > Copy (TheCopyable const &)
 

Detailed Description

Definition at line 34 of file copyable.hpp.

Constructor & Destructor Documentation

◆ ~Copyable()

virtual Om::Copyable::~Copyable ( )
pure virtual

Member Function Documentation

◆ Copy()

virtual std::auto_ptr<Copyable> Om::Copyable::Copy ( ) const
pure virtual
Returns
An owner pointer to a copy.

Implemented in Om::DefaultCopyable< ThisImplementation, ThisInterface >.

◆ operator=()

Copyable& Om::Copyable::operator= ( Copyable const &  )
private

Friends And Related Function Documentation

◆ Copy

template<typename TheCopyable >
std::auto_ptr<TheCopyable> Copy ( TheCopyable const &  )
friend
Returns
A polymorphic copy of the object.

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