FMIceLinkManagedConcurrentStack Class Reference

Inherits from NSObject
Conforms to TValue
__covariant
Declared in FMIceLinkManagedConcurrentStack.h
FMIceLinkManagedConcurrentStack.m

Overview

A ConcurrentStack that maps to the appropriate platform version.

– clear

Clears the stack of all items.
- (void)clear

Discussion

Clears the stack of all items.

Declared In

FMIceLinkManagedConcurrentStack.h

– count

Gets the amount of items in the stack.
- (int)count

Discussion

Gets the amount of items in the stack.

Declared In

FMIceLinkManagedConcurrentStack.h

– init

Creates a new instance of a ConcurrentStack.
- (instancetype)init

Discussion

Creates a new instance of a ConcurrentStack.

Declared In

FMIceLinkManagedConcurrentStack.h

– isEmpty

Gets true if the stack is empty.
- (bool)isEmpty

Discussion

Gets true if the stack is empty.

Declared In

FMIceLinkManagedConcurrentStack.h

+ managedConcurrentStack

Creates a new instance of a ConcurrentStack.
+ (FMIceLinkManagedConcurrentStack *)managedConcurrentStack

Discussion

Creates a new instance of a ConcurrentStack.

Declared In

FMIceLinkManagedConcurrentStack.h

– pushWithItem:

Pushes a new item on top of the stack.
- (void)pushWithItem:(TValue)item

Parameters

item

The item to push.

Discussion

Pushes a new item on top of the stack.

Declared In

FMIceLinkManagedConcurrentStack.h

– tryPeekWithResult:

Tries to peek at the top value in stack.
- (bool)tryPeekWithResult:(TValue *)result

Parameters

result

The value from the stack if possible, null otherwise.

Return Value

True if peek succeeded, false if not.

Discussion

Tries to peek at the top value in stack.

Declared In

FMIceLinkManagedConcurrentStack.h

– tryPopWithResult:

Tries to pop the top value off of the stack.
- (bool)tryPopWithResult:(TValue *)result

Parameters

result

The value from the top of the stack if possible, null otherwise.

Return Value

True if pop suceeded, false if not.

Discussion

Tries to pop the top value off of the stack.

Declared In

FMIceLinkManagedConcurrentStack.h