Dune Core Modules (2.5.2)

interfaces.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_INTERFACES_HH
4#define DUNE_INTERFACES_HH
5
11namespace Dune {
12
14 struct Cloneable {
15
21 virtual Cloneable* clone() const = 0;
22
24 virtual ~Cloneable()
25 {}
26
27 };
28
29} // end namespace Dune
30#endif
Dune namespace.
Definition: alignment.hh:11
An interface class for cloneable objects.
Definition: interfaces.hh:14
virtual ~Cloneable()
Destructor.
Definition: interfaces.hh:24
virtual Cloneable * clone() const =0
Clones the object clone needs to be redefined by an implementation class, with the return type covari...
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)