![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#include <OOWeakSet.h>
Instance Methods | |
(id) | - init |
(id) | - initWithCapacity: |
(NSUInteger) | - count |
(BOOL) | - containsObject: |
(NSEnumerator *) | - objectEnumerator |
(void) | - addObject: |
(void) | - removeObject: |
(void) | - addObjectsByEnumerating: |
(void) | - makeObjectsPerformSelector: |
(void) | - makeObjectsPerformSelector:withObject: |
(NSArray *) | - allObjects |
(void) | - removeAllObjects |
(void) | - dealloc [implementation] |
(NSString *) | - description [implementation] |
(id) | - copyWithZone: [implementation] |
(id) | - mutableCopyWithZone: [implementation] |
(BOOL) | - isEqual: [implementation] |
(void) | - compact [implementation] |
Class Methods | |
(instancetype) | + set |
(instancetype) | + setWithCapacity: |
Private Attributes | |
NSMutableSet * | _objects |
Definition at line 29 of file OOWeakSet.h.
- (void) addObject: | (id<OOWeakReferenceSupport>) | object |
Definition at line 165 of file OOWeakSet.m.
References nil.
Referenced by ShipEntity::addCollisionException:, ShipEntity::addDefenseTarget:, addObjectsByEnumerating:, and allObjects.
- (void) addObjectsByEnumerating: | (NSEnumerator *) | enumerator |
Definition at line 184 of file OOWeakSet.m.
References addObject:, compact, and nil.
Referenced by copyWithZone:.
- (NSArray *) allObjects |
Definition at line 215 of file OOWeakSet.m.
References _objects, addObject:, allObjects, nil, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ShipEntity::allDefenseTargets, allObjects, and ShipEntity::collisionExceptions.
|
implementation |
Provided by category OOWeakSet(OOPrivate).
Definition at line 239 of file OOWeakSet.m.
References OOWeakSet(OOPrivate)::compact, and nil.
Referenced by addObjectsByEnumerating:, OOWeakSet(OOPrivate)::compact, containsObject:, copyWithZone:, and count.
- (BOOL) containsObject: | (id<OOWeakReferenceSupport>) | object |
Definition at line 149 of file OOWeakSet.m.
References compact.
Referenced by ShipEntity::collisionExceptedFor:, and ShipEntity::isDefenseTarget:.
|
implementation |
Definition at line 102 of file OOWeakSet.m.
References addObjectsByEnumerating:, compact, and objectEnumerator.
Referenced by mutableCopyWithZone:.
- (NSUInteger) count |
Definition at line 142 of file OOWeakSet.m.
References compact, and count.
Referenced by count, StationEntity::currentlyInDockingQueues, ShipEntity::defenseTargetCount, and isEqual:.
|
implementation |
|
implementation |
Definition at line 77 of file OOWeakSet.m.
References description, nil, and objectEnumerator.
Referenced by description.
- (id) init |
Definition at line 36 of file OOWeakSet.m.
References init, and initWithCapacity:.
Referenced by init, and initWithCapacity:.
- (id) initWithCapacity: | (NSUInteger) | capacity |
Definition at line 42 of file OOWeakSet.m.
References _objects, init, and nil.
Referenced by init.
|
implementation |
Definition at line 117 of file OOWeakSet.m.
References count, DESTROY, nil, and objectEnumerator.
- (void) makeObjectsPerformSelector: | (SEL) | selector |
Definition at line 195 of file OOWeakSet.m.
References _objects, nil, and OOWeakReference::weakRefUnderlyingObject.
- (void) makeObjectsPerformSelector: | (SEL) | selector | |
withObject: | (id) | argument |
Definition at line 205 of file OOWeakSet.m.
References _objects, nil, and OOWeakReference::weakRefUnderlyingObject.
Referenced by StationEntity::abortAllDockings.
|
implementation |
Definition at line 111 of file OOWeakSet.m.
References copyWithZone:.
- (NSEnumerator *) objectEnumerator |
Definition at line 159 of file OOWeakSet.m.
References OOWeakRefUnpackingEnumerator::enumeratorWithCollection:, and objectEnumerator.
Referenced by StationEntity::autoDockShipsOnHold, copyWithZone:, ShipEntity::defenseTargetEnumerator, description, StationEntity::dumpSelfState, isEqual:, objectEnumerator, and ShipEntity::realAlertCondition.
- (void) removeAllObjects |
Definition at line 233 of file OOWeakSet.m.
References removeAllObjects.
Referenced by StationEntity::abortAllDockings, StationEntity::autoDockShipsOnHold, StationEntity::clear, ShipEntity::removeAllDefenseTargets, and removeAllObjects.
- (void) removeObject: | (id<OOWeakReferenceSupport>) | object |
Definition at line 176 of file OOWeakSet.m.
Referenced by StationEntity::abortDockingForShip:, StationEntity::dockingInstructionsForShip:, ShipEntity::removeCollisionException:, and ShipEntity::removeDefenseTarget:.
+ (instancetype) set |
Definition at line 57 of file OOWeakSet.m.
References set.
Referenced by set.
+ (instancetype) setWithCapacity: | (NSUInteger) | capacity |
Definition at line 63 of file OOWeakSet.m.
|
private |
Definition at line 33 of file OOWeakSet.h.
Referenced by allObjects, dealloc, initWithCapacity:, makeObjectsPerformSelector:, and makeObjectsPerformSelector:withObject:.