swift
Public Types | Public Member Functions | List of all members
swift::misc::mixin::Index< Derived > Class Template Reference

CRTP class template from which a derived class can inherit property indexing functions. More...

Inherited by swift::misc::CValueObject< CPqString >, swift::misc::CValueObject< CUrlLog >, swift::misc::CValueObject< CFlightPlanAircraftInfo >, swift::misc::CValueObject< CAircraftSituation >, swift::misc::CValueObject< CAircraftModel >, swift::misc::CValueObject< CFacilityType >, swift::misc::CValueObject< CConnectionStatus >, swift::misc::CValueObject< CClient >, swift::misc::CValueObject< CAuthenticatedUser >, swift::misc::CValueObject< CUpdateInfo >, swift::misc::CValueObject< CModulator< AVIO > >, swift::misc::CValueObject< CGeneralGuiSettings >, swift::misc::CValueObject< CNavDataReference >, swift::misc::CValueObject< CInterpolationAndRenderingSetupPerCallsign >, swift::misc::CValueObject< CDistributor >, swift::misc::CValueObject< CInformationMessage >, swift::misc::CValueObject< CLogCategory >, swift::misc::CValueObject< CDatabaseReaderConfig >, swift::misc::CValueObject< CSimulatedAircraft >, swift::misc::CValueObject< CMatchingStatisticsEntry >, swift::misc::CValueObject< CTextMessage >, swift::misc::CValueObject< CRole >, swift::misc::CValueObject< CWakeTurbulenceCategory >, swift::misc::CValueObject< CComNavEquipment >, swift::misc::CValueObject< CRgbColor >, swift::misc::CValueObject< CAirspaceAircraftSnapshot >, swift::misc::CValueObject< CAirlineIcaoCode >, swift::misc::CValueObject< CAircraftCategory >, swift::misc::CValueObject< CIdentifier >, swift::misc::CValueObject< CLauncherSetup >, swift::misc::CValueObject< CFsxP3DSettings >, swift::misc::CValueObject< CSimulatorInternals >, swift::misc::CValueObject< CDbInfo >, swift::misc::CValueObject< CProcessInfo >, swift::misc::CValueObject< CDockWidgetSettings >, swift::misc::CValueObject< CTestFilter >, swift::misc::CValueObject< CXSwiftBusSettings >, swift::misc::CValueObject< CSimulatorInfo >, swift::misc::CValueObject< CCoordinateGeodetic >, swift::misc::CValueObject< CTransponder >, swift::misc::CValueObject< CViewUpdateSettings >, swift::misc::CValueObject< CCloudLayer >, swift::misc::CValueObject< CVPilotModelRule >, swift::misc::CValueObject< CDistributorListPreferences >, swift::misc::CValueObject< CUser >, swift::misc::CValueObject< CCallsign >, swift::misc::CValueObject< CAircraftSituationChange >, swift::misc::CValueObject< CAircraftEngine >, swift::misc::CValueObject< CPixmap >, swift::misc::CValueObject< CNameVariantPair >, swift::misc::CValueObject< CWindLayer >, swift::misc::CValueObject< CSimulatorSettings >, swift::misc::CValueObject< CInterpolationAndRenderingSetupGlobal >, swift::misc::CValueObject< CLoginMode >, swift::misc::CValueObject< CSelcal >, swift::misc::CValueObject< CLivery >, swift::misc::CValueObject< CFlightPlanRemarks >, swift::misc::CValueObject< CApplicationInfo >, swift::misc::CValueObject< CAircraftCfgEntries >, swift::misc::CValueObject< CRawFsdMessage >, swift::misc::CValueObject< CFsdSetup >, swift::misc::CValueObject< CEcosystem >, swift::misc::CValueObject< CAtcStation >, swift::misc::CValueObject< CSettings >, swift::misc::CValueObject< CCountry >, swift::misc::CValueObject< CSwiftPluginSettings >, swift::misc::CValueObject< CModelSettings >, swift::misc::CValueObject< CVoiceCapabilities >, swift::misc::CValueObject< CKeyboardKey >, swift::misc::CValueObject< CArtifact >, swift::misc::CValueObject< CSimBriefData >, swift::misc::CValueObject< CAircraftLights >, swift::misc::CValueObject< swift::core::vatsim::CRawFsdMessageSettings >, swift::misc::CValueObject< CGlobalSetup >, swift::misc::CValueObject< CAircraftVelocity >, swift::misc::CValueObject< CTestValueObject >, swift::misc::CValueObject< CCrashInfo >, swift::misc::CValueObject< CTextMessageSettings >, swift::misc::CValueObject< swift::core::vatsim::CReaderSettings >, swift::misc::CValueObject< CServer >, swift::misc::CValueObject< CAudioDeviceInfo >, swift::misc::CValueObject< CDirectories >, swift::misc::CValueObject< CVatsimSetup >, swift::misc::CValueObject< CAnyMatch >, swift::misc::CValueObject< COnGroundInfo >, swift::misc::CValueObject< CStatusMessage >, swift::misc::CValueObject< CPlatform >, swift::misc::CValueObject< CMetar >, swift::misc::CValueObject< CSimulatorMessagesSettings >, swift::misc::CValueObject< CFGSwiftBusSettings >, swift::misc::CValueObject< CUrl >, swift::misc::CValueObject< CRemoteFile >, swift::misc::CValueObject< CHotkeyCombination >, swift::misc::CValueObject< CDistribution >, swift::misc::CValueObject< CAirport >, swift::misc::CValueObject< CSimulatorPluginInfo >, swift::misc::CValueObject< CSsrEquipment >, swift::misc::CValueObject< CAircraftIcaoCode >, swift::misc::CValueObject< CNavigatorSettings >, swift::misc::CValueObject< CPresentWeather >, swift::misc::CValueObject< CAircraftMatcherSetup >, swift::misc::CValueObject< CJoystickButton >, swift::misc::CValueObject< CActionHotkey >, swift::misc::CValueObject< CFlightPlan >, swift::misc::CValueObject< CAirportIcaoCode >, swift::misc::CValueObject< CAircraftParts >, swift::misc::physical_quantities::CPhysicalQuantity< CMassUnit, CMass >, swift::misc::physical_quantities::CPhysicalQuantity< CAngleUnit, CAngle >, swift::misc::physical_quantities::CPhysicalQuantity< CTimeUnit, CTime >, swift::misc::physical_quantities::CPhysicalQuantity< CPressureUnit, CPressure >, swift::misc::physical_quantities::CPhysicalQuantity< CAccelerationUnit, CAcceleration >, swift::misc::physical_quantities::CPhysicalQuantity< CSpeedUnit, CSpeed >, swift::misc::physical_quantities::CPhysicalQuantity< CLengthUnit, CLength >, swift::misc::physical_quantities::CPhysicalQuantity< CTemperatureUnit, CTemperature >, swift::misc::physical_quantities::CPhysicalQuantity< CFrequencyUnit, CFrequency >, and swift::misc::CValueObject< Derived >.

Public Types

enum  ColumnIndex { IndexPixmap = 10 , IndexIcon , IndexString }
 Base class enums.
 

Public Member Functions

CPropertyIndexList apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false)
 Update by variant map. More...
 
void setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant)
 Set property by index.
 
QVariant propertyByIndex (CPropertyIndexRef index) const
 Property by index.
 
int comparePropertyByIndex (CPropertyIndexRef index, const Derived &compareValue) const
 Compare for index.
 
bool equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const
 Is given variant equal to value of property index?
 

Detailed Description

template<class Derived>
class swift::misc::mixin::Index< Derived >

CRTP class template from which a derived class can inherit property indexing functions.

This is only a placeholder for future support of implementing property indexing through the tuple system. At the moment, it just implements the default properties: String, Icon, and Pixmap.

Definition at line 39 of file mixinindex.h.

Member Function Documentation

◆ apply()

template<class Derived >
CPropertyIndexList swift::misc::mixin::Index< Derived >::apply ( const CPropertyIndexVariantMap indexMap,
bool  skipEqualValues = false 
)

Update by variant map.

Returns
number of values changed, with skipEqualValues equal values will not be changed

Definition at line 146 of file propertyindexvariantmap.h.


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