IDBLUE logo
Public Member Functions | Protected Attributes
ObjectCollection Class Reference
Inheritance diagram for ObjectCollection:
CommandQueue ResponseHandlerCollection SessionHandlerCollection

Public Member Functions

(BOOL) - addObject:
(int) - addObjects:
(BOOL) - removeObject:
(BOOL) - removeObjectAtIndex:
(int) - removeAllObjects
(BOOL) - hasObject:
(int) - indexOfObject:
(int) - count
(id) - objectAtIndex:

Protected Attributes

NSMutableArray * _objects

Detailed Description

An ObjectCollection is a mutable array of objects. ObjectCollection does not allow the same object to be added more than once.


Member Function Documentation

- (BOOL) addObject: (id)  object

Add the given object

Parameters:
objectThe object to add
Returns:
TRUE if the object was added, FALSE otherwise
- (int) count

Get the number of objects in the ObjectCollection

Returns:
The number of objects in the ObjectCollection
- (BOOL) hasObject: (id)  object

Determine if the given object exists in the ObjectCollection

Parameters:
objectThe object to check for
Returns:
TRUE if the object exists, false otherwise
- (int) indexOfObject: (id)  object

Get the index of the object in the ObjectCollection

Parameters:
objectThe object to retrieve the index of
Returns:
The index of the object if found, -1 otherwise
- (id) objectAtIndex: (int)  index

Get the object at the given index

Parameters:
indexThe index of the object to check for
Returns:
The object if index is within the bounds of the ObjectCollection, nil otherwise.

Remove all objects from the ObjectCollection

- (BOOL) removeObject: (id)  object

Remove the object

Parameters:
objectThe object to remove
Returns:
TRUE if the object was removed, FALSE otherwise
- (BOOL) removeObjectAtIndex: (int)  index

Remove the object at the given index

Parameters:
indexThe index of the object to remove
Returns:
TRUE if the object was removed, FALSE otherwise

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

 

Generated on Mon Jan 19 2015 15:47:40
Copyright © 2015 Cathexis Innovations Inc. All Rights Reserved.