| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/profilepartprovider.cpp`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include "profilepartprovider.h"cxx . . $ `<file>/src/core/profilepartprovider.h`/ |
| 5 | |
| 6 | #include <utility> |
| 7 | |
| 8 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#>()>> const & |
| 9 | ProfilePartProvidercxx . . $ ProfilePartProvider#::profilePartProviderscxx . . $ ProfilePartProvider#profilePartProviders(ff6d5c41554e1765).() const |
| 10 | { |
| 11 | return profilePartProviders_cxx . . $ ProfilePartProvider#profilePartProviders_(67929b0a4c2c7b7f).(); |
| 12 | } |
| 13 | |
| 14 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#>()>> & |
| 15 | ProfilePartProvidercxx . . $ ProfilePartProvider#::profilePartProviders_cxx . . $ ProfilePartProvider#profilePartProviders_(67929b0a4c2c7b7f).() |
| 16 | { |
| 17 | static stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, |
| 18 | stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#>()>> |
| 19 | providerscxx . . $ std/unordered_map#unordered_map(49f6e7a06ebc5aa8).; |
| 20 | return providers; |
| 21 | } |
| 22 | |
| 23 | bool ProfilePartProvidercxx . . $ ProfilePartProvider#::registerProvidercxx . . $ ProfilePartProvider#registerProvider(f190789c485b6dcd).( |
| 24 | stdcxx . . $ std/::string_viewcxx . . $ std/string_view# componentID, |
| 25 | stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#>()> &&provider) |
| 26 | { |
| 27 | profilePartProviders_cxx . . $ ProfilePartProvider#profilePartProviders_(67929b0a4c2c7b7f).().emplacecxx . . $ std/unordered_map#emplace(8e800962ae7274b6).(stdcxx . . $ std/::stringcxx . . $ std/string#(componentID), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(provider)); |
| 28 | return true; |
| 29 | } |