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