bpp-core3  3.0.0
Clonable.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_CLONABLE_H
6 #define BPP_CLONABLE_H
7 
8 
53 namespace bpp
54 {
63 class Clonable
64 {
65 public:
66  virtual ~Clonable() = default;
67 
71  virtual Clonable* clone() const = 0;
72 };
73 } // namespace bpp
74 #endif // BPP_CLONABLE_H
virtual ~Clonable()=default
virtual Clonable * clone() const =0
Create a copy of this object and send a pointer to it.
The Clonable interface (allow an object to be cloned).
Definition: Clonable.h:63