ObjFW
Instance Methods | Properties | List of all members
<OFCollection> Protocol Reference

A protocol with methods common for all collections. More...

#import <ObjFW/OFCollection.h>

Inheritance diagram for <OFCollection>:
Inheritance graph
[legend]
Collaboration diagram for <OFCollection>:
Collaboration graph
[legend]

Instance Methods

(bool) - containsObject:
 Checks whether the collection contains an object equal to the specified object. More...
 
- Instance Methods inherited from <OFEnumerating>
(OFEnumerator *) - objectEnumerator
 Returns an OFEnumerator to enumerate through all objects of the collection. More...
 
- Instance Methods inherited from <OFFastEnumeration>
(int) - countByEnumeratingWithState:objects:count:
 A method which is called by the code produced by the compiler when doing a fast enumeration. More...
 

Properties

size_t count
 The number of objects in the collection.
 

Detailed Description

A protocol with methods common for all collections.

Method Documentation

◆ containsObject:

- (bool) containsObject: (id object

Checks whether the collection contains an object equal to the specified object.

Parameters
objectThe object which is checked for being in the collection
Returns
A boolean whether the collection contains the specified object

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