| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/gpuprofilepart.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "igpu.h"cxx . . $ `<file>/src/core/components/igpu.h`/ |
| 7 | #include "igpuprofilepart.h"cxx . . $ `<file>/src/core/components/igpuprofilepart.h`/ |
| 8 | #include <memory> |
| 9 | #include <optional> |
| 10 | #include <string> |
| 11 | #include <vector> |
| 12 | |
| 13 | class GPUProfilePartcxx . . $ GPUProfilePart# final |
| 14 | : public IGPUProfilePartcxx . . $ IGPUProfilePart# |
| 15 | , public IGPUcxx . . $ IGPU#::Importercxx . . $ ISysComponent#Importer# |
| 16 | { |
| 17 | public: |
| 18 | GPUProfilePartcxx . . $ GPUProfilePart#GPUProfilePart(ced63f7c635d850d).() noexcept; |
| 19 | |
| 20 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> |
| 21 | factorycxx . . $ GPUProfilePart#factory(af48dc8d4887b70c).(IProfilePartProvidercxx . . $ IProfilePartProvider# const &profilePartProvider) override; |
| 22 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> initializercxx . . $ GPUProfilePart#initializer(6b4e1016740e578).() override; |
| 23 | |
| 24 | stdcxx . . $ std/::stringcxx . . $ std/string# const &IDcxx . . $ GPUProfilePart#ID(f4fff0029955a25f).() const override; |
| 25 | |
| 26 | bool belongsTocxx . . $ GPUProfilePart#belongsTo(744b9d71fca8c8b7).(Itemcxx . . $ Item# const &i) const override; |
| 27 | stdcxx . . $ std/::stringcxx . . $ std/string# const &keycxx . . $ GPUProfilePart#key(f4fff0029955a25f).() const override; |
| 28 | |
| 29 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 30 | provideImportercxx . . $ GPUProfilePart#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) override; |
| 31 | |
| 32 | bool provideActivecxx . . $ GPUProfilePart#provideActive(50ce9a9e25b4a850).() const override; |
| 33 | |
| 34 | protected: |
| 35 | void importProfilePartcxx . . $ GPUProfilePart#importProfilePart(d62b6a6dfe9fe695).(IProfilePartcxx . . $ IProfilePart#::Importercxx . . $ IProfilePart#Importer# &i) override; |
| 36 | void exportProfilePartcxx . . $ GPUProfilePart#exportProfilePart(702e13e8794d0da4).(IProfilePartcxx . . $ IProfilePart#::Exportercxx . . $ IProfilePart#Exporter# &e) const override; |
| 37 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#> cloneProfilePartcxx . . $ GPUProfilePart#cloneProfilePart(1378fcc1caef3e7b).() const override; |
| 38 | |
| 39 | private: |
| 40 | void updateKeycxx . . $ GPUProfilePart#updateKey(49f6e7a06ebc5aa8).(); |
| 41 | |
| 42 | class Factorycxx . . $ GPUProfilePart#Factory#; |
| 43 | class Initializercxx . . $ GPUProfilePart#Initializer#; |
| 44 | |
| 45 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#>> parts_cxx . . $ GPUProfilePart#parts_.; |
| 46 | stdcxx . . $ std/::stringcxx . . $ std/string# const id_cxx . . $ GPUProfilePart#id_.; |
| 47 | stdcxx . . $ std/::stringcxx . . $ std/string# deviceID_cxx . . $ GPUProfilePart#deviceID_.; |
| 48 | stdcxx . . $ std/::stringcxx . . $ std/string# revision_cxx . . $ GPUProfilePart#revision_.; |
| 49 | stdcxx . . $ std/::stringcxx . . $ std/string# key_cxx . . $ GPUProfilePart#key_.; |
| 50 | int index_cxx . . $ GPUProfilePart#index_.{0}; |
| 51 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> uniqueID_cxx . . $ GPUProfilePart#uniqueID_.; |
| 52 | |
| 53 | static bool const registered_cxx . . $ GPUProfilePart#registered_.; |
| 54 | }; |