OSCollection
The abstract superclass for Libkern collections.
Declaration
class OSCollection : OSObjectOverview
OSCollection is the abstract superclass for all Libkern C++ object collections. It defines the necessary interfaces for managing storage space and iterating through an arbitrary collection (see the OSIterator and OSCollectionIterator classes). It is up to concrete subclasses to define their specific content management functions.
Use Restrictions
With very few exceptions in the I/O Kit, all Libkern-based C++ classes, functions, and macros are unsafe to use in a primary interrupt context. Consult the I/O Kit documentation related to primary interrupts for more information.
OSCollection provides no concurrency protection; it's up to the usage context to provide any protection necessary. Some portions of the I/O Kit, such as IORegistryEntry, handle synchronization via defined member functions for setting properties.
Topics
Miscellaneous
copyCollectionensureCapacityflushCollectiongetCapacitygetCapacityIncrementgetCountgetNextObjectForIteratorhaveUpdatedinitinitIteratoriteratorSizesetCapacityIncrement