swift
Loading...
Searching...
No Matches
propertyindexlist.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2013 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_PROPERTYINDEXLIST_H
7#define SWIFT_MISC_PROPERTYINDEXLIST_H
8
9#include <QMetaType>
10
11#include "misc/collection.h"
12#include "misc/propertyindex.h"
13#include "misc/sequence.h"
15
16SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc, CPropertyIndex, CPropertyIndexList)
17
18namespace swift::misc
19{
22 public CSequence<CPropertyIndex>,
23 public swift::misc::mixin::MetaType<CPropertyIndexList>
24 {
25 public:
28
30 CPropertyIndexList() = default;
31
34
36 Q_REQUIRED_RESULT CPropertyIndexList copyFrontRemoved() const;
37 };
38} // namespace swift::misc
39
40Q_DECLARE_METATYPE(swift::misc::CPropertyIndexList)
42
43#endif // SWIFT_MISC_PROPERTYINDEXLIST_H
Generic ordered container with value semantics.
Definition collection.h:113
Value object encapsulating a list of property indexes.
CSequence()=default
Default constructor.
Q_REQUIRED_RESULT CPropertyIndexList copyFrontRemoved() const
List without front element, or empty list if not applicable.
CPropertyIndexList()=default
Default constructor.
CSequence()=default
Default constructor.
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
#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 ...
Free functions in swift::misc.
#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.