Oolite 1.91.0.7644-241112-7f5034b
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 117 of file OOProbabilitySet.m.

Method Documentation

◆ dealloc

- (void) dealloc
implementation

Definition at line 458 of file OOProbabilitySet.m.

1051{
1052 [_enumerable release];
1053
1054 [super dealloc];
1055}
1056

◆ initWithEnumerable:

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

Definition at line 458 of file OOProbabilitySet.m.

1040{
1041 if ((self = [super init]))
1042 {
1043 _enumerable = [enumerable retain];
1044 }
1045
1046 return self;
1047}
1048

◆ nextObject

- (id) nextObject
implementation

Definition at line 458 of file OOProbabilitySet.m.

1059{
1060 if (_index < [_enumerable count])
1061 {
1062 return [_enumerable privObjectAtIndex:_index++];
1063 }
1064 else
1065 {
1066 [_enumerable release];
1067 _enumerable = nil;
1068 return nil;
1069 }
1070}
1071
unsigned count
return nil

Member Data Documentation

◆ _enumerable

- (id) _enumerable
private

Definition at line 120 of file OOProbabilitySet.m.

◆ _index

- (NSUInteger) _index
private

Definition at line 121 of file OOProbabilitySet.m.


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