|
swift
|
Value object encapsulating a list of aircraft models. More...
Public Member Functions | |
| CAircraftModelList ()=default | |
| Empty constructor. | |
| CAircraftModelList (const CSequence< CAircraftModel > &other) | |
| Construct from a base class object. | |
| bool | containsModelString (const QString &modelString, Qt::CaseSensitivity sensitivity=Qt::CaseInsensitive) const |
| Contains model string? | |
| bool | containsModelStringOrDbKey (const simulation::CAircraftModel &model, Qt::CaseSensitivity sensitivity=Qt::CaseInsensitive) const |
| Contains model with model string or id? | |
| bool | containsCallsign (const aviation::CCallsign &callsign) const |
| Contains model for callsign? | |
| bool | containsCombinedType (const QString &combinedType) const |
| Contains given combined type? | |
| bool | containsModelsWithAircraftIcaoDesignator (const QString &aircraftDesignator) const |
| Contains any model with aircraft ICAO designator? | |
| bool | containsModelsWithAircraftAndAirlineIcaoDesignator (const QString &aircraftDesignator, const QString &airlineDesignator) const |
| Contains any model with aircraft and airline ICAO designator? | |
| bool | containsAirlineLivery (const aviation::CAirlineIcaoCode &airline) const |
| Contains airline livery for given airline. | |
| bool | containsMatchingSimulator (const CSimulatorInfo &simulators) const |
| Contains any model matching any of of passed simulators? | |
| bool | containsNotMatchingSimulator (const CSimulatorInfo &simulators) const |
| Contains any model not matching any of of passed simulators? | |
| bool | containsMilitary () const |
| Contains military models? | |
| bool | containsCivilian () const |
| Contains civilian models? | |
| bool | containsCivilianAndMilitary () const |
| Contains both, military and civilian models? | |
| bool | containsVtol () const |
| Contains VTOL models? | |
| bool | containsCategory () const |
| Contains any categorized model? | |
| bool | containsCategory (int firstLevel) const |
| Contains any model with 1st level? | |
| CAircraftModelList | findByModelString (const QString &modelString, Qt::CaseSensitivity sensitivity=Qt::CaseInsensitive) const |
| Find by model string. More... | |
| CAircraftModelList | findEmptyModelStrings () const |
| Find empty model strings. | |
| CAircraftModel | findFirstByModelStringOrDefault (const QString &modelString, Qt::CaseSensitivity sensitivity=Qt::CaseInsensitive) const |
| Find first by model string. | |
| CAircraftModel | findFirstByModelStringAliasOrDefault (const QString &modelString, Qt::CaseSensitivity sensitivity=Qt::CaseInsensitive) const |
| Find first by model string. | |
| CAircraftModel | findFirstByCallsignOrDefault (const aviation::CCallsign &callsign) const |
| Find first by callsign. | |
| CAircraftModelList | findModelsStartingWith (const QString &modelString, Qt::CaseSensitivity sensitivity=Qt::CaseInsensitive) const |
| Find models starting with. | |
| CAircraftModelList | findByModelStrings (const QStringList &modelStrings, Qt::CaseSensitivity sensitivity) const |
| Find by a given list of models by strings. | |
| CAircraftModelList | findByNotInModelStrings (const QStringList &modelStrings, Qt::CaseSensitivity sensitivity) const |
| Find by excluding given list of models strings. | |
| CAircraftModelList | findByIcaoDesignators (const aviation::CAircraftIcaoCode &aircraftIcaoCode, const aviation::CAirlineIcaoCode &airlineIcaoCode) const |
| Find by ICAO designators. | |
| CAircraftModelList | findByAircraftAndAirline (const aviation::CAircraftIcaoCode &aircraftIcaoCode, const aviation::CAirlineIcaoCode &airlineIcaoCode) const |
| Find by ICAO of aircraft and airline. | |
| CAircraftModelList | findByAircraftDesignatorAndLiveryCombinedCode (const QString &aircraftDesignator, const QString &combinedCode) const |
| Find by designator and livery code. | |
| CAircraftModelList | findByAircraftAndLivery (const aviation::CAircraftIcaoCode &aircraftIcaoCode, const aviation::CLivery &livery) const |
| Find by aircraft and livery. | |
| CAircraftModelList | findByAirlineGroup (const swift::misc::aviation::CAirlineIcaoCode &airline) const |
| Find by the corresponding airline group. | |
| CAircraftModelList | findByAirlineNameAndTelephonyDesignator (const QString &name, const QString &telephony, bool onlyIfExistInModel=true) const |
| Find by airline name and telephony. | |
| CAircraftModelList | findByAirlineNamesOrTelephonyDesignator (const QString &name) const |
| Find by airline name and telephony, similar to CAirlineIcaoCodeList::findByNamesOrTelephonyDesignator. | |
| CAircraftModelList | findByLiveryCode (const aviation::CLivery &livery) const |
| Find by livery code. | |
| CAircraftModelList | findWithFileName () const |
| Models with file name. | |
| CAircraftModelList | findByDistributor (const CDistributor &distributor) const |
| All models from given distributors. | |
| CAircraftModelList | findByDistributors (const CDistributorList &distributors) const |
| All models from given distributors. | |
| CAircraftModelList | findWithAircraftDesignator () const |
| Models with aircraft ICAO code set. | |
| CAircraftModelList | findWithAircraftDesignator (const QSet< QString > &designators) const |
| Models with aircraft ICAO code from list. | |
| CAircraftModelList | findWithKnownAircraftDesignator () const |
| Models with a known aircraft ICAO code set. | |
| CAircraftModelList | findByManufacturer (const QString &manufacturer) const |
| Find by manufacturer. | |
| CAircraftModelList | findByFamily (const QString &family) const |
| Models with aircraft family. | |
| CAircraftModelList | findByFamilyWithColorLivery (const QString &family) const |
| Models with aircraft family and color livery. | |
| CAircraftModelList | findByDesignatorOrFamilyWithColorLivery (const aviation::CAircraftIcaoCode &icao) const |
| Models with aircraft family or designator and color livery. | |
| CAircraftModelList | findByDesignatorsOrFamilyWithColorLivery (const QStringList &designators) const |
| Models with aircraft family or designators and color livery. | |
| CAircraftModelList | findByCombinedType (const QString &combinedType) const |
| Find by combined code, wildcards possible, e.g. L*P, *2J. | |
| CAircraftModelList | findByCombinedTypeAndWtc (const QString &combinedType, const QString &wtc) const |
| Find by combined code and WTC, wildcards for combined code possible, e.g. L*P, *2J. | |
| CAircraftModelList | findByCombinedTypeWithColorLivery (const QString &combinedType) const |
| Combined type and color livery. | |
| CAircraftModelList | findByCombinedTypeAndWtcWithColorLivery (const QString &combinedType, const QString &wtc) const |
| Combined WTC/livery. | |
| CAircraftModelList | findByCombinedAndManufacturer (const aviation::CAircraftIcaoCode &icao) const |
| Combined type and manufacturer. More... | |
| CAircraftModelList | findByCombinedAndManufacturer (const QString &combinedType, const QString &manufacturer) const |
| Combined typeand manufacturer. More... | |
| CAircraftModelList | findColorLiveries () const |
| Find color liveries. | |
| CAircraftModelList | findByMilitaryFlag (bool military) const |
Find by military flag, false returns civilian models. | |
| CAircraftModelList | findByVtolFlag (bool vtol) const |
Find by VTOL flag, false returns non VTOL models. | |
| CAircraftModelList | findByModelMode (CAircraftModel::ModelMode mode) const |
| Find by model mode. | |
| CAircraftModelList | findByCategoryFirstLevel (int firstLevel) const |
| Find by first level of category. | |
| CAircraftModelList | findByCategory (const aviation::CAircraftCategory &category) const |
| Find by category. | |
| CAircraftModelList | findByCategories (const aviation::CAircraftCategoryList &categories) const |
| Find by categories. | |
| CAircraftModelList | findModelsWithoutExistingFile () const |
| Find models where the filename is not set or the file no longer exists. | |
| CAircraftModelList | findModelsWithExistingFile () const |
| Find models where the filename is set and the file exists. | |
| CAircraftModelList | findDuplicateModelStrings () const |
| Find duplicate model strings and return those models with at least 1 duplicate model string. | |
| CAircraftModelList | findFsFamilyModels () const |
| All models of the FS (FSX, P3D, FS9, MSFS) family. | |
| CAircraftModelList | findNonFsFamilyModels () const |
| All models NOT of the FS (FSX, P3D, FS9, MSFS) family. | |
| QString | designatorToFamily (const aviation::CAircraftIcaoCode &aircraftIcaoCode) const |
| Take a designator and find its family. | |
| CAircraftModelList | matchesSimulator (const CSimulatorInfo &simulator) const |
| Find for given simulator. | |
| int | setSimulatorInfo (const CSimulatorInfo &info) |
| Set simulator for all elements. | |
| CSimulatorInfo | simulatorsSupported () const |
| Which simulators are supported in this model list. | |
| bool | isLikelyFsFamilyModelList () const |
| Is this here a FS family (P3D/FSX/FS9/MSFS) model list? | |
| bool | isLikelyFsxFamilyModelList () const |
| Is this here a FSX family (P3D/FSX/MSFS) model list? | |
| bool | isLikelyXPlaneModelList () const |
| Is this here a XPlane model list? | |
| int | setModelMode (CAircraftModel::ModelMode mode) |
| Set mode for all elements. | |
| int | setModelType (CAircraftModel::ModelType type) |
| Set type for all elements. | |
| int | setCG (const physical_quantities::CLength &cg) |
| Set center of gravity. | |
| int | keepModelsWithString (const QStringList &modelStrings, Qt::CaseSensitivity sensitivity) |
| Keep only those models with given model strings. More... | |
| bool | removeModelWithString (const QString &modelString, Qt::CaseSensitivity sensitivity) |
| Remove those models with given model strings. More... | |
| int | removeModelsWithString (const CAircraftModelList &models, Qt::CaseSensitivity sensitivity) |
| Remove those models with given model strings. More... | |
| int | removeModelsWithString (const QStringList &modelStrings, Qt::CaseSensitivity sensitivity) |
| Remove those models with given model strings. More... | |
| int | removeIfNotMatchingSimulator (const CSimulatorInfo &needToMatch) |
| Remove if not matching simulator. More... | |
| int | removeAllWithoutModelString () |
| Remove if having no model string. More... | |
| int | removeIfExcluded () |
| Remove if excluded CAircraftModel::Exclude. More... | |
| int | removeXPlaneFlyablePlanes () |
| Remove the XPlane flyable planes. | |
| int | removeByDistributor (const CDistributor &distributor) |
| Remove by distributor. More... | |
| int | removeByAircraftAndLivery (const aviation::CAircraftIcaoCode &aircraftIcao, const aviation::CLivery &livery) |
| Remove if aircraft and livery. More... | |
| int | removeByAircraftAndAirline (const aviation::CAircraftIcaoCode &aircraftIcao, const aviation::CAirlineIcaoCode &airline) |
| Remove if aircraft and airline. More... | |
| int | removeIfNotFsFamily () |
| Remove if NOT FS family model, ie. FSX/P3D/FS9/MSFS. More... | |
| CAircraftModelList | removeIfFileButNotInSet (const QString &fileName, const QSet< QString > &modelStrings) |
| Remove those models of a particular file, but not in the given set. More... | |
| bool | replaceOrAddModelWithString (const CAircraftModel &addOrReplaceModel, Qt::CaseSensitivity sensitivity) |
| Replace or add based on model string. More... | |
| int | replaceOrAddModelsWithString (const CAircraftModelList &addOrReplaceList, Qt::CaseSensitivity sensitivity) |
| Replace or add based on model string. More... | |
| QStringList | getModelStringList (bool sort=true) const |
| Model strings. | |
| QSet< QString > | getModelStringSet () const |
| Model strings as set. | |
| CCountPerSimulator | countPerSimulator () const |
| Simulator counts. | |
| QMap< QString, int > | countPerModelString () const |
| Model strings plus count. | |
| QMap< swift::misc::simulation::CDistributor, int > | countPerDistributor () const |
| Distributors plus count. | |
| QMap< swift::misc::aviation::CAircraftIcaoCode, int > | countPerAircraftIcao () const |
| Aircraft ICAO plus count. | |
| QMap< swift::misc::aviation::CAirlineIcaoCode, int > | countPerAirlineIcao () const |
| Airline ICAO plus count. | |
| aviation::CAirlineIcaoCode | getAirlineWithMaxCount () const |
| The airline with the max count. | |
| CSimulatorInfo | simulatorsWithMaxEntries () const |
| Which simulator(s) have the most entries? | |
| int | countModelsWithColorLivery () const |
| Models with a color livery. | |
| int | countModelsWithAirlineLivery () const |
| Models with an airline livery. | |
| int | countVtolAircraft () const |
| Count VTOL aircraft. | |
| int | countByMode (CAircraftModel::ModelMode mode) const |
| Count by mode. | |
| int | countMilitaryAircraft () const |
| Count military aircraft. | |
| int | countCivilianAircraft () const |
| Count civilian aircraft. | |
| int | countDifferentAirlines () const |
| Number of different airlines. | |
| int | countCombinedTypes () const |
| Count different combined types. | |
| int | countAliases () const |
| Models with aliases. | |
| void | sortByFileName () |
| Sort by file path. | |
| void | updateDistributor (const CDistributor &distributor) |
| Update distributor, all models in list are set to given distributor. | |
| CDistributorList | getDistributors (bool onlyDbDistributors=true) const |
| All distributors used with models of this list. | |
| aviation::CAircraftIcaoCodeList | getAircraftIcaoCodesFromDb () const |
| Aircraft ICAO codes from DB, without duplicates. | |
| QSet< QString > | getAircraftDesignators () const |
| Aircraft designators. | |
| QSet< QString > | getAircraftDesignatorsForAirline (const aviation::CAirlineIcaoCode &airlineCode) const |
| Aircraft designators for airline. More... | |
| aviation::CAircraftIcaoCodeList | getAicraftIcaoCodesForAirline (const aviation::CAirlineIcaoCode &airlineCode) const |
| Aircraft ICAO codes for airline. More... | |
| aviation::CAirlineIcaoCodeList | getAirlineIcaoCodesFromDb () const |
| Airline ICAO codes from DB, without duplicates. | |
| QSet< QString > | getAirlineDesignators () const |
| Airline designators. | |
| QSet< QString > | getAirlineVDesignators () const |
| Airline virtual designators. | |
| aviation::CAirlineIcaoCodeList | getAirlineIcaoCodesForGroup (int groupId) const |
| Airline ICAO codes for given group, without duplicates. | |
| QSet< QString > | getAirlineDesignatorsForGroup (int groupId) const |
| Airline designators. | |
| QSet< QString > | getAirlineVDesignatorsForGroup (int groupId) const |
| Airline virtual designators. | |
| QSet< QString > | getCombinedTypes () const |
| All combined types. | |
| QSet< QString > | getAllFileNames () const |
| All file names. | |
| QSet< QString > | getAllUNCFileNames () const |
| All UNC file names. More... | |
| QString | getCombinedTypesAsString (const QString &separator=", ") const |
| All combined types as string. | |
| QSet< QString > | getAicraftAndAirlineDesignators (bool withDbId) const |
| A set of all Aircraft/Airline ICAO codes. | |
| QString | getAicraftAndAirlineDesignatorsAsString (bool withDbId, const QString &separator=", ") const |
| A set of all Aircraft/Airline ICAO codes. | |
| void | updateAircraftIcao (const aviation::CAircraftIcaoCode &icao) |
| Update aircraft ICAO. | |
| void | updateLivery (const aviation::CLivery &livery) |
| Update livery. | |
| int | updateDistributorOrder (const CDistributorList &distributors) |
| From given CDistributorList update the model`s distributor order. | |
| void | normalizeFileNamesForDb () |
| All file names normalized for DB. | |
| ScoredModels | scoreFull (const CAircraftModel &remoteModel, bool preferColorLiveries, bool ignoreZeroScores=true, CStatusMessageList *log=nullptr) const |
| Score by aircraft ICAO code. | |
| QStringList | toCompleterStrings (bool sorted=true, const CSimulatorInfo &simulator={ CSimulatorInfo::All }) const |
| Completer strings. | |
| CStatusMessageList | validateForPublishing () const |
| Validate for publishing. | |
| CStatusMessageList | validateForPublishing (CAircraftModelList &validModels, CAircraftModelList &invalidModels) const |
| Validate for publishing. | |
| CStatusMessageList | validateDistributors (const CDistributorList &distributors, CAircraftModelList &validModels, CAircraftModelList &invalidModels) const |
| Validate distributors. | |
| CStatusMessageList | validateFiles (CAircraftModelList &validModels, CAircraftModelList &invalidModels, bool ignoreEmptyFileNames, int stopAtFailedFiles, std::atomic_bool &wasStopped, const QString &simRootDirectory, bool alreadySortedByFn=false) const |
| Validate files (file exists etc.) | |
| QJsonObject | toMemoizedJson () const |
| To compact JSON format. | |
| void | convertFromMemoizedJson (const QJsonObject &json, bool fallbackToConvertToJson=false) |
| From compact JSON format. | |
| QJsonArray | toDatabaseJson () const |
| To database JSON. | |
| QString | toDatabaseJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Compact) const |
| To database JSON. | |
| QString | asHtmlSummary () const |
| As HTML summary. | |
| QString | coverageSummary (const QString &separator="\n") const |
| What kind of models are represented here? | |
| QString | coverageSummaryForModel (const CAircraftModel &checkModel, const QString &separator="\n") const |
| What kind of models are represented here? More... | |
| QString | htmlStatistics (bool aircraftStats, bool airlineStats) const |
| A HTML summary of the data in the list. | |
| CSequence ()=default | |
| Default constructor. | |
| CSequence (std::initializer_list< T > il) | |
| Initializer list constructor. | |
| CSequence (QList< T > &&list) | |
| By QList of type T. | |
| CSequence (const QList< T > &list) | |
| By QList of type T. | |
| template<typename It > | |
| CSequence (It first, It last) | |
| Range constructor. | |
| CSequence (const CSequence &other)=default | |
| Copy constructor. | |
| CSequence (CSequence &&other)=default | |
| Move constructor. | |
| CAircraftModelList | findClosestColorDistance (const CRgbColor &fuselage, const CRgbColor &tail) const |
| Find models with the closest color distance. | |
| CAircraftModelList | findClosestFuselageColorDistance (const CRgbColor &color) const |
| Find models with the closest color distance. | |
| CAircraftModelList | findWithValidDbKey () const |
| With/without DB key. | |
| CAircraftModelList | findWithoutValidDbKey () const |
| With/without DB key. | |
| CAircraftModelList | findWithoutValidDbKey (int maxElements) const |
| With/without DB key. | |
| CAircraftModelList | findNonDbModelsForAirline (const QString &airline) const |
| Some finders for NON DB models, mostly for matching script results. | |
| CAircraftModelList | findNonDbModelsForAircraft (const QString &airline) const |
| Some finders for NON DB models, mostly for matching script results. | |
| CAircraftModelList | findNonDbModelsForModelString (const QString &modelString) const |
| Some finders for NON DB models, mostly for matching script results. | |
| CAircraftModelList | findAllIncludedModels () const |
| All included/excluded models. | |
| CAircraftModelList | findAllIncludedModels (int maxElements) const |
| All included/excluded models. | |
| CAircraftModelList | findAllExcludedModels () const |
| All included/excluded models. | |
| CAircraftModelList | findAllExcludedModels (int maxElements) const |
| All included/excluded models. | |
Public Member Functions inherited from swift::misc::CSequence< CAircraftModel > | |
| CSequence ()=default | |
| Default constructor. | |
| CSequence (std::initializer_list< CAircraftModel > il) | |
| Initializer list constructor. | |
| CSequence (QList< CAircraftModel > &&list) | |
| By QList of type T. | |
| CSequence (const QList< CAircraftModel > &list) | |
| By QList of type T. | |
| CSequence (It first, It last) | |
| Range constructor. | |
| CSequence (const CSequence &other)=default | |
| Copy constructor. | |
| CSequence (CSequence &&other)=default | |
| Move constructor. | |
| CSequence & | operator= (const CSequence &other)=default |
| Copy assignment. | |
| CSequence & | operator= (CSequence &&other)=default |
| Move assignment. | |
| ~CSequence ()=default | |
| Destructor. | |
| QVector< CAircraftModel > | toVector () const & |
| Copy of internal vector. | |
| QVector< CAircraftModel > | toVector () && |
| Copy of internal vector. | |
| iterator | begin () |
| Returns iterator at the beginning of the sequence. | |
| const_iterator | begin () const |
| Returns const iterator at the beginning of the sequence. | |
| const_iterator | cbegin () const |
| Returns const iterator at the beginning of the sequence. | |
| iterator | end () |
| Returns iterator one past the end of the sequence. | |
| const_iterator | end () const |
| Returns const iterator one past the end of the sequence. | |
| const_iterator | cend () const |
| Returns const iterator one past the end of the sequence. | |
| reverse_iterator | rbegin () |
| Returns iterator at the beginning of the reversed sequence. | |
| const_reverse_iterator | rbegin () const |
| Returns const iterator at the beginning of the reversed sequence. | |
| const_reverse_iterator | crbegin () const |
| Returns const iterator at the beginning of the reversed sequence. | |
| reverse_iterator | rend () |
| Returns iterator at the end of the reversed sequence. | |
| const_reverse_iterator | rend () const |
| Returns const iterator at the end of the reversed sequence. | |
| const_reverse_iterator | crend () const |
| Returns const iterator at the end of the reversed sequence. | |
| void | swap (CSequence &other) noexcept |
| Swap this sequence with another. | |
| reference | operator[] (size_type index) |
| Access an element by its index. | |
| const_reference | operator[] (size_type index) const |
| Access an element by its index. | |
| reference | front () |
| Access the first element. | |
| const_reference | front () const |
| Access the first element. | |
| const_reference | frontOrDefault () const |
| Access the first element, or a default-initialized value if the sequence is empty. | |
| value_type | frontOrDefault (value_type def) const |
| Access the first element, or a default-initialized value if the sequence is empty. | |
| reference | back () |
| Access the last element. | |
| const_reference | back () const |
| Access the last element. | |
| const_reference | backOrDefault () const |
| Access the last element, or a default value if the sequence is empty. | |
| value_type | backOrDefault (value_type def) const |
| Access the last element, or a default value if the sequence is empty. | |
| size_type | size () const |
| Returns number of elements in the sequence. | |
| int | sizeInt () const |
| Avoid compiler warnings when using with int. | |
| QString | sizeString () const |
| Convenience function. | |
| bool | empty () const |
| Returns true if the sequence is empty. | |
| bool | isEmpty () const |
| Synonym for empty. | |
| void | clear () |
| Removes all elements in the sequence. | |
| void | truncate (size_type maxSize) |
| Changes the size of the sequence, if it is bigger than the given size. | |
| iterator | insert (iterator before, const CAircraftModel &value) |
| Inserts an element into the sequence. More... | |
| iterator | insert (iterator before, CAircraftModel &&value) |
| Moves an element into the sequence. More... | |
| void | push_back (const CAircraftModel &value) |
| Appends an element at the end of the sequence. | |
| void | push_back (CAircraftModel &&value) |
| Move-appends an element at the end of the sequence. | |
| void | push_back (const CSequence &other) |
| Appends all elements from another sequence at the end of this sequence. | |
| void | push_back (CSequence &&other) |
| Appends all elements from another sequence at the end of this sequence. This version moves elements instead of copying. | |
| void | push_back (const CRange< I > &range) |
| Appends all elements from a range at the end of this sequence. | |
| void | push_front (const CAircraftModel &value) |
| Insert as first element. | |
| void | push_front (const CSequence &other) |
| Inserts all elements from another sequence at the beginning of this sequence. | |
| void | push_front (CAircraftModel &&value) |
| Move-insert as first element. | |
| void | push_frontMaxElements (const CAircraftModel &value, int maxElements) |
| Insert as first element by keep maxElements. | |
| void | push_backMaxElements (const CAircraftModel &value, int maxElements) |
| Insert as last element by keep maxElements. | |
| CSequence | join (const CSequence &other) const |
| Concatenates two sequences and returns the result. | |
| CSequence | join (const CRange< I > &range) const |
| Concatenates a sequence and a range and returns the result. | |
| void | pop_back () |
| Removes an element at the end of the sequence. | |
| void | pop_front () |
| Removes an element at the front of the sequence. | |
| iterator | erase (iterator pos) |
| Remove the element pointed to by the given iterator. More... | |
| iterator | erase (iterator it1, iterator it2) |
| Remove the range of elements between two iterators. More... | |
| iterator | find (const CAircraftModel &object) |
| Return an iterator to the first element equal to the given object, or the end iterator if not found. O(n). | |
| const_iterator | find (const CAircraftModel &object) const |
| Return an iterator to the first element equal to the given object, or the end iterator if not found. O(n). | |
| CSequence | findBy (Predicate p) const |
| Return a copy containing only those elements for which a given predicate returns true. More... | |
| int | applyIf (Predicate p, const VariantMap &newValues, bool skipEqualValues=false) |
| Modify by applying a value map to each element for which a given predicate returns true. More... | |
| int | applyIf (K1 key1, V1 value1, const VariantMap &newValues, bool skipEqualValues=false) |
| Modify by applying a value map to each element matching a particular key/value pair. More... | |
| int | remove (const CAircraftModel &object) |
| Remove all elements equal to the given object, if it is contained. More... | |
| int | removeIf (Predicate p) |
| Remove elements for which a given predicate returns true. More... | |
| int | removeIf (K0 k0, V0 v0, KeysValues... keysValues) |
| Remove elements matching some particular key/value pair(s). More... | |
| int | removeIfIn (const CSequence &other) |
| Remove all elements if they are in other. More... | |
| void | removeIfInSubset (const CSequence &other) |
| Remove all elements if they are in other. More... | |
| int | replace (const CAircraftModel &original, const CAircraftModel &replacement) |
| Replace elements matching the given element with a replacement. More... | |
| int | replaceIf (Predicate p, const CAircraftModel &replacement) |
| Replace elements for which a given predicate returns true. More... | |
| int | replaceIf (K1 key1, V1 value1, const CAircraftModel &replacement) |
| Replace elements matching a particular key/value pair. More... | |
| void | replaceOrAdd (const CAircraftModel &original, const CAircraftModel &replacement) |
| Replace elements matching the given element. If there is no match, push the new element on the end. | |
| void | replaceOrAdd (const CAircraftModel &replacement) |
| Replace elements matching the given element. If there is no match, push the new element on the end. | |
| void | replaceOrAdd (const CSequence< CAircraftModel > &replacements) |
| Replace or add given elements. | |
| void | replaceOrAdd (K1 key1, V1 value1, const CAircraftModel &replacement) |
| Replace elements matching a particular key/value pair. If there is no match, push the new element on the end. More... | |
| void | reverse () |
| In-place reverse. | |
| Q_REQUIRED_RESULT CSequence | reversed () const |
| Reversed order. | |
| void | sort (Predicate p) |
| In-place sort by a given comparator predicate. | |
| void | sortBy (K1 key1, Keys... keys) |
| In-place sort by some particular key(s). More... | |
| Q_REQUIRED_RESULT CSequence | sorted (Predicate p) const |
| Return a copy sorted by a given comparator predicate. | |
| CSequence | sortedBy (K1 key1, Keys... keys) const |
| Return a copy sorted by some particular key(s). More... | |
| void | partiallySort (size_type n, Predicate p) |
| In-place move the smallest n elements to the beginning and sort them. | |
| void | partiallySortBy (size_type n, K1 key1, Keys... keys) |
| In-place partially sort by some particular key(s). More... | |
| Q_REQUIRED_RESULT CSequence | partiallySorted (size_type n, Predicate p) const |
| Return a copy with the smallest n elements at the beginning and sorted. | |
| CSequence | partiallySortedBy (size_type n, K1 key1, Keys... keys) const |
| Return a copy partially sorted by some particular key(s). More... | |
| bool | unorderedEqualsByKeys (const U &other, Key0 k0, Keys... keys) const |
| Return true if this container equals another container, considering only the given element members. Order of elements is not considered; this is implemented using a transient sort, so don't overuse. | |
| auto | separate (Predicate p) const -> QMap< decltype(p(std::declval< CAircraftModel >())), CSequence > |
| Split up the sequence into subsequences for which the given predicate returns the same value. | |
| auto | separateBy (Key k) const -> QMap< decltype(std::invoke(k, std::declval< CAircraftModel >())), CSequence > |
| Split up the sequence into subsequences of elements having the same value for the given key. | |
| void | marshalToDataStream (QDataStream &stream) const |
| Marshal a value to a QDataStream. More... | |
| void | unmarshalFromDataStream (QDataStream &stream) |
| Unmarshal a value from a QDataStream. More... | |
Public Member Functions inherited from swift::misc::CContainerBase< Derived > | |
| template<template< class > class Other> | |
| auto | to () const |
| Return a new container of a different type, containing the same elements as this one. More... | |
| template<template< class > class Other, class T > | |
| Other< T > | to (Other< T > other) const |
| Return a new container of a different type, containing the same elements as this one. More... | |
| template<class K0 , class V0 , class... KeysValues> | |
| int | removeIf (K0 k0, V0 v0, KeysValues... keysValues) |
| Remove elements matching some particular key/value pair(s). More... | |
| QJsonObject | toJson () const |
| Cast to JSON object. More... | |
| QString | toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const |
| Convenience function JSON as string. | |
| void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object. More... | |
| void | convertFromJson (const QString &jsonString, bool acceptCacheFormat=false) |
| Assign from JSON object string. | |
| CStatusMessage | convertFromJsonNoThrow (const QJsonObject &json, const CLogCategoryList &categories, const QString &prefix) |
| Call convertFromJson, catch any CJsonException that is thrown and return it as CStatusMessage. | |
| CStatusMessage | convertFromJsonNoThrow (const QString &jsonString, const CLogCategoryList &categories, const QString &prefix) |
| Call convertFromJson, catch any CJsonException that is thrown and return it as CStatusMessage. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. More... | |
| QStringList | toStringList (bool i18n=false) const |
| To string list. | |
| void | marshallToDbus (QDBusArgument &argument) const |
| Marshall without begin/endStructure, for when composed within another object. More... | |
| void | unmarshallFromDbus (const QDBusArgument &argument) |
| Unmarshall without begin/endStructure, for when composed within another object. More... | |
Public Member Functions inherited from swift::misc::CRangeBase< Derived > | |
| template<class F > | |
| auto | transform (F function) const |
| Return a new container generated by applying some transformation function to all elements of this one. | |
| template<class Predicate > | |
| auto | findBy (Predicate p) const |
| Return a copy containing only those elements for which a given predicate returns true. | |
| template<class K0 , class V0 , class... KeysValues> | |
| auto | findBy (K0 k0, V0 v0, KeysValues... keysValues) const |
| Return a copy containing only those elements matching some particular key/value pair(s). More... | |
| template<class Predicate > | |
| const auto & | findFirstBy (Predicate p) const |
| Return a reference to the first element for which a given predicate returns true. Undefined if there is none. | |
| template<class K , class V > | |
| const auto & | findFirstBy (K key, V value) const |
| Return a reference to the first element matching some particular key/value pair(s). Undefined if there is none. | |
| template<class Predicate , class Value > | |
| auto | findFirstByOrDefault (Predicate p, const Value &def) const |
| Return a copy of the first element for which a given predicate returns true, or a default value if there is none. | |
| template<class Predicate > | |
| auto | findFirstByOrDefault (Predicate p) const |
| Return a copy of the first element for which a given predicate returns true, or a default value if there is none. | |
| template<class K , class V , class Value > | |
| auto | findFirstByOrDefault (K key, V value, const Value &def) const |
| Return a copy of the first element matching some particular key/value pair(s), or a default value if there is none. | |
| template<class T , class K , class V > | |
| auto | findFirstByOrDefault (K T::*key, V value) const |
| Return a copy of the first element matching some particular key/value pair(s), or a default value if there is none. | |
| template<class Predicate > | |
| bool | containsBy (Predicate p) const |
| Return true if there is an element for which a given predicate returns true. | |
| template<class T > | |
| bool | contains (const T &object) const |
| Return true if there is an element equal to given object. Uses the most efficient implementation available in the derived container. | |
| template<class K0 , class V0 , class... KeysValues> | |
| bool | contains (K0 k0, V0 v0, KeysValues... keysValues) const |
| Return a copy containing only those elements matching some particular key/value pair(s). More... | |
| template<class T , class Predicate > | |
| bool | equalsBy (const T &other, Predicate c) const |
| Return true if this container equals another container according to the given element equality predicate. | |
| template<class T , class Key0 , class... Keys> | |
| bool | equalsByKeys (const T &other, Key0 k0, Keys... keys) const |
| Return true if this container equals another container, considering only the given element members. | |
| template<class T > | |
| T | randomElement () const |
| Pick one random element. | |
| Derived | randomElements (int n) const |
| Copy n elements from the container at random. | |
| Derived | sampleElements (int n) const |
| Copy n elements from the container, randomly selected but evenly distributed. | |
Public Member Functions inherited from swift::misc::mixin::MetaType< Derived > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. More... | |
| QString | getClassName () const |
| Class name. | |
| bool | isA (int metaTypeId) const |
| Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
Public Member Functions inherited from swift::misc::mixin::String< Derived > | |
| QString | toQString (bool i18n=false) const |
| Cast as QString. | |
| std::string | toStdString (bool i18n=false) const |
| To std string. | |
| QString | stringForStreaming () const |
| String for streaming operators. | |
Public Member Functions inherited from swift::misc::mixin::Icon< Derived, IconIndex > | |
| CIcons::IconIndex | toIcon () const |
| As icon, not implemented by all classes. | |
Public Member Functions inherited from swift::misc::db::IDatastoreObjectList< CAircraftModel, CAircraftModelList, int > | |
| CAircraftModel | findByKey (int key, const CAircraftModel ¬Found=CAircraftModel()) const |
| Object with key, notFound otherwise. | |
| CAircraftModelList | findByKeys (const QSet< int > &keys) const |
| Object with key, notFound otherwise. | |
| CAircraftModelList | findObjectsWithDbKey () const |
| Objects with DB key. | |
| CAircraftModelList | findObjectsWithoutDbKey () const |
| Objects without DB key. | |
| CAircraftModel | maxKeyObject () const |
| Object with max.key. | |
| void | sortByKey () |
| Sort by timestamp. | |
| QSet< int > | toDbKeySet () const |
| All keys as set. | |
| QMap< int, CAircraftModel > | toDbKeyValueMap () const |
| As map with DB key/object. | |
| QSet< QString > | toDbKeyStringSet () const |
| All keys as string set (also integer keys will be converted to string) | |
| QString | dbKeysAsString (const QString &separator) const |
| The DB keys as string. | |
| int | getMaxKey (bool *ok=nullptr) const |
| Max.key value (making sense with integer key) | |
| int | removeObjectsWithKeys (const QSet< int > &keys) |
| Remove objects with keys. | |
| int | removeObjectsWithoutDbKey () |
| Remove objects without key. | |
| int | replaceOrAddObjectsByKey (const CAircraftModelList &container) |
| Update or insert data (based on DB key) | |
| QDateTime | latestDbTimestamp () const |
| Latest DB timestamp (means objects with DB key) | |
| QDateTime | oldestDbTimestamp () const |
| Latest DB timestamp (means objects with DB key) | |
| int | countWithValidDbKey (bool withKey) const |
| Number of objects with/without key. | |
| int | countWithValidDbKey () const |
| Number of entries with valid DB key. | |
| bool | containsAnyObjectWithoutKey () const |
| Any object without key? | |
| bool | containsDbKey (int key) const |
| Contains object with key? | |
Public Member Functions inherited from swift::misc::ITimestampObjectList< OBJ, CONTAINER > | |
| CONTAINER | findBefore (const QDateTime &dateTime) const |
| List of objects before dateTime (older) | |
| CONTAINER | findBefore (qint64 msSinceEpoch) const |
| List of objects before msSinceEpoch (older) | |
| OBJ | findObjectBeforeOrDefault (qint64 msSinceEpoch) const |
| Object before timestamp or default (older) | |
| CONTAINER | findBeforeAndRemove (qint64 msSinceEpoch) |
| Get objects before msSinceEpoch and remove those. | |
| CONTAINER | findBeforeNowMinusOffset (qint64 msOffset) const |
| List of objects before now - offset. | |
| CONTAINER | findAfter (const QDateTime &dateTime) const |
| List of objects after dateTime (newer) | |
| CONTAINER | findAfter (qint64 msSinceEpoch) const |
| List of objects after msSinceEpoch (newer) | |
| CONTAINER | findAfterNowMinusOffset (qint64 msOffset) const |
| List of objects before now - offset. | |
| OBJ | findObjectAfterOrDefault (qint64 msSinceEpoch) const |
| List of objects after msSinceEpoch (newer) | |
| CONTAINER | findInvalidTimestamps () const |
| Objects without valid timestamp. | |
| OBJ | findClosestTimeDistance (qint64 msSinceEpoch) const |
| Find closest (or default) | |
| bool | hasInvalidTimestamps () const |
| Has invalid timestamp. | |
| void | setCurrentUtcTime () |
| Set all timestamps to now. | |
| void | setUtcTime (qint64 msSinceEpoch) |
| Set all timestamps to given time. | |
| void | setInvalidTimestampsToCurrentUtcTime () |
| Set invalid timestamps to now. | |
| QDateTime | latestTimestamp () const |
| Latest timestamp. | |
| qint64 | latestTimestampMsecsSinceEpoch () const |
| Latest timestamp. | |
| QDateTime | oldestTimestamp () const |
| Oldest timestamp. | |
| qint64 | oldestTimestampMsecsSinceEpoch () const |
| Oldest timestamp. | |
| OBJ | latestObject () const |
| Latest object. | |
| OBJ | oldestObject () const |
| Latest object. | |
| int | removeBefore (const QDateTime &dateTime) |
| Remove objects with timestamp before dateTime. | |
| int | removeBefore (qint64 msSinceEpoch) |
| Remove objects with timestamp before dateTime. | |
| int | removeOlderThanNowMinusOffset (qint64 offsetMs) |
| Remove objects older than seconds. | |
| void | sortLatestFirst () |
| Sort by timestamp. | |
| void | sortOldestFirst () |
| Sort by timestamp. | |
| void | push_frontKeepLatestFirst (const OBJ &value, bool replaceSameTimestamp=true, int maxElements=-1) |
| Insert as first element by keeping maxElements and the latest first. | |
| void | push_backIncreaseTimestamp (const OBJ &newObject) |
| Push back and increase the timestamp at least by +1ms if equal to last element. More... | |
| void | push_backOverrideTimestamp (const OBJ &newObject, qint64 newTsMsSinceEpoch) |
| Push back, but set new timestamp. | |
| void | setNewTimestampStartingLast (qint64 startTimeStampMs, qint64 deltaTimeMs) |
| Set new timestamps starting with the last element. | |
| int | replaceIfSameTimestamp (const OBJ &newObject) |
| Replace if an object has the same timestamp. | |
| bool | isSortedLatestLast () const |
| Is completely sorted: latest last. More... | |
| bool | isSortedLatestFirst () const |
| Is completely sorted: latest last. More... | |
| void | addMsecs (qint64 msToAdd) |
| Adds a time to all values. | |
| void | setSortHint (HintTimestampSort hint) |
| Set the hint. | |
| MillisecondsMinMaxMean | getTimestampDifferenceMinMaxMean () const |
| Difference of timestamp values. More... | |
Public Member Functions inherited from swift::misc::IOrderableList< CAircraftModel, CAircraftModelList > | |
| void | sortAscendingByOrder () |
| Sort ascending. | |
| void | sortDescendingByOrder () |
| Sort descending. | |
| void | resetOrder (int offset=0) |
| Set order member to current order. | |
| bool | needsOrder () const |
| All order values set or missing some? | |
| QList< int > | orderValues () const |
| All order values IOrderable::order. | |
| CAircraftModelList | withoutItemsOfSameOrder (const CAircraftModelList &items) const |
| Items with order will not be included. | |
| void | removeItemsWithSameOrder (const CAircraftModelList &items) |
| Remove the items based on their order IOrderable::order. | |
| void | moveTo (const CAircraftModelList &items, int targetOrder) |
| Move items to given order. | |
| void | freezeOrder () |
| Current order of list will be new order values. | |
| void | freezeOrderReverse () |
| Current reverse order of list will be new order values. | |
| CAircraftModel | minOrderOrDefault () const |
| Object with min.order or default. | |
| CAircraftModel | maxOrderOrDefault () const |
| Object with max.order or default. | |
Public Member Functions inherited from swift::misc::aviation::ICallsignObjectList< CAircraftModel, CAircraftModelList > | |
| bool | containsCallsign (const CCallsign &callsign) const |
| Contains callsign? | |
| int | applyIfCallsign (const CCallsign &callsign, const CPropertyIndexVariantMap &variantMap, bool skipEqualValues=true) |
| Apply for given callsign. | |
| swift::misc::aviation::CCallsignSet | getCallsigns () const |
| All callsigns. | |
| QStringList | getCallsignStrings (bool sorted=false) const |
| Get callsign string list. | |
| QString | getCallsignsAsString (const QString &separator, bool sorted=false) const |
| Get callsigns as strings. | |
| CAircraftModelList | findByCallsign (const CCallsign &callsign) const |
| Find 0..n stations by callsign. | |
| CAircraftModelList | findByCallsigns (const CCallsignSet &callsigns) const |
| Find 0..n aircraft matching any of a set of callsigns. | |
| CAircraftModel | findFirstByCallsign (const CCallsign &callsign, const CAircraftModel &ifNotFound={}) const |
| Find the first aircraft by callsign, if none return given one. | |
| CAircraftModel | findLastByCallsign (const CCallsign &callsign, const CAircraftModel &ifNotFound={}) const |
| Find the back object by callsign, if none return given one. | |
| CAircraftModelList | findBySuffix (const QString &suffix) const |
| All with given suffix, empty suffixes ignored. | |
| int | firstIndexOfCallsign (const CCallsign &callsign) |
| First found index of callsign, otherwise -1. | |
| int | removeByCallsign (const CCallsign &callsign) |
| Remove all objects with callsign. | |
| int | removeByCallsigns (const CCallsignSet &callsigns) |
| Remove all objects with callsigns. | |
| QMap< QString, int > | getSuffixesAndCount () const |
| All suffixes with their respective count. More... | |
| QStringList | getSuffixes () const |
| All suffixes, in the order of the list. More... | |
| QHash< CCallsign, CAircraftModelList > | splitPerCallsign () const |
| Split into 0..n containers as per callsign. | |
| int | replaceOrAddObjectByCallsign (const CAircraftModel &otherObject) |
| Replace or add objects by callsign. | |
| int | replaceOrAddObjectsByCallsign (const CAircraftModelList &others) |
| Replace or add objects by callsign. | |
| int | incrementalUpdateOrAdd (const CAircraftModel &objectBeforeChanges, const CPropertyIndexVariantMap &changedValues) |
| Incremental update or add object. | |
| void | sortByCallsign () |
| Sort by callsign. | |
| QMap< CCallsign, CAircraftModel > | asCallsignMap () const |
| Turn into callsign map. | |
| QHash< CCallsign, CAircraftModel > | asCallsignHash () const |
| Turn into callsign hash. | |
| CAircraftModelList | sortedByCallsign () const |
| Copy of list sorted by callsign. | |
Public Member Functions inherited from swift::misc::mixin::MetaType< CAircraftModelList > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. More... | |
| QString | getClassName () const |
| Class name. | |
| bool | isA (int metaTypeId) const |
| Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
Static Public Member Functions | |
| static CAircraftModelList | fromDatabaseJsonCaching (const QJsonArray &array, const aviation::CAircraftIcaoCodeList &aircraftIcaos={}, const aviation::CAircraftCategoryList &aircraftCategories={}, const aviation::CLiveryList &liveries={}, const CDistributorList &distributors={}) |
| Newer version. | |
| static void | addAsValidOrInvalidModel (const CAircraftModel &model, bool valid, CAircraftModelList &validModels, CAircraftModelList &invalidModels) |
| Add as valid or invalid model (mutual exclusive) | |
| static void | addAsValidOrInvalidModels (const CAircraftModelList &models, bool valid, CAircraftModelList &validModels, CAircraftModelList &invalidModels) |
| Add as valid or invalid model (mutual exclusive) | |
Static Public Member Functions inherited from swift::misc::CContainerBase< Derived > | |
| static Derived | fromJson (const QJsonObject &json) |
| Static version of convertFromJson. | |
| static Derived | fromJson (const QString &jsonString, bool acceptCacheJson=false) |
| Static version of convertFromJson. | |
| static Derived | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
| Static version of convertFromJson. | |
Static Public Member Functions inherited from swift::misc::mixin::MetaType< Derived > | |
| static void | registerMetadata () |
| Register metadata. | |
Static Public Member Functions inherited from swift::misc::db::IDatastoreObjectList< CAircraftModel, CAircraftModelList, int > | |
| static CAircraftModelList | fromMultipleJsonFormats (const QJsonObject &jsonObject) |
| From multiple JSON formats. More... | |
| static CAircraftModelList | fromMultipleJsonFormats (const QString &jsonString) |
| From multiple JSON formats. More... | |
| static CAircraftModelList | fromDatabaseJson (const QJsonArray &array) |
| From DB JSON with default prefixes. More... | |
| static CAircraftModelList | fromDatabaseJson (const QJsonArray &array, const QString &prefix) |
| From DB JSON. More... | |
Static Public Member Functions inherited from swift::misc::mixin::MetaType< CAircraftModelList > | |
| static void | registerMetadata () |
| Register metadata. | |
| CStatusMessage | saveInvalidModels () const |
| Save/load invalid models. | |
| CStatusMessage | loadInvalidModels () |
| Save/load invalid models. | |
| static const QString & | invalidModelFileAndPath () |
| Save/load invalid models. | |
| static bool | hasInvalidModelFile () |
| Save/load invalid models. | |
Additional Inherited Members | |
Public Types inherited from swift::misc::CSequence< CAircraftModel > | |
| using | key_type = CAircraftModel |
| STL compatibility. | |
| using | value_type = CAircraftModel |
| STL compatilibty. | |
| using | reference = CAircraftModel & |
| STL compatibility. | |
| using | const_reference = const CAircraftModel & |
| STL compatibility. | |
| using | pointer = CAircraftModel * |
| STL compatibility. | |
| using | const_pointer = const CAircraftModel * |
| STL compatibility. | |
| using | const_iterator = typename QVector< CAircraftModel >::const_iterator |
| STL compatibility. | |
| using | iterator = typename QVector< CAircraftModel >::iterator |
| STL compatibility. | |
| using | const_reverse_iterator = typename QVector< CAircraftModel >::const_reverse_iterator |
| STL compatibility. | |
| using | reverse_iterator = typename QVector< CAircraftModel >::reverse_iterator |
| STL compatibility. | |
| using | difference_type = ptrdiff_t |
| STL compatibility. | |
| using | size_type = int |
| STL compatibility. | |
Public Types inherited from swift::misc::ITimestampObjectList< OBJ, CONTAINER > | |
| enum | HintTimestampSort { NoTimestampSortHint , TimestampLatestFirst , TimestampLatestLast } |
| Hint if the list is sorted. | |
Protected Member Functions inherited from swift::misc::CContainerBase< Derived > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. More... | |
Protected Member Functions inherited from swift::misc::db::IDatastoreObjectList< CAircraftModel, CAircraftModelList, int > | |
| IDatastoreObjectList ()=default | |
| Constructor. | |
Protected Member Functions inherited from swift::misc::ITimestampObjectList< OBJ, CONTAINER > | |
| ITimestampObjectList ()=default | |
| Constructor. | |
| const CONTAINER & | container () const |
| Container. | |
| CONTAINER & | container () |
| Container. | |
Protected Member Functions inherited from swift::misc::IOrderableList< CAircraftModel, CAircraftModelList > | |
| IOrderableList ()=default | |
| Constructor. | |
| const CAircraftModelList & | container () const |
| Container. | |
| CAircraftModelList & | container () |
| Container. | |
Protected Member Functions inherited from swift::misc::aviation::ICallsignObjectList< CAircraftModel, CAircraftModelList > | |
| ICallsignObjectList () | |
| Constructor. | |
| const CAircraftModelList & | container () const |
| Container. | |
| CAircraftModelList & | container () |
| Container. | |
Static Protected Member Functions inherited from swift::misc::CRangeBase< Derived > | |
| template<typename T , typename U > | |
| static bool | equalPointers (const T *a, const U *b) |
| Efficiently compare addresses of two objects. Return false if types are not compatible. | |
Protected Attributes inherited from swift::misc::ITimestampObjectList< OBJ, CONTAINER > | |
| HintTimestampSort | m_tsSortHint = NoTimestampSortHint |
| sort hint | |
Value object encapsulating a list of aircraft models.
Definition at line 54 of file aircraftmodellist.h.
| QString swift::misc::simulation::CAircraftModelList::coverageSummaryForModel | ( | const CAircraftModel & | checkModel, |
| const QString & | separator = "\n" |
||
| ) | const |
What kind of models are represented here?
Definition at line 1622 of file aircraftmodellist.cpp.
| CAircraftModelList swift::misc::simulation::CAircraftModelList::findByCombinedAndManufacturer | ( | const aviation::CAircraftIcaoCode & | icao | ) | const |
Combined type and manufacturer.
Definition at line 327 of file aircraftmodellist.cpp.
| CAircraftModelList swift::misc::simulation::CAircraftModelList::findByCombinedAndManufacturer | ( | const QString & | combinedType, |
| const QString & | manufacturer | ||
| ) | const |
Combined typeand manufacturer.
Definition at line 332 of file aircraftmodellist.cpp.
| CAircraftModelList swift::misc::simulation::CAircraftModelList::findByModelString | ( | const QString & | modelString, |
| Qt::CaseSensitivity | sensitivity = Qt::CaseInsensitive |
||
| ) | const |
Find by model string.
Definition at line 88 of file aircraftmodellist.cpp.
| CAircraftIcaoCodeList swift::misc::simulation::CAircraftModelList::getAicraftIcaoCodesForAirline | ( | const aviation::CAirlineIcaoCode & | airlineCode | ) | const |
Aircraft ICAO codes for airline.
Definition at line 1076 of file aircraftmodellist.cpp.
| QSet< QString > swift::misc::simulation::CAircraftModelList::getAircraftDesignatorsForAirline | ( | const aviation::CAirlineIcaoCode & | airlineCode | ) | const |
Aircraft designators for airline.
Definition at line 1064 of file aircraftmodellist.cpp.
All UNC file names.
Definition at line 1173 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::keepModelsWithString | ( | const QStringList & | modelStrings, |
| Qt::CaseSensitivity | sensitivity | ||
| ) |
Keep only those models with given model strings.
Definition at line 720 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeAllWithoutModelString | ( | ) |
Remove if having no model string.
Definition at line 766 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeByAircraftAndAirline | ( | const aviation::CAircraftIcaoCode & | aircraftIcao, |
| const aviation::CAirlineIcaoCode & | airline | ||
| ) |
Remove if aircraft and airline.
Definition at line 810 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeByAircraftAndLivery | ( | const aviation::CAircraftIcaoCode & | aircraftIcao, |
| const aviation::CLivery & | livery | ||
| ) |
Remove if aircraft and livery.
Definition at line 805 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeByDistributor | ( | const CDistributor & | distributor | ) |
Remove by distributor.
Definition at line 800 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeIfExcluded | ( | ) |
Remove if excluded CAircraftModel::Exclude.
Definition at line 782 of file aircraftmodellist.cpp.
| CAircraftModelList swift::misc::simulation::CAircraftModelList::removeIfFileButNotInSet | ( | const QString & | fileName, |
| const QSet< QString > & | modelStrings | ||
| ) |
Remove those models of a particular file, but not in the given set.
Definition at line 827 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeIfNotFsFamily | ( | ) |
Remove if NOT FS family model, ie. FSX/P3D/FS9/MSFS.
Definition at line 817 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeIfNotMatchingSimulator | ( | const CSimulatorInfo & | needToMatch | ) |
Remove if not matching simulator.
Definition at line 752 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeModelsWithString | ( | const CAircraftModelList & | models, |
| Qt::CaseSensitivity | sensitivity | ||
| ) |
Remove those models with given model strings.
Definition at line 737 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::removeModelsWithString | ( | const QStringList & | modelStrings, |
| Qt::CaseSensitivity | sensitivity | ||
| ) |
Remove those models with given model strings.
Definition at line 743 of file aircraftmodellist.cpp.
| bool swift::misc::simulation::CAircraftModelList::removeModelWithString | ( | const QString & | modelString, |
| Qt::CaseSensitivity | sensitivity | ||
| ) |
Remove those models with given model strings.
Definition at line 728 of file aircraftmodellist.cpp.
| int swift::misc::simulation::CAircraftModelList::replaceOrAddModelsWithString | ( | const CAircraftModelList & | addOrReplaceList, |
| Qt::CaseSensitivity | sensitivity | ||
| ) |
Replace or add based on model string.
Definition at line 851 of file aircraftmodellist.cpp.
| bool swift::misc::simulation::CAircraftModelList::replaceOrAddModelWithString | ( | const CAircraftModel & | addOrReplaceModel, |
| Qt::CaseSensitivity | sensitivity | ||
| ) |
Replace or add based on model string.
Definition at line 842 of file aircraftmodellist.cpp.