swift
|
List of aircraft situations. More...
Public Member Functions | |
CAircraftSituationList ()=default | |
Default constructor. | |
CAircraftSituationList (const CSequence< CAircraftSituation > &other) | |
Construct from a base class object. | |
CAircraftSituation | frontOrNull () const |
Front or NULL. | |
CAircraftSituation | backOrNull () const |
Back or NULL. | |
CAircraftSituation | indexOrNull (int index) const |
Index or NULL. | |
int | setGroundElevationChecked (const geo::CElevationPlane &elevationPlane, CAircraftSituation::GndElevationInfo info, qint64 newerThanAdjustedMs=-1) |
Set ground elevation from elevation plane. | |
int | adjustGroundFlag (const CAircraftParts &parts, double timeDeviationFactor=0.1) |
Adjust flag from parts by using CAircraftSituation::adjustGroundFlag. | |
bool | containsOnGroundDetails (COnGroundInfo::OnGroundDetails details) const |
Contains on ground details? | |
bool | containsPushBack () const |
Contains any push back? More... | |
bool | areAllOnGroundDetailsSame (COnGroundInfo::OnGroundDetails details) const |
Are all on ground details the same? | |
bool | isConstOnGround () const |
Are all situations on ground? | |
bool | isConstNotOnGround () const |
Are all situations not on ground? | |
bool | isConstDescending (bool alreadySortedLatestFirst=false) const |
Constantly descending? | |
bool | isConstAscending (bool alreadySortedLatestFirst=false) const |
Constantly ascending? | |
bool | isConstAccelerating (bool alreadySortedLatestFirst=false) const |
Constantly accelerating? | |
bool | isConstDecelarating (bool alreadySortedLatestFirst=false) const |
Constantly decelarating? | |
QPair< bool, COnGroundInfo::IsOnGround > | isGndFlagStableChanging (bool alreadySortedLatestFirst=false) const |
Is the ground flag changing for the situations. | |
bool | isJustTakingOff (bool alreadySortedLatestFirst=false) const |
Is just taking off? | |
bool | isJustTouchingDown (bool alreadySortedLatestFirst=false) const |
Is just touching down? | |
bool | isRotatingUp (bool alreadySortedLatestFirst=false) const |
Is rotating up? | |
int | countOnGround (COnGroundInfo::IsOnGround og) const |
Count the number of situations with COnGroundInfo::IsOnGround. | |
CAircraftSituation | findClosestElevationWithinRange (const geo::ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range=geo::CElevationPlane::singlePointRadius()) const |
CLosest elevation within given range. | |
void | setOnGroundInfo (const COnGroundInfo &info) |
Set on ground. | |
void | setOnGroundDetails (COnGroundInfo::OnGroundDetails details) |
Set on ground details for all situations. | |
int | addAltitudeOffset (const physical_quantities::CLength &offset) |
Add an offset to each altitude. | |
bool | isSortedAdjustedLatestFirstWithoutNullPositions () const |
Latest first and no null positions? | |
CAircraftSituationList | withoutFrontSituation () const |
Remove the first situation. More... | |
QList< double > | pitchValues (const physical_quantities::CAngleUnit &unit) const |
All pitch values. | |
QList< double > | groundSpeedValues (const physical_quantities::CSpeedUnit &unit) const |
All ground speed values. | |
QList< double > | elevationValues (const physical_quantities::CLengthUnit &unit) const |
All elevation values. | |
QList< double > | altitudeValues (const physical_quantities::CLengthUnit &unit) const |
All altitude values. | |
physical_quantities::CAnglePair | pitchStandardDeviationAndMean () const |
Pitch angles standard deviation and mean. | |
physical_quantities::CSpeedPair | groundSpeedStandardDeviationAndMean () const |
Ground speed standard deviation and mean. | |
int | transferElevationForward (const physical_quantities::CLength &radius=geo::CElevationPlane::singlePointRadius()) |
Transfer elevations forward from older to newer. More... | |
geo::CElevationPlane | averageElevationOfTaxiingOnGroundAircraft (const CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues=1, int sufficientValues=2) const |
Average elevation for "nearby" aircraft "not/slowly moving" and having an elevation. | |
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. | |
![]() | |
CSequence ()=default | |
Default constructor. | |
CSequence (std::initializer_list< CAircraftSituation > il) | |
Initializer list constructor. | |
CSequence (QList< CAircraftSituation > &&list) | |
By QList of type T. | |
CSequence (const QList< CAircraftSituation > &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< CAircraftSituation > | toVector () const & |
Copy of internal vector. | |
QVector< CAircraftSituation > | 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 CAircraftSituation &value) |
Inserts an element into the sequence. More... | |
iterator | insert (iterator before, CAircraftSituation &&value) |
Moves an element into the sequence. More... | |
void | push_back (const CAircraftSituation &value) |
Appends an element at the end of the sequence. | |
void | push_back (CAircraftSituation &&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 CAircraftSituation &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 (CAircraftSituation &&value) |
Move-insert as first element. | |
void | push_frontMaxElements (const CAircraftSituation &value, int maxElements) |
Insert as first element by keep maxElements. | |
void | push_backMaxElements (const CAircraftSituation &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 CAircraftSituation &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 CAircraftSituation &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 CAircraftSituation &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 CAircraftSituation &original, const CAircraftSituation &replacement) |
Replace elements matching the given element with a replacement. More... | |
int | replaceIf (Predicate p, const CAircraftSituation &replacement) |
Replace elements for which a given predicate returns true. More... | |
int | replaceIf (K1 key1, V1 value1, const CAircraftSituation &replacement) |
Replace elements matching a particular key/value pair. More... | |
void | replaceOrAdd (const CAircraftSituation &original, const CAircraftSituation &replacement) |
Replace elements matching the given element. If there is no match, push the new element on the end. | |
void | replaceOrAdd (const CAircraftSituation &replacement) |
Replace elements matching the given element. If there is no match, push the new element on the end. | |
void | replaceOrAdd (const CSequence< CAircraftSituation > &replacements) |
Replace or add given elements. | |
void | replaceOrAdd (K1 key1, V1 value1, const CAircraftSituation &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< CAircraftSituation >())), 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< CAircraftSituation >())), 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... | |
![]() | |
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... | |
![]() | |
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. | |
![]() | |
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. | |
![]() | |
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. | |
![]() | |
CIcons::IconIndex | toIcon () const |
As icon, not implemented by all classes. | |
![]() | |
CAircraftSituationList | findWithinRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
Find 0..n objects within range of given coordinate. More... | |
CAircraftSituationList | findOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
Find 0..n objects outside range of given coordinate. More... | |
CAircraftSituation | findFirstWithinRangeOrDefault (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
Find first in range. | |
CAircraftSituationList | findWithGeodeticMSLHeight () const |
Elements with geodetic height (only MSL) | |
bool | containsObjectInRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
Any object in range? | |
bool | containsObjectOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
Any object in range? | |
bool | containsNullPosition () const |
Any NULL position? | |
bool | containsNullPositionOrHeight () const |
Any NULL position or NULL height. | |
MinMaxAverageHeight | findMinMaxAverageHeight () const |
Find min/max/average height. | |
aviation::CAltitude | findMaxHeight () const |
Find min/max/average height. | |
int | removeInsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) |
Remove inside range. | |
int | removeOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) |
Remove outside range. | |
int | removeWithoutGeodeticHeight () |
Remove if there is no geodetic height. | |
CAircraftSituationList | findClosest (int number, const ICoordinateGeodetic &coordinate) const |
Find 0..n objects closest to the given coordinate. | |
CAircraftSituationList | findFarthest (int number, const ICoordinateGeodetic &coordinate) const |
Find 0..n objects farthest to the given coordinate. | |
CAircraftSituation | findClosestWithinRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
Find closest within range to the given coordinate. | |
void | sortByEuclideanDistanceSquared (const ICoordinateGeodetic &coordinate) |
Sort by distance. | |
CAircraftSituationList | sortedByEuclideanDistanceSquared (const ICoordinateGeodetic &coordinate) const |
Sorted by distance. | |
![]() | |
void | sortAdjustedLatestFirst () |
Sort by adjusted timestamp. | |
CAircraftSituationList | getSortedAdjustedLatestFirst () const |
As sorted copy. | |
CAircraftSituationList | getLatestAdjustedTwoObjects (bool alreadySortedLatestFirst=false) const |
Get the latest 2 values. | |
void | sortAdjustedOldestFirst () |
Sort by adjusted timestamp. | |
bool | containsZeroOrNegativeOffsetTime () const |
Any negative or zero offset time? | |
bool | containsNegativeOffsetTime () const |
Any negative offset time? | |
void | addMsecsToOffset (qint64 msToAdd) |
Adds a time to all offset values. | |
void | push_frontKeepLatestAdjustedFirst (const CAircraftSituation &value, bool replaceSameTimestamp=true, int maxElements=-1) |
Insert as first element by keeping maxElements and the latest first. | |
void | push_frontKeepLatestFirstAdjustOffset (const CAircraftSituation &value, bool replaceSameTimestamp=true, int maxElements=-1) |
Insert as first element by keeping maxElements and the latest first. More... | |
void | push_frontKeepLatestFirstIgnoreOverlapping (const CAircraftSituation &value, bool replaceSameTimestamp=true, int maxElements=-1) |
Add value, but ignore overlapping (past) values. | |
void | prefillLatestAdjustedFirst (const CAircraftSituation &value, int elements, qint64 deltaTimeMs=-1) |
Prefill with elements. | |
bool | isSortedAdjustedLatestLast () const |
Is completely sorted: latest last. More... | |
bool | isSortedAdjustedLatestFirst () const |
Is completely sorted: latest last. More... | |
CAircraftSituationList | findAfterAdjusted (qint64 msSinceEpoch) const |
List of objects after msSinceEpoch (newer) | |
CAircraftSituation | findObjectAfterAdjustedOrDefault (qint64 msSinceEpoch) const |
List of objects after msSinceEpoch (newer) | |
CAircraftSituationList | findBeforeAdjusted (qint64 msSinceEpoch) const |
List of objects before msSinceEpoch (older) | |
CAircraftSituation | findObjectBeforeAdjustedOrDefault (qint64 msSinceEpoch) const |
Object before timestamp (older) | |
CAircraftSituation | findClosestTimeDistanceAdjusted (qint64 msSinceEpoch) const |
Closest adjusted time difference. | |
CAircraftSituation | latestAdjustedObject () const |
Latest adjusted object. | |
CAircraftSituation | oldestAdjustedObject () const |
Oldest adjusted object. | |
QDateTime | latestAdjustedTimestamp () const |
Latest adjusted timestamp. | |
QDateTime | oldestAdjustedTimestamp () const |
Oldest adjusted timestamp. | |
qint64 | latestAdjustedTimestampMsecsSinceEpoch () const |
Latest adjusted timestamp. | |
qint64 | oldestAdjustedTimestampMsecsSinceEpoch () const |
Oldest adjusted timestamp. | |
void | setAdjustedSortHint (HintAdjustedTimestampSort hint) |
Set the hint. | |
MillisecondsMinMaxMean | getOffsetMinMaxMean () const |
Difference of timestamp values. More... | |
![]() | |
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... | |
![]() | |
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. | |
CAircraftSituationList | findByCallsign (const CCallsign &callsign) const |
Find 0..n stations by callsign. | |
CAircraftSituationList | findByCallsigns (const CCallsignSet &callsigns) const |
Find 0..n aircraft matching any of a set of callsigns. | |
CAircraftSituation | findFirstByCallsign (const CCallsign &callsign, const CAircraftSituation &ifNotFound={}) const |
Find the first aircraft by callsign, if none return given one. | |
CAircraftSituation | findLastByCallsign (const CCallsign &callsign, const CAircraftSituation &ifNotFound={}) const |
Find the back object by callsign, if none return given one. | |
CAircraftSituationList | 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, CAircraftSituationList > | splitPerCallsign () const |
Split into 0..n containers as per callsign. | |
int | replaceOrAddObjectByCallsign (const CAircraftSituation &otherObject) |
Replace or add objects by callsign. | |
int | replaceOrAddObjectsByCallsign (const CAircraftSituationList &others) |
Replace or add objects by callsign. | |
int | incrementalUpdateOrAdd (const CAircraftSituation &objectBeforeChanges, const CPropertyIndexVariantMap &changedValues) |
Incremental update or add object. | |
void | sortByCallsign () |
Sort by callsign. | |
QMap< CCallsign, CAircraftSituation > | asCallsignMap () const |
Turn into callsign map. | |
QHash< CCallsign, CAircraftSituation > | asCallsignHash () const |
Turn into callsign hash. | |
CAircraftSituationList | sortedByCallsign () const |
Copy of list sorted by callsign. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
typedef CAircraftSituation | key_type |
STL compatibility. | |
typedef CAircraftSituation | value_type |
STL compatilibty. | |
typedef CAircraftSituation & | reference |
STL compatibility. | |
typedef const CAircraftSituation & | const_reference |
STL compatibility. | |
typedef CAircraftSituation * | pointer |
STL compatibility. | |
typedef const CAircraftSituation * | const_pointer |
STL compatibility. | |
typedef QVector< CAircraftSituation >::const_iterator | const_iterator |
STL compatibility. | |
typedef QVector< CAircraftSituation >::iterator | iterator |
STL compatibility. | |
typedef QVector< CAircraftSituation >::const_reverse_iterator | const_reverse_iterator |
STL compatibility. | |
typedef QVector< CAircraftSituation >::reverse_iterator | reverse_iterator |
STL compatibility. | |
typedef ptrdiff_t | difference_type |
STL compatibility. | |
typedef int | size_type |
STL compatibility. | |
![]() | |
using | MinMaxAverageHeight = std::tuple< aviation::CAltitude, aviation::CAltitude, aviation::CAltitude, int > |
For statistics. | |
![]() | |
enum | HintAdjustedTimestampSort |
Hint if the list is sorted. | |
![]() | |
enum | HintTimestampSort { NoTimestampSortHint , TimestampLatestFirst , TimestampLatestLast } |
Hint if the list is sorted. | |
![]() | |
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 void | registerMetadata () |
Register metadata. | |
![]() | |
static void | registerMetadata () |
Register metadata. | |
![]() | |
int | getMetaTypeId () const |
Returns the Qt meta type ID of this object. More... | |
![]() | |
IGeoObjectList () | |
Constructor. | |
const CAircraftSituationList & | container () const |
Container. | |
CAircraftSituationList & | container () |
Container. | |
![]() | |
ITimestampWithOffsetObjectList ()=default | |
Constructor. | |
![]() | |
ITimestampObjectList ()=default | |
Constructor. | |
const CONTAINER & | container () const |
Container. | |
CONTAINER & | container () |
Container. | |
![]() | |
ICallsignObjectList () | |
Constructor. | |
const CAircraftSituationList & | container () const |
Container. | |
CAircraftSituationList & | container () |
Container. | |
![]() | |
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. | |
![]() | |
HintAdjustedTimestampSort | m_tsAdjustedSortHint |
sort hint | |
![]() | |
HintTimestampSort | m_tsSortHint = NoTimestampSortHint |
sort hint | |
List of aircraft situations.
Definition at line 36 of file aircraftsituationlist.h.
bool swift::misc::aviation::CAircraftSituationList::containsPushBack | ( | ) | const |
Contains any push back?
Definition at line 246 of file aircraftsituationlist.cpp.
int swift::misc::aviation::CAircraftSituationList::transferElevationForward | ( | const physical_quantities::CLength & | radius = geo::CElevationPlane::singlePointRadius() | ) |
Transfer elevations forward from older to newer.
Definition at line 382 of file aircraftsituationlist.cpp.
CAircraftSituationList swift::misc::aviation::CAircraftSituationList::withoutFrontSituation | ( | ) | const |
Remove the first situation.
Definition at line 317 of file aircraftsituationlist.cpp.