• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/libkern/libkern/c++/

Lines Matching defs:OSArray

39     @class OSArray
42 An instance of an OSArray is a mutable collection which maintains a list of references to OSMetaClassBase derived objects. Objects are referenced by index, where the index is an integer with a value of 0 to N-1 where N is the number of objects contained within the array.
47 class OSArray : public OSCollection
51 OSDeclareDefaultStructors(OSArray)
75 @abstract A static constructor function to create and initialize a new instance of OSArray with a given capacity.
76 @param capacity The initial capacity (number of refernces) of the OSArray instance.
77 @result Returns a reference to an instance of OSArray or 0 if an error occurred.
79 static OSArray *withCapacity(unsigned int capacity);
82 @abstract A static constructor function to create and initialize a new instance of OSArray and populates it with a list of objects provided.
85 @param capacity The initial storage size of the OSArray instance. If 0, the capacity will be set to the size of count, else the capacity must be greater than or equal to count.
86 @result Returns a reference to a new instance of OSArray or 0 if an error occurred.
88 static OSArray *withObjects(const OSObject *objects[],
93 @abstract A static constructor function to create and initialize an instance of OSArray of a given capacity and populate it with the contents of the supplied OSArray object.
94 @param array An instance of OSArray from which the new instance will aquire its contents.
95 @param capacity The capacity of the new OSArray. If 0, the capacity will be set to the number of elements in the array, else the capacity must be greater than or equal to the number of elements in the array.
96 @result Returns a reference to an new instance of OSArray or 0 if an error occurred.
98 static OSArray *withArray(const OSArray *array,
103 @abstract A member function which initializes an instance of OSArray.
104 @param capacity The initial capacity of the new instance of OSArray.
110 @abstract A member function which initializes an instance of OSArray and populates it with the given list of objects.
113 @param capacity The initial capacity of the new instance of OSArray. If 0, the capacity will be set to the same value as the 'count' parameter, else capacity must be greater than or equal to the value of 'count'.
121 @abstract A member function which initializes an instance of OSArray and populates it with the contents of the supplied OSArray object.
122 @param anArray An instance of OSArray containing the references to objects which will be copied to the new instances of OSArray.
123 @param capacity The initial capacity of the new instance of OSArray. If 0, the capacity will be set to the number of elements in the array, else the capacity must be greater than or equal to the number of elements in the array.
126 virtual bool initWithArray(const OSArray *anArray,
130 @abstract Deallocates and releases all resources used by the OSArray instance. Normally, this is not called directly.
137 @abstract A member function which returns the number of references contained within the OSArray object.
138 @result Returns the number of items within the OSArray object.
143 @abstract A member function which returns the storage capacity of the OSArray object.
144 @result Returns the storage capacity of the OSArray object.
177 @param anObject The object to add to the OSArray instance. The object will be retained automatically.
185 @param anObject The object to add to the OSArray instance. The object will be retained automatically.
196 virtual bool merge(const OSArray *otherArray);
215 @abstract A member function which tests the equality of the values of two OSArray objects.
219 virtual bool isEqualTo(const OSArray *anArray) const;
276 OSMetaClassDeclareReservedUnused(OSArray, 0);
277 OSMetaClassDeclareReservedUnused(OSArray, 1);
278 OSMetaClassDeclareReservedUnused(OSArray, 2);
279 OSMetaClassDeclareReservedUnused(OSArray, 3);
280 OSMetaClassDeclareReservedUnused(OSArray, 4);
281 OSMetaClassDeclareReservedUnused(OSArray, 5);
282 OSMetaClassDeclareReservedUnused(OSArray, 6);
283 OSMetaClassDeclareReservedUnused(OSArray, 7);