#include <Teko_CloneFactory.hpp>
Public Member Functions | |
AutoClone () | |
virtual Teuchos::RCP< Cloneable > | clone () const |
Class that provides an easy way to create a cloneable class. All that is required is that the user implements a default constructor. This also serves as a model for creating other AutoClone-like interfaces.
The template parameter CloneType
describes the type of cloned object to returned. An object returned from AutoClone::clone
will be typed as CloneType
. The BaseType
is the parent type of the cloned object created. It is included, with default AutoCloneDummy
, so that no instantiaions of CloneType
are unnecessarily created.
Definition at line 93 of file Teko_CloneFactory.hpp.
|
inline |
Simple default constructor, calls the default constructor of BaseType
Definition at line 100 of file Teko_CloneFactory.hpp.
|
inlinevirtual |
Function that clones this object. This is not neccessarily a copy, but it is an object of the same dynamic type.
Implements Teko::Cloneable.
Definition at line 111 of file Teko_CloneFactory.hpp.