swift
simulatorinfolist.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_SIMULATION_SIMULATORINFOLIST_H
7 #define SWIFT_MISC_SIMULATION_SIMULATORINFOLIST_H
8 
9 #include <QMetaType>
10 
11 #include "misc/collection.h"
12 #include "misc/sequence.h"
14 #include "misc/swiftmiscexport.h"
15 
16 SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::Simulation, CSimulatorInfo, CSimulatorPluginInfoList)
17 
18 namespace swift::misc::simulation
19 {
22  public swift::misc::CSequence<CSimulatorInfo>,
23  public swift::misc::mixin::MetaType<CSimulatorInfoList>
24  {
25  public:
28 
31 
34 
36  CSimulatorInfoList withNoDuplicates() const;
37 
39  CSimulatorInfoList splitIntoSingleSimulators() const;
40 
42  static CSimulatorInfoList splitIntoSingleSimulators(const CSimulatorInfo &sim);
43  };
44 } // namespace swift::misc::simulation
45 
48 
49 #endif // SWIFT_MISC_SIMULATION_SIMULATORINFOLIST_H
Generic ordered container with value semantics.
Definition: collection.h:107
Generic sequential container with value semantics.
Definition: sequence.h:86
CSequence()=default
Default constructor.
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
Definition: mixinmetatype.h:29
Simple hardcoded info about the corresponding simulator.
Definition: simulatorinfo.h:41
Value object encapsulating a list of distributors.
#define SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE(DERIVED)
When a derived class and a base class both inherit from mixin::MetaType, the derived class uses this ...
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
Definition: sequence.h:62
#define SWIFT_MISC_EXPORT
Export a class or function from the library.