swift
aircraftsituationchangelist.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 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_AVIATION_AIRCRAFTSITUATIONCHANGELIST_H
7 #define SWIFT_MISC_AVIATION_AIRCRAFTSITUATIONCHANGELIST_H
8 
10 #include "misc/collection.h"
11 #include "misc/sequence.h"
12 #include "misc/swiftmiscexport.h"
14 
15 SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftSituationChange, CAircraftSituationChangeList)
16 
17 namespace swift::misc::aviation
18 {
21  public CSequence<CAircraftSituationChange>,
22  public ITimestampWithOffsetObjectList<CAircraftSituationChange, CAircraftSituationChangeList>,
23  public mixin::MetaType<CAircraftSituationChangeList>
24  {
25  public:
28 
31 
34 
36  CAircraftSituationChange frontOrNull() const;
37 
39  CAircraftSituationChange backOrNull() const;
40 
42  CAircraftSituationChange indexOrNull(int index) const;
43  };
44 
47 
50 
51 } // namespace swift::misc::aviation
52 
57 
58 #endif // SWIFT_MISC_AVIATION_AIRCRAFTSITUATIONCHANGELIST_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.
List of objects with timestamp and offset. Such objects should implement.
Value object about changes in situations.
Value object encapsulating a list of aircraft parts.
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
Definition: mixinmetatype.h:29
#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.