#include <stdarg.h>
#import "OFObject.h"
#import "OFCollection.h"
#import "OFEnumerator.h"
#import "OFJSONRepresentation.h"
#import "OFMessagePackRepresentation.h"
#import "OFMutableArray.h"
Go to the source code of this file.
|
| class | OFArray |
| | An abstract class for storing objects in an array. More...
|
| |
◆ OFArrayEnumerationBlock
| typedef void(^ OFArrayEnumerationBlock) (id object, size_t index, bool *stop) |
A block for enumerating an OFArray.
- Parameters
-
| object | The current object |
| index | The index of the current object |
| stop | A pointer to a variable that can be set to true to stop the enumeration |
◆ OFArrayFilterBlock
| typedef bool(^ OFArrayFilterBlock) (id object, size_t index) |
A block for filtering an OFArray.
- Parameters
-
| object | The object to inspect |
| index | The index of the object to inspect |
- Returns
- Whether the object should be in the filtered array
◆ OFArrayFoldBlock
| typedef id(^ OFArrayFoldBlock) (id left, id right) |
A block for folding an OFArray.
- Parameters
-
| left | The object to which the object has been folded so far |
| right | The object that should be added to the left object |
- Returns
- The left and right side folded into one object
◆ OFArrayMapBlock
| typedef id(^ OFArrayMapBlock) (id object, size_t index) |
A block for mapping objects to objects in an OFArray.
- Parameters
-
| object | The object to map |
| index | The index of the object to map |
- Returns
- The object to map to
◆ OFArrayJoinOptions
Options for joining the objects of an array.
This is a bit mask.
| Enumerator |
|---|
| OFArraySkipEmptyComponents | Skip empty components
|
◆ OFArraySortOptions
Options for sorting an array.
This is a bit mask.
| Enumerator |
|---|
| OFArraySortDescending | Sort the array descending
|