| 1 | /* |
| 2 | * %injeqt copyright begin% |
| 3 | * Copyright 2014 Rafał Malinowski ([email protected]) |
| 4 | * %injeqt copyright end% |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2.1 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | */ |
| 20 | |
| 21 | #include "provider-ready-configuration.h"cxx . . $ `<file>/src/internal/provider-ready-configuration.h`/ |
| 22 | |
| 23 | #include "provider-ready.h"cxx . . $ `<file>/src/internal/provider-ready.h`/ |
| 24 | |
| 25 | #include <cassert> |
| 26 | |
| 27 | namespace injeqtcxx . . $ injeqt/ { namespace internalcxx . . $ injeqt/internal/ { |
| 28 | |
| 29 | provider_ready_configurationcxx . . $ injeqt/internal/provider_ready_configuration#::provider_ready_configurationcxx . . $ injeqt/internal/provider_ready_configuration#provider_ready_configuration(9ea1470f0de69db5).(typecxx . . $ injeqt/v1/type# object_type, QObjectcxx . . $ QObject# *object) : |
| 30 | _object_typecxx . . $ injeqt/internal/provider_ready_configuration#_object_type.{stdcxx . . $ std/::movecxx . . $ std/move(e7c6c0c8363dcc46).(object_type)}, |
| 31 | _objectcxx . . $ injeqt/internal/provider_ready_configuration#_object.{object} |
| 32 | { |
| 33 | assertcxx . . $ `/usr/include/assert.h:102:11`!(!_object_type.is_empty()); |
| 34 | } |
| 35 | |
| 36 | provider_ready_configurationcxx . . $ injeqt/internal/provider_ready_configuration#::~cxx . . $ injeqt/internal/provider_ready_configuration#`~provider_ready_configuration`(49f6e7a06ebc5aa8).provider_ready_configurationcxx . . $ injeqt/internal/provider_ready_configuration#() |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<typecxx . . $ injeqt/v1/type#> provider_ready_configurationcxx . . $ injeqt/internal/provider_ready_configuration#::typescxx . . $ injeqt/internal/provider_ready_configuration#types(cf3a392ed5d6b92b).() const |
| 41 | { |
| 42 | return {cxx . . $ std/vector#vector(9619226211e5a241)._object_typecxx . . $ injeqt/internal/provider_ready_configuration#_object_type.}; |
| 43 | } |
| 44 | |
| 45 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<providercxx . . $ injeqt/internal/provider#> provider_ready_configurationcxx . . $ injeqt/internal/provider_ready_configuration#::create_providercxx . . $ injeqt/internal/provider_ready_configuration#create_provider(2c251cf15db9f22d).(const types_by_namecxx . . $ injeqt/internal/types_by_name# &) const |
| 46 | { |
| 47 | auto i = internalcxx . . $ injeqt/internal/::make_implementationcxx . . $ injeqt/internal/make_implementation(2322beed4ceffcb6).(_object_typecxx . . $ injeqt/internal/provider_ready_configuration#_object_type., _objectcxx . . $ injeqt/internal/provider_ready_configuration#_object.); |
| 48 | return stdcxx . . $ std/unique_ptr#unique_ptr(d6762fce684538e4).::unique_ptrcxx . . $ std/unique_ptr#<providercxx . . $ injeqt/internal/provider#>{new provider_readycxx . . $ injeqt/internal/provider_ready#{i}}; |
| 49 | } |
| 50 | |
| 51 | }} |