swift
Public Member Functions | Protected Member Functions | List of all members
swift::misc::aviation::ICallsignObjectList< OBJ, CONTAINER > Class Template Reference

List of objects with callsign. More...

Public Member Functions

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.
 
CONTAINER findByCallsign (const CCallsign &callsign) const
 Find 0..n stations by callsign.
 
CONTAINER findByCallsigns (const CCallsignSet &callsigns) const
 Find 0..n aircraft matching any of a set of callsigns.
 
OBJ findFirstByCallsign (const CCallsign &callsign, const OBJ &ifNotFound={}) const
 Find the first aircraft by callsign, if none return given one.
 
OBJ findLastByCallsign (const CCallsign &callsign, const OBJ &ifNotFound={}) const
 Find the back object by callsign, if none return given one.
 
CONTAINER 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, CONTAINER > splitPerCallsign () const
 Split into 0..n containers as per callsign.
 
int replaceOrAddObjectByCallsign (const OBJ &otherObject)
 Replace or add objects by callsign.
 
int replaceOrAddObjectsByCallsign (const CONTAINER &others)
 Replace or add objects by callsign.
 
int incrementalUpdateOrAdd (const OBJ &objectBeforeChanges, const CPropertyIndexVariantMap &changedValues)
 Incremental update or add object.
 
void sortByCallsign ()
 Sort by callsign.
 
QMap< CCallsign, OBJ > asCallsignMap () const
 Turn into callsign map.
 
QHash< CCallsign, OBJ > asCallsignHash () const
 Turn into callsign hash.
 
CONTAINER sortedByCallsign () const
 Copy of list sorted by callsign.
 

Protected Member Functions

 ICallsignObjectList ()
 Constructor.
 
const CONTAINER & container () const
 Container.
 
CONTAINER & container ()
 Container.
 

Detailed Description

template<class OBJ, class CONTAINER>
class swift::misc::aviation::ICallsignObjectList< OBJ, CONTAINER >

List of objects with callsign.

Definition at line 21 of file callsignobjectlist.h.

Member Function Documentation

◆ getSuffixes()

template<class OBJ , class CONTAINER >
QStringList swift::misc::aviation::ICallsignObjectList< OBJ, CONTAINER >::getSuffixes ( ) const
inline

All suffixes, in the order of the list.

Remarks
first found suffixes first

Definition at line 138 of file callsignobjectlist.h.

◆ getSuffixesAndCount()

template<class OBJ , class CONTAINER >
QMap<QString, int> swift::misc::aviation::ICallsignObjectList< OBJ, CONTAINER >::getSuffixesAndCount ( ) const
inline

All suffixes with their respective count.

Remarks
since using QMap sorted by suffix

Definition at line 123 of file callsignobjectlist.h.


The documentation for this class was generated from the following file: