/usr/include/dune/common/interfaces.hh is in libdune-common-dev 2.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | // -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set ts=8 sw=2 et sts=2:
#ifndef DUNE_INTERFACES_HH
#define DUNE_INTERFACES_HH
/** @file
@author Robert Kloefkorn
@brief Provides 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
|