| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/importable.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <functional> |
| 7 | #include <optional> |
| 8 | |
| 9 | class Itemcxx . . $ Item#; |
| 10 | |
| 11 | class Importablecxx . . $ Importable# |
| 12 | { |
| 13 | public: |
| 14 | class Importercxx . . $ Importable#Importer# |
| 15 | { |
| 16 | public: |
| 17 | virtual stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 18 | provideImportercxx . . $ Importable#Importer#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) = 0; |
| 19 | |
| 20 | virtual ~cxx . . $ Importable#Importer#`~Importer`(ced63f7c635d850d).Importercxx . . $ Importable#Importer#() = default; |
| 21 | }; |
| 22 | |
| 23 | virtual void importWithcxx . . $ Importable#importWith(94eddebf9440278).(Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer# &i) = 0; |
| 24 | |
| 25 | virtual ~cxx . . $ Importable#`~Importable`(ced63f7c635d850d).Importablecxx . . $ Importable#() = default; |
| 26 | }; |