Dune Core Modules (unstable)

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// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5#ifndef DUNE_INTERFACES_HH
6#define DUNE_INTERFACES_HH
7
13namespace Dune {
14
16 struct Cloneable {
17
23 virtual Cloneable* clone() const = 0;
24
26 virtual ~Cloneable() = default;
27
28 };
29
30} // end namespace Dune
31#endif
Dune namespace.
Definition: alignedallocator.hh:13
An interface class for cloneable objects.
Definition: interfaces.hh:16
virtual ~Cloneable()=default
Destructor.
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 (Dec 21, 23:30, 2024)