Oolite
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 69 of file OOProbabilitySet.m.

Method Documentation

◆ allObjects

- (NSArray *) allObjects
implementation

Reimplemented from OOProbabilitySet.

Definition at line 330 of file OOProbabilitySet.m.

331{
332 return [NSArray array];
333}

References allObjects.

Referenced by allObjects.

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

◆ allocWithZone:

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

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 352 of file OOProbabilitySet.m.

352 :(NSZone*)inZone
353{
355 sOOEmptyProbabilitySetSingleton = [super allocWithZone:inZone];
357 }
358 return nil;
359}
return nil

◆ autorelease

- (id) autorelease
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 380 of file OOProbabilitySet.m.

381{
382 return self;
383}

◆ copyWithZone:

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

Reimplemented from OOProbabilitySet.

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 361 of file OOProbabilitySet.m.

361 :(NSZone*)inZone
362{
363 return self;
364}

◆ count

- (NSUInteger) count
implementation

Reimplemented from OOProbabilitySet.

Definition at line 325 of file OOProbabilitySet.m.

326{
327 return 0;
328}

References count.

Referenced by count.

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

◆ mutableCopyWithZone:

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

Reimplemented from OOProbabilitySet.

Definition at line 335 of file OOProbabilitySet.m.

335 :(NSZone*)zone
336{
337 // A mutable copy of an empty probability set is equivalent to a new empty mutable probability set.
338 return [[OOConcreteMutableProbabilitySet allocWithZone:zone] initPriv];
339}

◆ OO_RETURNS_RETAINED

+ (OOEmptyProbabilitySet *) OO_RETURNS_RETAINED

References OO_RETURNS_RETAINED.

Referenced by OO_RETURNS_RETAINED.

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

◆ propertyListRepresentation

- (NSDictionary *) propertyListRepresentation
implementation

Reimplemented from OOProbabilitySet.

Definition at line 304 of file OOProbabilitySet.m.

305{
306 NSArray* empty = [NSArray array];
307 return [NSDictionary dictionaryWithObjectsAndKeys:empty, kObjectsKey, empty, kWeightsKey, nil];
308}

References propertyListRepresentation.

Referenced by propertyListRepresentation.

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

◆ randomObject

- (id) randomObject
implementation

Reimplemented from OOProbabilitySet.

Definition at line 310 of file OOProbabilitySet.m.

311{
312 return nil;
313}

References nil, and randomObject.

Referenced by randomObject.

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

◆ release

- (void) release
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 376 of file OOProbabilitySet.m.

377{
378}

◆ retain

- (id) retain
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 366 of file OOProbabilitySet.m.

367{
368 return self;
369}

◆ retainCount

- (NSUInteger) retainCount
implementation

Provided by category OOEmptyProbabilitySet(Singleton).

Definition at line 371 of file OOProbabilitySet.m.

372{
373 return UINT_MAX;
374}

◆ sOOEmptyProbabilitySetSingleton

- (return) sOOEmptyProbabilitySetSingleton
implementation

Definition at line 301 of file OOProbabilitySet.m.

References sOOEmptyProbabilitySetSingleton.

Referenced by sOOEmptyProbabilitySetSingleton.

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

◆ sumOfWeights

- (float) sumOfWeights
implementation

Reimplemented from OOProbabilitySet.

Definition at line 320 of file OOProbabilitySet.m.

321{
322 return 0.0f;
323}

References sumOfWeights.

Referenced by sumOfWeights.

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

◆ weightForObject:

- (float) weightForObject: (id) object
implementation

Reimplemented from OOProbabilitySet.

Definition at line 315 of file OOProbabilitySet.m.

315 :(id)object
316{
317 return -1.0f;
318}

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