FMIceLinkPool Class Reference

Inherits from NSObject
Conforms to T
__covariant
Declared in FMIceLinkPool.h
FMIceLinkPool.m

Overview

A pool of objects.

– available

Gets the number of available objects.
- (int)available

Discussion

Gets the number of available objects.

Declared In

FMIceLinkPool.h

– get

Gets an object.

@return

- (T)get

Discussion

Gets an object.

@return

Declared In

FMIceLinkPool.h

– initWithCreateObject:

Initializes a new instance of the FMIceLinkPool`1 class with a minimum [size](#//api/name/size) of 0 and a maximum [size](#//api/name/size) of 2,147,483,647.
- (instancetype)initWithCreateObject:(FMIceLinkFunction0<T> *)createObject

Parameters

createObject

A function that creates an object.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class with a minimum [size](#//api/name/size) of 0 and a maximum [size](#//api/name/size) of 2,147,483,647.

Declared In

FMIceLinkPool.h

– initWithCreateObject:minSize:

Initializes a new instance of the FMIceLinkPool`1 class with a specified minimum [size](#//api/name/size) and a maximum [size](#//api/name/size) of 2,147,483,647.
- (instancetype)initWithCreateObject:(FMIceLinkFunction0<T> *)createObject minSize:(int)minSize

Parameters

createObject

A function that creates an object.

minSize

The minimum size.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class with a specified minimum [size](#//api/name/size) and a maximum [size](#//api/name/size) of 2,147,483,647.

Declared In

FMIceLinkPool.h

– initWithCreateObject:minSize:maxSize:

Initializes a new instance of the FMIceLinkPool`1 class. with a specified minimum [size](#//api/name/size) and a specified maximum [size](#//api/name/size).
- (instancetype)initWithCreateObject:(FMIceLinkFunction0<T> *)createObject minSize:(int)minSize maxSize:(int)maxSize

Parameters

createObject

A function that creates an object.

minSize

The minimum size.

maxSize

The maximum size.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class. with a specified minimum [size](#//api/name/size) and a specified maximum [size](#//api/name/size).

Declared In

FMIceLinkPool.h

– initWithCreateObjectBlock:

Initializes a new instance of the FMIceLinkPool`1 class with a minimum [size](#//api/name/size) of 0 and a maximum [size](#//api/name/size) of 2,147,483,647.
- (instancetype)initWithCreateObjectBlock:(T ( ^ ) ( ))createObjectBlock

Parameters

createObjectBlock

A function that creates an object.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class with a minimum [size](#//api/name/size) of 0 and a maximum [size](#//api/name/size) of 2,147,483,647.

Declared In

FMIceLinkPool.h

– initWithCreateObjectBlock:minSize:

Initializes a new instance of the FMIceLinkPool`1 class with a specified minimum [size](#//api/name/size) and a maximum [size](#//api/name/size) of 2,147,483,647.
- (instancetype)initWithCreateObjectBlock:(T ( ^ ) ( ))createObjectBlock minSize:(int)minSize

Parameters

createObjectBlock

A function that creates an object.

minSize

The minimum size.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class with a specified minimum [size](#//api/name/size) and a maximum [size](#//api/name/size) of 2,147,483,647.

Declared In

FMIceLinkPool.h

– initWithCreateObjectBlock:minSize:maxSize:

Initializes a new instance of the FMIceLinkPool`1 class. with a specified minimum [size](#//api/name/size) and a specified maximum [size](#//api/name/size).
- (instancetype)initWithCreateObjectBlock:(T ( ^ ) ( ))createObjectBlock minSize:(int)minSize maxSize:(int)maxSize

Parameters

createObjectBlock

A function that creates an object.

minSize

The minimum size.

maxSize

The maximum size.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class. with a specified minimum [size](#//api/name/size) and a specified maximum [size](#//api/name/size).

Declared In

FMIceLinkPool.h

– maxSize

Gets the maximum [size](#//api/name/size). Value must be >= 0. A value of 0 indicates no maximum.
- (int)maxSize

Discussion

Gets the maximum [size](#//api/name/size). Value must be >= 0. A value of 0 indicates no maximum.

Declared In

FMIceLinkPool.h

– minSize

Gets the minimum [size](#//api/name/size). Value must be >= 0.
- (int)minSize

Discussion

Gets the minimum [size](#//api/name/size). Value must be >= 0.

Declared In

FMIceLinkPool.h

+ poolWithCreateObject:

Initializes a new instance of the FMIceLinkPool`1 class with a minimum [size](#//api/name/size) of 0 and a maximum [size](#//api/name/size) of 2,147,483,647.
+ (FMIceLinkPool *)poolWithCreateObject:(FMIceLinkFunction0<T> *)createObject

Parameters

createObject

A function that creates an object.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class with a minimum [size](#//api/name/size) of 0 and a maximum [size](#//api/name/size) of 2,147,483,647.

Declared In

FMIceLinkPool.h

+ poolWithCreateObject:minSize:

Initializes a new instance of the FMIceLinkPool`1 class with a specified minimum [size](#//api/name/size) and a maximum [size](#//api/name/size) of 2,147,483,647.
+ (FMIceLinkPool *)poolWithCreateObject:(FMIceLinkFunction0<T> *)createObject minSize:(int)minSize

Parameters

createObject

A function that creates an object.

minSize

The minimum size.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class with a specified minimum [size](#//api/name/size) and a maximum [size](#//api/name/size) of 2,147,483,647.

Declared In

FMIceLinkPool.h

+ poolWithCreateObject:minSize:maxSize:

Initializes a new instance of the FMIceLinkPool`1 class. with a specified minimum [size](#//api/name/size) and a specified maximum [size](#//api/name/size).
+ (FMIceLinkPool *)poolWithCreateObject:(FMIceLinkFunction0<T> *)createObject minSize:(int)minSize maxSize:(int)maxSize

Parameters

createObject

A function that creates an object.

minSize

The minimum size.

maxSize

The maximum size.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class. with a specified minimum [size](#//api/name/size) and a specified maximum [size](#//api/name/size).

Declared In

FMIceLinkPool.h

+ poolWithCreateObjectBlock:

Initializes a new instance of the FMIceLinkPool`1 class with a minimum [size](#//api/name/size) of 0 and a maximum [size](#//api/name/size) of 2,147,483,647.
+ (FMIceLinkPool *)poolWithCreateObjectBlock:(T ( ^ ) ( ))createObjectBlock

Parameters

createObjectBlock

A function that creates an object.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class with a minimum [size](#//api/name/size) of 0 and a maximum [size](#//api/name/size) of 2,147,483,647.

Declared In

FMIceLinkPool.h

+ poolWithCreateObjectBlock:minSize:

Initializes a new instance of the FMIceLinkPool`1 class with a specified minimum [size](#//api/name/size) and a maximum [size](#//api/name/size) of 2,147,483,647.
+ (FMIceLinkPool *)poolWithCreateObjectBlock:(T ( ^ ) ( ))createObjectBlock minSize:(int)minSize

Parameters

createObjectBlock

A function that creates an object.

minSize

The minimum size.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class with a specified minimum [size](#//api/name/size) and a maximum [size](#//api/name/size) of 2,147,483,647.

Declared In

FMIceLinkPool.h

+ poolWithCreateObjectBlock:minSize:maxSize:

Initializes a new instance of the FMIceLinkPool`1 class. with a specified minimum [size](#//api/name/size) and a specified maximum [size](#//api/name/size).
+ (FMIceLinkPool *)poolWithCreateObjectBlock:(T ( ^ ) ( ))createObjectBlock minSize:(int)minSize maxSize:(int)maxSize

Parameters

createObjectBlock

A function that creates an object.

minSize

The minimum size.

maxSize

The maximum size.

Discussion

Initializes a new instance of the FMIceLinkPool`1 class. with a specified minimum [size](#//api/name/size) and a specified maximum [size](#//api/name/size).

Declared In

FMIceLinkPool.h

– putWithItem:

Put an object back.

@param item

- (void)putWithItem:(T)item

Discussion

Put an object back.

@param item

Declared In

FMIceLinkPool.h

– size

Gets the current size of the pool.
- (int)size

Discussion

Gets the current size of the pool.

Declared In

FMIceLinkPool.h