Oolite
Loading...
Searching...
No Matches
OOShipGroupEnumerator Class Reference
Inheritance diagram for OOShipGroupEnumerator:
Collaboration diagram for OOShipGroupEnumerator:

Instance Methods

(id) - initWithShipGroup:
(NSUInteger) - index
(void) - setPerformCleanup:
(void) - dealloc [implementation]
(id) - nextObject [implementation]

Public Attributes

OOShipGroup * _group
NSUInteger _index
NSUInteger _updateCount
BOOL _considerCleanup
BOOL _cleanupNeeded

Detailed Description

Definition at line 45 of file OOShipGroup.m.

Method Documentation

◆ dealloc

- (void) dealloc
implementation

Definition at line 463 of file OOShipGroup.m.

464{
466
467 [super dealloc];
468}
#define DESTROY(x)
OOShipGroup * _group
Definition OOShipGroup.m:48

References _group, dealloc, and DESTROY.

Referenced by dealloc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ index

- (NSUInteger) index

Definition at line 475 of file OOShipGroup.m.

476{
477 return _index;
478}

References _index, and index.

Referenced by index, and OOShipGroup::removeShip:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initWithShipGroup:

- (id) initWithShipGroup: (OOShipGroup*) group

Definition at line 450 of file OOShipGroup.m.

450 :(OOShipGroup*)group
451{
452 assert(group != nil);
453
454 if ((self = [super init])) {
455 _group = [group retain];
456 _considerCleanup = YES;
457 _updateCount = [_group updateCount];
458 }
459
460 return self;
461}
return nil
NSUInteger _updateCount
Definition OOShipGroup.m:49

References _considerCleanup, _group, _updateCount, nil, and OOShipGroup::updateCount.

Here is the call graph for this function:

◆ nextObject

- (id) nextObject
implementation

Definition at line 470 of file OOShipGroup.m.

471{
472 return ShipGroupIterate(self);
473}
static id ShipGroupIterate(OOShipGroupEnumerator *enumerator)

References nextObject, and ShipGroupIterate().

Referenced by nextObject.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPerformCleanup:

- (void) setPerformCleanup: (BOOL) flag

Definition at line 480 of file OOShipGroup.m.

480 :(BOOL)flag
481{
482 _considerCleanup = flag;
483}

References _considerCleanup.

Referenced by OOShipGroup::removeShip:.

Here is the caller graph for this function:

Member Data Documentation

◆ _cleanupNeeded

- (BOOL) _cleanupNeeded

Definition at line 50 of file OOShipGroup.m.

Referenced by OOShipGroup::ShipGroupIterate.

◆ _considerCleanup

- (BOOL) _considerCleanup

Definition at line 50 of file OOShipGroup.m.

Referenced by initWithShipGroup:, setPerformCleanup:, and OOShipGroup::ShipGroupIterate.

◆ _group

- (OOShipGroup*) _group

Definition at line 48 of file OOShipGroup.m.

Referenced by dealloc, initWithShipGroup:, and OOShipGroup::ShipGroupIterate.

◆ _index

- (NSUInteger) _index

Definition at line 49 of file OOShipGroup.m.

Referenced by index, and OOShipGroup::ShipGroupIterate.

◆ _updateCount

- (NSUInteger) _updateCount

Definition at line 49 of file OOShipGroup.m.

Referenced by initWithShipGroup:, and OOShipGroup::ShipGroupIterate.


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