Kagome
Polkadot Runtime Engine in C++17
compartment_wrapper.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_RUNTIME_WAVM_IMPL_COMPARTMENT_WRAPPER_HPP
7 #define KAGOME_CORE_RUNTIME_WAVM_IMPL_COMPARTMENT_WRAPPER_HPP
8 
9 #include <memory>
10 #include <string>
11 
12 namespace WAVM::Runtime {
13  struct Compartment;
14 }
15 
16 namespace kagome::runtime::wavm {
17 
18  struct CompartmentWrapperImpl;
19 
24  class CompartmentWrapper final {
25  public:
26  CompartmentWrapper(std::string &&name);
28 
29  WAVM::Runtime::Compartment *getCompartment() const;
30 
31  private:
32  std::shared_ptr<CompartmentWrapperImpl> impl_;
33  };
34 
35 } // namespace kagome::runtime::wavm
36 
37 #endif // KAGOME_CORE_RUNTIME_WAVM_IMPL_COMPARTMENT_WRAPPER_HPP
std::shared_ptr< CompartmentWrapperImpl > impl_