Loading...
Searching...
No Matches
interfaces.hh
Go to the documentation of this file.
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
#ifndef DUNE_INTERFACES_HH
#define DUNE_INTERFACES_HH
namespace Dune {
struct Cloneable {
virtual Cloneable* clone() const = 0;
virtual ~Cloneable() = default;
};
} // end namespace Dune
#endif
Dune
Dune namespace
Definition alignedallocator.hh:13
Dune::Cloneable
An interface class for cloneable objects.
Definition interfaces.hh:16
Dune::Cloneable::~Cloneable
virtual ~Cloneable()=default
Destructor.
Dune::Cloneable::clone
virtual Cloneable * clone() const =0
Clones the object clone needs to be redefined by an implementation class, with the return type covari...