Skip to content
Snippets Groups Projects
Commit f72ad6b3 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Interfaces is back again - containing only the Cloneable interface.

We'll need this for virtual shapefunctions.

[[Imported from SVN: r5628]]
parent 3c128240
No related branches found
No related tags found
No related merge requests found
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_INTERFACES_HH
#define DUNE_INTERFACES_HH
/** @file
@author Robert Kloefkorn
@brief Provides a Interfaces for detection of specific behavior
*/
namespace Dune {
//! An interface class for cloneable objects
struct Cloneable {
/** \brief Clones the object
* clone needs to be redefined by an implementation class, with the
* return type covariantly adapted. Remember to
* delete the resulting pointer.
*/
virtual Cloneable* clone() const = 0;
/** \brief Destructor */
virtual ~Cloneable()
{}
};
} // end namespace Dune
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment