swift
Public Types | Public Member Functions | Static Public Member Functions | List of all members
swift::misc::CPropertyIndexRef Class Reference

Non-owning reference to a CPropertyIndex with a subset of its features. More...

Public Types

enum  GlobalIndex {
  GlobalIndexCValueObject = 10 , GlobalIndexCPhysicalQuantity = 100 , GlobalIndexCStatusMessage = 200 , GlobalIndexCNameVariantPair = 300 ,
  GlobalIndexITimestampBased = 400 , GlobalIndexIOrderable = 500 , GlobalIndexINullable = 600 , GlobalIndexCIdentifier = 700 ,
  GlobalIndexCRgbColor = 800 , GlobalIndexCCountry = 900 , GlobalIndexCPlatform = 1000 , GlobalIndexCApplicationInfo = 1100 ,
  GlobalIndexCDirectories = 1200 , GlobalIndexCCrashInfo = 1300 , GlobalIndexCCrashSettings = 1400 , GlobalIndexCAircraftVelocity = 1900 ,
  GlobalIndexCCallsign = 2000 , GlobalIndexCAircraftSituation = 2100 , GlobalIndexCAircraftSituationChange = 2200 , GlobalIndexCAtcStation = 2300 ,
  GlobalIndexCInformationMessage = 2400 , GlobalIndexCAirport = 2500 , GlobalIndexCAircraftParts = 2600 , GlobalIndexCAircraftLights = 2700 ,
  GlobalIndexCLivery = 2800 , GlobalIndexCFlightPlan = 2900 , GlobalIndexCSimBriefData = 3000 , GlobalIndexCComSystem = 3100 ,
  GlobalIndexCModulator = 3200 , GlobalIndexCTransponder = 3300 , GlobalIndexCAircraftCategory = 3500 , GlobalIndexCAircraftIcaoCode = 3600 ,
  GlobalIndexCAirlineIcaoCode = 3700 , GlobalIndexCAirportIcaoCode = 3800 , GlobalIndexCMetar = 4000 , GlobalIndexCCloudLayer = 4100 ,
  GlobalIndexCPresentWeather = 4200 , GlobalIndexCWindLayer = 4300 , GlobalIndexCWeatherScenario = 4700 , GlobalIndexCOnGroundInfo = 4800 ,
  GlobalIndexICoordinateGeodetic = 5000 , GlobalIndexICoordinateWithRelativePosition = 5100 , GlobalIndexCCoordinateGeodetic = 5200 , GlobalIndexCElevationPlane = 5300 ,
  GlobalIndexCClient = 6000 , GlobalIndexCUser = 6100 , GlobalIndexCAuthenticatedUser = 6200 , GlobalIndexCRole = 6300 ,
  GlobalIndexCServer = 6400 , GlobalIndexCFsdSetup = 6500 , GlobalIndexCUrl = 6800 , GlobalIndexCUrlLog = 6900 ,
  GlobalIndexCRemoteFile = 7000 , GlobalIndexCEcosystem = 7100 , GlobalIndexCRawFsdMessage = 7200 , GlobalIndexCAircraftModel = 8000 ,
  GlobalIndexCSimulatedAircraft = 8100 , GlobalIndexCTextMessage = 8200 , GlobalIndexCSimulatorInternals = 8300 , GlobalIndexCSimulatorSettings = 8400 ,
  GlobalIndexCSwiftPluignSettings = 8500 , GlobalIndexCSimulatorMessageSettings = 8600 , GlobalIndexCModelSettings = 8700 , GlobalIndexCAircraftCfgEntries = 8800 ,
  GlobalIndexCDistributor = 8900 , GlobalIndexCVPilotModelRule = 9000 , GlobalIndexCAudioDeviceInfo = 10000 , GlobalIndexCSettingKeyboardHotkey = 11000 ,
  GlobalIndexCKeyboardKey = 11100 , GlobalIndexCJoystickButton = 11200 , GlobalIndexIDatastore = 12000 , GlobalIndexIDatastoreInteger = 12100 ,
  GlobalIndexIDatastoreString = 12200 , GlobalIndexCDbInfo = 12300 , GlobalIndexCGlobalSetup = 13000 , GlobalIndexCArtifact = 13100 ,
  GlobalIndexCDistribution = 13200 , GlobalIndexCUpdateInfo = 13300 , GlobalIndexCVatsimSetup = 13400 , GlobalIndexCLauncherSetup = 13500 ,
  GlobalIndexCGuiStateDbOwnModelsComponent = 14000 , GlobalIndexCGuiStateDbOwnModelSetComponent = 14100 , GlobalIndexCDockWidgetSettings = 14200 , GlobalIndexCNavigatorSettings = 14300 ,
  GlobalIndexCSettingsReaders = 14400 , GlobalIndexCViewUpdateSettings = 14500 , GlobalIndexCGeneralGuiSettings = 14600 , GlobalIndexCTextMessageSettings = 14700 ,
  GlobalIndexCAtcStationsSettings = 14800 , GlobalIndexRawFsdMessageSettings = 14900 , GlobalIndexCInterpolatioRenderingSetup = 16000 , GlobalIndexCMatchingStatisticsEntry = 16100 ,
  GlobalIndexCAircraftMatcherSetup = 16200 , GlobalIndexCXSwiftBusSettings = 16300 , GlobalIndexCFGSwiftBusSettings = 16400 , GlobalIndexSwiftPilotClient = 17000 ,
  GlobalIndexSwiftCore = 17100 , GlobalIndexSwiftLauncher = 17200 , GlobalIndexLineNumber = 20000 , GlobalIndexEmpty = 20001
}
 Global index, make sure the indexes are unqiue (for using them in class hierarchy) More...
 

Public Member Functions

 CPropertyIndexRef (int index)
 Construct from a single index.
 
 CPropertyIndexRef (const QVector< int > &indexes)
 Construct from the data of a CPropertyIndex.
 
 CPropertyIndexRef (QVector< int > &&)=delete
 Forbid accidental constructor from an rvalue.
 
Q_REQUIRED_RESULT CPropertyIndexRef copyFrontRemoved () const
 Copy with first element removed.
 
bool isNested () const
 Is nested index?
 
bool isMyself () const
 Myself index, used with nesting.
 
bool isEmpty () const
 Empty?
 
int frontToInt () const
 Front to integer.
 
bool startsWith (int index) const
 Starts with given index?
 
QString toQString (bool i18n=false) const
 Cast as QString. More...
 
template<class CastType >
CastType frontCasted () const
 First element casted to given type, usually the PropertIndex enum.
 
template<class EnumType >
bool startsWithPropertyIndexEnum (EnumType ev) const
 Compare with index given by enum.
 
auto comparator () const
 Return a predicate function which can compare two objects based on this index.
 

Static Public Member Functions

static CPropertyIndexRef empty ()
 an empty property index
 

Detailed Description

Non-owning reference to a CPropertyIndex with a subset of its features.

Definition at line 19 of file propertyindexref.h.

Member Enumeration Documentation

◆ GlobalIndex

Global index, make sure the indexes are unqiue (for using them in class hierarchy)

Enumerator
GlobalIndexLineNumber 

pseudo index for line numbers

Definition at line 23 of file propertyindexref.h.

Member Function Documentation

◆ toQString()

QString swift::misc::CPropertyIndexRef::toQString ( bool  i18n = false) const

Cast as QString.

Definition at line 48 of file propertyindexref.cpp.


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