// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1 //! \file #ifndef SWIFT_MISC_PROPERTYINDEXLIST_H #define SWIFT_MISC_PROPERTYINDEXLIST_H #include #include "misc/collection.h" #include "misc/propertyindex.h" #include "misc/sequence.h" #include "misc/swiftmiscexport.h" SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc, CPropertyIndex, CPropertyIndexList) namespace swift::misc { //! Value object encapsulating a list of property indexes. class SWIFT_MISC_EXPORT CPropertyIndexList : public CSequence, public swift::misc::mixin::MetaType { public: SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE(CPropertyIndexList) using CSequence::CSequence; //! Default constructor. CPropertyIndexList(); //! Construct from a base class object. CPropertyIndexList(const CSequence &other); //! List without front element, or empty list if not applicable Q_REQUIRED_RESULT CPropertyIndexList copyFrontRemoved() const; }; } // namespace swift::misc Q_DECLARE_METATYPE(swift::misc::CPropertyIndexList) Q_DECLARE_METATYPE(swift::misc::CCollection) #endif // SWIFT_MISC_PROPERTYINDEXLIST_H