Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOEmptyProbabilitySet Class Reference
+ Inheritance diagram for OOEmptyProbabilitySet:
+ Collaboration diagram for OOEmptyProbabilitySet:

Instance Methods

(return) - sOOEmptyProbabilitySetSingleton [implementation]
 
(NSDictionary *) - propertyListRepresentation [implementation]
 
(id) - randomObject [implementation]
 
(float) - weightForObject: [implementation]
 
(float) - sumOfWeights [implementation]
 
(NSUInteger) - count [implementation]
 
(NSArray *) - allObjects [implementation]
 
(id) - mutableCopyWithZone: [implementation]
 
(id) - copyWithZone: [implementation]
 
(id) - retain [implementation]
 
(NSUInteger) - retainCount [implementation]
 
(void) - release [implementation]
 
(id) - autorelease [implementation]
 
- Instance Methods inherited from OOProbabilitySet
(id) - init
 
(id) - initWithObjects:weights:count:
 
(id) - initWithPropertyListRepresentation:
 
(id) - initPriv [implementation]
 
(NSString *) - descriptionComponents [implementation]
 
(BOOL) - containsObject:
 
(NSEnumerator *) - objectEnumerator
 
(float) - probabilityForObject:
 

Class Methods

(OOEmptyProbabilitySet *) + OO_RETURNS_RETAINED
 
(id) + allocWithZone: [implementation]
 
- Class Methods inherited from OOProbabilitySet
(id) + probabilitySet
 
(id) + probabilitySetWithObjects:weights:count:
 
(id) + probabilitySetWithPropertyListRepresentation:
 

Detailed Description

Definition at line 73 of file OOProbabilitySet.m.

Method Documentation

◆ allObjects

- (NSArray *) allObjects
implementation

Reimplemented from OOProbabilitySet.

Definition at line 342 of file OOProbabilitySet.m.

377{
378 return [NSArray array];
379}
380

◆ allocWithZone:

+ (id) allocWithZone: (NSZone *) inZone
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 342 of file OOProbabilitySet.m.

401{
403 {
404 sOOEmptyProbabilitySetSingleton = [super allocWithZone:inZone];
406 }
407 return nil;
408}
409
static OOEmptyProbabilitySet * sOOEmptyProbabilitySetSingleton
return nil

◆ autorelease

- (id) autorelease
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 342 of file OOProbabilitySet.m.

434{
435 return self;
436}
437

◆ copyWithZone:

- (id) copyWithZone: (NSZone *) inZone
implementation

Reimplemented from OOProbabilitySet.

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 342 of file OOProbabilitySet.m.

412{
413 return self;
414}
415

◆ count

- (NSUInteger) count
implementation

Reimplemented from OOProbabilitySet.

Definition at line 342 of file OOProbabilitySet.m.

371{
372 return 0;
373}
374

◆ mutableCopyWithZone:

- (id) mutableCopyWithZone: (NSZone *) zone
implementation

Reimplemented from OOProbabilitySet.

Definition at line 342 of file OOProbabilitySet.m.

383{
384 // A mutable copy of an empty probability set is equivalent to a new empty mutable probability set.
385 return [[OOConcreteMutableProbabilitySet allocWithZone:zone] initPriv];
386}
387

◆ OO_RETURNS_RETAINED

+ (OOEmptyProbabilitySet *) OO_RETURNS_RETAINED

◆ propertyListRepresentation

- (NSDictionary *) propertyListRepresentation
implementation

Reimplemented from OOProbabilitySet.

Definition at line 342 of file OOProbabilitySet.m.

346{
347 NSArray *empty = [NSArray array];
348 return [NSDictionary dictionaryWithObjectsAndKeys:empty, kObjectsKey, empty, kWeightsKey, nil];
349}
350

◆ randomObject

- (id) randomObject
implementation

Reimplemented from OOProbabilitySet.

Definition at line 342 of file OOProbabilitySet.m.

353{
354 return nil;
355}
356

◆ release

- (void) release
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 342 of file OOProbabilitySet.m.

430{}
431

◆ retain

- (id) retain
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 342 of file OOProbabilitySet.m.

418{
419 return self;
420}
421

◆ retainCount

- (NSUInteger) retainCount
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 342 of file OOProbabilitySet.m.

424{
425 return UINT_MAX;
426}
427

◆ sOOEmptyProbabilitySetSingleton

- (return) sOOEmptyProbabilitySetSingleton
implementation

Definition at line 342 of file OOProbabilitySet.m.

◆ sumOfWeights

- (float) sumOfWeights
implementation

Reimplemented from OOProbabilitySet.

Definition at line 342 of file OOProbabilitySet.m.

365{
366 return 0.0f;
367}
368

◆ weightForObject:

- (float) weightForObject: (id) object
implementation

Reimplemented from OOProbabilitySet.

Definition at line 342 of file OOProbabilitySet.m.

359{
360 return -1.0f;
361}
362

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