The MAUVE Toolchain
WithCore.hpp
1 /*
2  * Copyright 2017 ONERA
3  *
4  * This file is part of the MAUVE Runtime project.
5  *
6  * MAUVE Runtime is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License version 3 as
8  * published by the Free Software Foundation.
9  *
10  * MAUVE Runtime is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with MAUVE. If not, see <https://www.gnu.org/licenses/lgpl-3.0>.
17  */
18 #ifndef MAUVE_RUNTIME_WITH_CORE_HPP
19 #define MAUVE_RUNTIME_WITH_CORE_HPP
20 
21 #include "WithShell.hpp"
22 
23 namespace mauve {
24  namespace runtime {
25 
29  template <typename CORE>
30  struct WithCore {
32  virtual CORE & core () const = 0;
34  virtual CORE * core_ptr () const = 0;
36  virtual bool clear_core () = 0;
37  };
38 
43  template <typename SHELL, typename CORE>
44  struct WithShellAndCore: virtual public WithShell<SHELL>, virtual public WithCore<CORE> {
45  };
46 
47  };
48 }
49 
50 #endif
virtual bool clear_core()=0
Clear the Core.
Object with a Shell.
Definition: WithShell.hpp:28
Objects wite a Shell and a Core.
Definition: WithCore.hpp:44
The MAUVE namespace.
Definition: tracing.hpp:24
virtual CORE & core() const =0
Get the Core.
Object with a Core.
Definition: WithCore.hpp:30
virtual CORE * core_ptr() const =0
Get a pointer to the Core.