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

Instance Methods

(id) - initWithEnumerable:
(void) - dealloc [implementation]
(id) - nextObject [implementation]

Private Attributes

id _enumerable
NSUInteger _index

Detailed Description

Definition at line 105 of file OOProbabilitySet.m.

Method Documentation

◆ dealloc

- (void) dealloc
implementation

Definition at line 933 of file OOProbabilitySet.m.

934{
935 [_enumerable release];
936
937 [super dealloc];
938}

References dealloc.

Referenced by dealloc.

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

◆ initWithEnumerable:

- (id) initWithEnumerable: (id<OOProbabilitySetEnumerable>) enumerable

Definition at line 924 of file OOProbabilitySet.m.

924 :(id<OOProbabilitySetEnumerable>)enumerable
925{
926 if ((self = [super init])) {
927 _enumerable = [enumerable retain];
928 }
929
930 return self;
931}

References _enumerable.

◆ nextObject

- (id) nextObject
implementation

Definition at line 940 of file OOProbabilitySet.m.

941{
942 if (_index < [_enumerable count]) {
943 return [_enumerable privObjectAtIndex:_index++];
944 } else {
945 [_enumerable release];
947 return nil;
948 }
949}
unsigned count
return nil

References _enumerable, _index, count, nextObject, and nil.

Referenced by nextObject.

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

Member Data Documentation

◆ _enumerable

- (id) _enumerable
private

Definition at line 107 of file OOProbabilitySet.m.

Referenced by initWithEnumerable:, and nextObject.

◆ _index

- (NSUInteger) _index
private

Definition at line 108 of file OOProbabilitySet.m.

Referenced by nextObject.


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