Oolite 1.91.0.7604-240417-a536cbe
Loading...
Searching...
No Matches
Classes | Functions | Variables
OOProbabilitySet.m File Reference
import "OOProbabilitySet.h"
import "OOFunctionAttributes.h"
import "OOCollectionExtractors.h"
import "legacy_random.h"
+ Include dependency graph for OOProbabilitySet.m:

Go to the source code of this file.

Classes

protocol  <OOProbabilitySetEnumerable>
 
category  OOProbabilitySet(OOPrivate)
 
class  OOEmptyProbabilitySet
 
class  OOSingleObjectProbabilitySet
 
class  OOConcreteProbabilitySet
 
class  OOConcreteMutableProbabilitySet
 
class  OOProbabilitySetEnumerator
 

Functions

static void ThrowAbstractionViolationException (id obj) GCC_ATTR((noreturn))
 

Variables

static NSString *const kObjectsKey = @"objects"
 
static NSString *const kWeightsKey = @"weights"
 
static OOEmptyProbabilitySetsOOEmptyProbabilitySetSingleton = nil
 
 __pad0__
 
return nil
 
return self
 

Function Documentation

◆ ThrowAbstractionViolationException()

static void ThrowAbstractionViolationException ( id obj)
static

Definition at line 1076 of file OOProbabilitySet.m.

1076{
1077 [NSException raise:NSGenericException format:@"Attempt to use abstract class %@ - this indicates an incorrect initialization.", [obj class]];
1078 abort(); // unreachable
1079}

Variable Documentation

◆ __pad0__

__pad0__

Definition at line 121 of file OOProbabilitySet.m.

◆ kObjectsKey

NSString* const kObjectsKey = @"objects"
static

Definition at line 54 of file OOProbabilitySet.m.

◆ kWeightsKey

NSString* const kWeightsKey = @"weights"
static

Definition at line 55 of file OOProbabilitySet.m.

◆ nil

return nil

Definition at line 449 of file OOProbabilitySet.m.

Referenced by ShipEntity::absoluteIJKForSubentity, ShipEntity::absoluteTractorPosition, OODefaultShaderSynthesizer::addAttribute:ofType:, AddColorIfAppropriate(), CollisionRegion::addEntity:, Universe::addEntity:, AdditionalLogHeaderInfo(), AddMacroColorIfAppropriate(), CollisionRegion::addSubregionAtPosition:withRadius:, AddTexture(), ProxyPlayerEntity::alertCondition, OONullTexture(Singleton)::allocWithZone:, OOSoundMixer(Singleton)::allocWithZone:, OOGraphicsResetManager(Singleton)::allocWithZone:, OOEntityWithDrawable::allTextures, OOSingleTextureMaterial::allTextures, AlwaysFalseConditions(), OORoleSet::anyRole, AppendCharacters(), ApplyColor(), ApplyOneOperator(), ApplyOperators(), ApplyStringFilter(), ApplyStringTest(), NSArray(OODebugInspectorSupportUtilities)::arrayByAddingInspectorModuleOfClass:forObject:, OOJavaScriptEngine::arrayClass, ArrayForErrorReport(), ArrayOfExtensions(), OODefaultShaderSynthesizer::assignIDForTexture:, OOObjectDebugInspectorModule::awakeFromNib, OODebugInspector::bringToFront, OOSystemDescriptionManager::buildRouteCache, CacheArrayOfContentsByAge(), CacheArrayOfNodesByAge(), CacheInsert(), CacheNodeAllocate(), CacheNodeFree(), CacheNodeGetValue(), CacheRetrieve(), CallerPrefix(), CanonicalizeMaterialSpecifier(), OOFileScannerVerifierStage(OOPrivate)::checkConfigFiles, OOOpenGLExtensionManager(OOPrivate)::CheckRegExps, PlayerEntity(Scripting)::checkScript, ClassifyLHSConditionSelector(), AI::clearAllData, ClockAddSeconds(), ClockClockStringForTime(), NSFileManager(OOExtensions)::commanderContentsOfPath:, OOScriptTimer::compareByNextFireTime:, CompareVersions(), CompiledScriptData(), CompileSystemDescriptions(), ComponentsFromVersionString(), ConfigDictionary(), OOMacDebugger::configurationBoolValueForKey:, ConsoleClearConsole(), ConsoleConsoleMessage(), ConsoleDisplayMessagesInClass(), ConsoleFinalize(), ConsoleInspectEntity(), ConsoleSetDisplayMessagesInClass(), ConsoleSettingsDeleteProperty(), ConsoleSettingsGetProperty(), ConsoleSettingsSetProperty(), ConvertIndicesToKeys(), ConvertKeysToIndices(), CopyDataFromFile(), CopyTemplateForSelector(), OOShipGroup::countByEnumeratingWithState:objects:count:, PlayerEntity(Scripting)::CurrentScriptNameOr, OOLaserShotEntity::dealloc, OORegExpMatcher::dealloc, OOJSFunction::dealloc, OOManifest::dealloc, OOJSTimer::dealloc, AI(OOAIDebugInspectorModule)::debugInspectorModules, DebugMonitorToJSConsole(), OODockTilePlugIn::DESC, DescribeValue(), OOScript::descriptionComponents, NSDictionary(OOExtensions)::dictionaryByAddingEntriesFromDictionary:, DirectoryExistCreatingIfNecessary(), DockGetProperty(), DockSetProperty(), GuiDisplayGen(Internal)::drawAdvancedNavArrayAtX:y:z:alpha:usingRoute:optimizedBy:zoom:, HeadUpDisplay(Private)::drawASCTarget:, DumpStringAddrs(), ShipEntity(ScriptMethods)::ejectShipOfRole:, EntityDumpState(), EntityFromArgumentList(), EntityGetProperty(), EntitySetProperty(), EquipmentInfoGetProperty(), EquipmentInfoSetProperty(), Error(), ErrorTypeMismatch(), ErrorWithDictionary(), ErrorWithDictionaryAndArguments(), ErrorWithProperty(), ExhaustPlumeGetProperty(), ExhaustPlumeSetProperty(), Expand(), ExpandDigitKey(), ExpandKey(), ExpandLegacyScriptSelectorKey(), ExpandPercentEscape(), ExpandStringKey(), ExpandStringKeyFromDescriptions(), ExpandStringKeyKeyboardBinding(), ExpandStringKeyMissionVariable(), ExpandStringKeyOverride(), ExpandStringKeySpecial(), ExpandSystemNameEscape(), ExpandSystemNameForGalaxyEscape(), ExportSystemDescriptions(), FindJSVisibleEntities(), FlasherGetProperty(), FlasherSetProperty(), FloatRGBFromDictColor(), FontMeasureString(), GatherStringAddrsArray(), GatherStringAddrsDict(), GetAppName(), GetCPUDescription(), DockEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOSunEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOExhaustPlumeEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOFlasherEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOVisualEffectEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOWaypointEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, WormholeEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GetJSSystemInfoForSystem(), GetMetadataForExpansionPack(), GetMetadataForSaveFile(), GetNamedSound(), GetParameterDictionary(), GetParameterImageDescriptor(), GetParameterString(), OODockTilePlugIn::GetPreference, GameController::GetPreference, GetRandomNameN(), GetRandomNameR(), GetRelativeToAndRange(), GetRGBAArrayFromInfo(), GetShaderSource(), GetSysCtlString(), GetSystemDescriptions(), GetSystemName(), GetSystemNameIan(), GlobalAddFrameCallback(), GlobalAutoAIForRole(), GlobalClearExtraGuiScreenKeys(), GlobalDisplayNameForCommodity(), GlobalExpandDescription(), GlobalExpandMissionText(), GlobalGetGuiColorSettingForKey(), GlobalGetScreenBackgroundForKey(), GlobalIsValidFrameCallback(), GlobalKeyBindingDescription(), GlobalLog(), GlobalRandomInhabitantsDescription(), GlobalRemoveFrameCallback(), GlobalSetExtraGuiScreenKeys(), GlobalSetGuiColorSettingForKey(), GlobalSetScreenBackground(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenOverlay(), GlobalTakeSnapShot(), GroupIDForGroup(), HighestIndex(), HeadUpDisplay::hudDrawReticleOnTarget, IndexToKey(), OOSound::init, OOOpenALController::init, InitCrashReporterInfo(), InitKeyToIndexDict(), HeadUpDisplay::InitTextEngine(void), InitTrumbleSounds(), NSObject(OOInspectorExtensions)::inspBasicIdentityLine, NSThread(MethodsThatMayExistDependingOnSystem)::isMainThread, JAPathFromPersistentFileReference(), JAPersistentFileReferenceFromURL(), JAURLFromPersistentFileReference(), PlayerEntity(OOJavaScriptExtensions)::javaScriptEngineWillReset:, JSArrayConverter(), JSArrayFromNSArray(), JSDockGetDockEntity(), JSDockGetShipEntity(), JSExhaustPlumeGetExhaustPlumeEntity(), JSFlasherGetFlasherEntity(), JSFunctionPredicate(), JSIDToStrSafeDbg(), JSNumberConverter(), JSObjectFromNSDictionary(), JSStationGetShipEntity(), JSStationGetStationEntity(), JSValueToEquipmentKeyRelaxed(), JSValueToEquipmentType(), JSValueToStrSafeDbg(), JSVisualEffectGetVisualEffectEntity(), JSWaypointGetWaypointEntity(), JSWormholeGetWormholeEntity(), KeyForPropertyID(), KeyPathToArray(), KeyToIndex(), LoadExplicitSettings(), LoadExplicitSettingsFromDictionary(), LoadScriptWithName(), LookUpLegacySelector(), ManifestComment(), ManifestGetProperty(), ManifestSetComment(), ManifestShortComment(), NSMutableDictionary(OOExtensions)::mergeEntriesFromDictionary:, MergeShipData(), MergeShipDataEntry(), MissionAddMessageText(), MissionGetProperty(), MissionMarkSystem(), MissionRunCallback(), MissionRunScreen(), MissionSetInstructionsInternal(), MissionUnmarkSystem(), MissionVariablesEnumerate(), MissionVariablesGetProperty(), MissionVariablesSetProperty(), ModulateColor(), NSDictionary(OOMateralProperties)::oo_ambientColor, OOEquipmentType(OOJavaScriptExtensions)::oo_clearJSSelf:, OOShipGroup(OOJavaScriptExtensions)::oo_clearJSSelf:, OOSound(OOJavaScriptExtentions)::oo_jsClassName, OOSoundSource(OOJavaScriptExtentions)::oo_jsClassName, OOALGetConstantString(), OOCheckOpenGLErrors(), OOConvertSystemDescriptionsToArrayFormat(), OOConvertSystemDescriptionsToDictionaryFormat(), NSObject(OODeepCopy)::ooDeepCopyWithSharedObjects:, OODefaultShipShaderMacros(), OODisplayRatingStringFromKillCount(), OODisplayStringFromEconomyID(), OODisplayStringFromGovernmentID(), OODisplayStringFromLegalStatus(), HeadUpDisplay::OODrawStringQuadsAligned, OOExpandDescriptionString(), OOGenerateSystemDescription(), OOGetPlayer(), OOHPVectorFromObject(), OOInterpretTextureSpecifier(), OOIsNumberLiteral(), OOIsPlayerStale(), OOIsStaleEntity(), OOJSCallObjCObjectMethod(), OOJSDescribeLocation(), OOJSDictionaryFromJSObject(), OOJSDictionaryFromJSValue(), OOJSDictionaryFromStringTable(), OOJSDumpStack(), OOJSIDFromString(), OOJSNativeObjectFromJSObject(), OOJSNativeObjectFromJSValue(), OOJSNativeObjectOfClassFromJSObject(), OOJSNativeObjectOfClassFromJSValue(), OOJSObjectGetterImplPRIVATE(), OOJSObjectWrapperFinalize(), OOJSObjectWrapperToString(), OOJSRegisterObjectConverter(), OOJSReportBadArguments(), OOJSReportErrorForCaller(), OOJSReportErrorWithArguments(), OOJSReportWarningForCaller(), OOJSReportWarningWithArguments(), OOJSValueFromNativeObject(), OoliteCompareVersion(), OoliteGetProperty(), OOLogAbbreviatedFileName(), OOLogGetParentMessageClass(), OOLoggingInit(), OOLogHandlerGetLogBasePath(), OOLogInsertMarker(), OOLogInternal_(), OOLogOutputHandlerInit(), OOLogOutputHandlerPrint(), OOLogPopIndent(), OOLogPushIndent(), OOLogSetDisplayMessagesInClass(), OOLogWillDisplayMessagesInClass(), OOLogWithFunctionFileAndLineAndArguments(), OOLookUpDescriptionPRIV(), OOLookUpPluralDescriptionPRIV(), OOMakeTextureSpecifier(), OOParseRolesFromString(), OOPrintLogHeader(), OOPropertyListFromData(), OOPropertyListFromFile(), OOQuaternionFromObject(), HeadUpDisplay::OORectFromString, OOSanitizeLegacyScriptConditions(), OOSanitizeLegacyScriptConditionsInternal(), OOSanitizeLegacyScriptInternal(), OOShipLibraryCargo(), OOShipLibraryGenerator(), OOShipLibraryShields(), OOShipLibrarySpeed(), OOShipLibraryTurnRate(), OOStringFromDeciCredits(), OOStringFromJSID(), OOStringFromJSString(), OOStringFromJSValue(), OOStringFromWeaponType(), OOStringifySystemDescriptionLine(), OOSynthesizeMaterialShader(), OOTextureSpecFromObject(), OOUniformBindingPermitted(), OOVectorFromObject(), OOWeaponTypeFromEquipmentIdentifierSloppy(), NSString(OOUtilities)::pathHasExtension:, PlayerEntity(Scripting)::PerformActionStatment, PlayerEntity(Scripting)::PerformConditionalStatment, PlayerEntity(Scripting)::PerformScriptActions, PlanetGetProperty(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerCommsMessage(), PlayerConsoleMessage(), PlayerEndScenario(), PlayerGetProperty(), PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerSetPlayerRole(), PlayerSetProperty(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipCancelDockingRequest(), PlayerShipEngageAutopilotToStation(), PlayerShipGetProperty(), PlayerShipHideHUDSelector(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipRequestDockingClearance(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomView(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipSetProperty(), PlayerShipShowHUDSelector(), PlayerShipUseSpecialCargo(), CollisionRegion::positionIsWithinRegion, QueueDeferredOperation(), RandomSeedFromString(), RemoveOrExplodeShip(), OODockTilePlugIn::RemovePreference, ReportJSError(), ResolveDisplaySetting(), ResolveMetaClassReference(), RunDeferredOperations(), SanitizeActionMethod(), SanitizeActionStatement(), SanitizeCondition(), SanitizeConditionalStatement(), SanitizeQueryMethod(), SaturatedColorInRange(), ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, ScanQuaternionFromString(), ScanTokensFromString(), ScanVectorAndQuaternionFromString(), ScanVectorFromString(), PlayerEntity(Scripting)::scriptTarget, ScriptWithCompiledData(), SetGLColourFromInfo(), NSObject(OODebugPlugInController)::setUpDebugger, ShipAbandonShip(), ShipAddCargoEntity(), ShipAddCollisionException(), ShipAddDefenseTarget(), ShipAdjustCargo(), ShipAwardEquipment(), ShipBecomeCascadeExplosion(), ShipBroadcastCascadeImminent(), ShipBroadcastDistressMessage(), ShipCanAwardEquipment(), ShipCheckCourseToDestination(), ShipCheckScanner(), ShipClearDefenseTargets(), ShipCommsMessage(), ShipDamageAssessment(), ShipDealEnergyDamage(), ShipDeployEscorts(), ShipDockEscorts(), ShipDumpCargo(), ShipEjectItem(), ShipEjectSpecificItem(), ShipEnterWormhole(), ShipEquipmentStatus(), ShipExitAI(), ShipExitSystem(), ShipFindNearestStation(), ShipFireECM(), ShipFireMissile(), ShipGetMaterials(), ShipGetProperty(), ShipGetSafeCourseToDestination(), ShipGetShaders(), ShipGroupAddShip(), ShipGroupConstruct(), ShipGroupGetProperty(), ShipGroupRemoveShip(), ShipGroupSetProperty(), ShipHasEquipmentProviding(), ShipHasRole(), ShipMarkTargetForFines(), ShipNotifyGroupOfWormhole(), ShipOfferToEscort(), ShipPatrolReportIn(), ShipPerformAttack(), ShipPerformCollect(), ShipPerformEscort(), ShipPerformFaceDestination(), ShipPerformFlee(), ShipPerformFlyToRangeFromDestination(), ShipPerformHold(), ShipPerformIdle(), ShipPerformIntercept(), ShipPerformLandOnPlanet(), ShipPerformMining(), ShipPerformScriptedAI(), ShipPerformScriptedAttackAI(), ShipPerformStop(), ShipPerformTumble(), ShipReactToAIMessage(), ShipRecallDockingInstructions(), ShipRemove(), ShipRemoveCollisionException(), ShipRemoveDefenseTarget(), ShipRemoveEquipment(), ShipRequestDockingInstructions(), ShipRequestHelpFromGroup(), ShipRestoreSubEntities(), ShipRunLegacyScriptActions(), ShipSelectNewMissile(), ShipSendAIMessage(), ShipSetAI(), ShipSetBounty(), ShipSetCargo(), ShipSetCargoType(), ShipSetCrew(), ShipSetEquipmentStatus(), ShipSetMaterials(), ShipSetMaterialsInternal(), ShipSetProperty(), ShipSetScript(), ShipSetShaders(), ShipSpawn(), ShipStaticKeysForRole(), ShipStaticRoleIsInCategory(), ShipStaticSetShipDataForKey(), ShipStaticShipDataForKey(), ShipSwitchAI(), ShipThreatAssessment(), ShipThreatAssessmentWeapon(), ShipThrowSpark(), ShipUpdateEscortFormation(), SignatureMatch(), SoundGetProperty(), SoundSourceGetProperty(), SoundSourcePlay(), SoundSourceSetProperty(), SoundSourceStop(), SoundStaticLoad(), SoundStaticMusicSoundSource(), SoundStaticPlayMusic(), SpecialJSWarning(), CollisionRegion::sphereIsWithinRegion, StationAbortAllDockings(), StationAbortDockingForShip(), StationAddShipToShipyard(), StationCanDockShip(), StationDecreaseAlertLevel(), StationDockPlayer(), StationGetProperty(), StationIncreaseAlertLevel(), StationLaunchDefenseShip(), StationLaunchEscort(), StationLaunchMiner(), StationLaunchPatrol(), StationLaunchPirateShip(), StationLaunchPolice(), StationLaunchScavenger(), StationLaunchShipWithRole(), StationLaunchShuttle(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketQuantity(), StationSetProperty(), StringForErrorReport(), StringFromEncoding(), StringFromStackInternal(), StringOrArrayForErrorReport(), StringToSchemaType(), StripIgnoredKeys(), StrippedName(), SunGetProperty(), SunGoNova(), SVGDumpAppendBaseContour(), SVGDumpAppendTriangle(), SVGDumpBeginGroup(), SVGDumpBeginPrimitive(), SVGDumpEnd(), SVGDumpEndGroup(), SVGDumpEndPrimitive(), SynthDiffuse(), SynthEmissionAndIllumination(), SynthNormalMap(), SynthSpecular(), SystemAddMoon(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemFilteredEntities(), SystemGetProperty(), SystemInfoDistanceToSystem(), SystemInfoEnumerate(), SystemInfoFinalize(), SystemInfoGetProperty(), SystemInfoRouteToSystem(), SystemInfoSamplePrice(), SystemInfoSetPropertyMethod(), SystemInfoStaticFilteredSystems(), SystemInfoStaticSetInterstellarProperty(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemLocationFromCode(), SystemSetPopulator(), SystemSetProperty(), SystemSetWaypoint(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemStaticInfoForSystem(), SystemStaticSystemIDForName(), SystemStaticSystemNameForID(), SystemToString(), TimerConstruct(), TimerFinalize(), TimerGetProperty(), TimerSetProperty(), TimerStart(), TreeInsert(), TreeSplay(), ValueIfClass(), VectorFromCoordinateSystem(), VectorToCoordinateSystem(), Verify_Array(), Verify_Boolean(), Verify_DelegatedType(), Verify_Dictionary(), Verify_Enumeration(), Verify_Float(), Verify_FuzzyBoolean(), Verify_Integer(), Verify_OneOf(), Verify_PositiveFloat(), Verify_PositiveInteger(), Verify_Quaternion(), Verify_String(), Verify_Vector(), Universe::VerifyDescArray, OOCacheManager(Octree)::VFRAddFace, VisualEffectGetMaterials(), VisualEffectGetProperty(), VisualEffectGetShaders(), VisualEffectRemove(), VisualEffectScale(), VisualEffectSetMaterials(), VisualEffectSetMaterialsInternal(), VisualEffectSetProperty(), VisualEffectSetShaders(), WaypointGetProperty(), WorldScriptsEnumerate(), WorldScriptsGetProperty(), WormholeGetProperty(), and NSDictionary(OOXMLExtensions)::writeOOXMLToFile:atomically:errorDescription:.

◆ self

return self

Definition at line 458 of file OOProbabilitySet.m.

◆ sOOEmptyProbabilitySetSingleton

return sOOEmptyProbabilitySetSingleton = nil
static

Definition at line 331 of file OOProbabilitySet.m.