FMLiveSwitchManagedConcurrentStack Class Reference

A ConcurrentStack that maps to the appropriate platform version. More...

Instance Methods

(int) - count
 Gets the amount of items in the stack. More...
 
(instancetype) - init
 Creates a new instance of a ConcurrentStack. More...
 
(bool) - isEmpty
 Gets true if the stack is empty. More...
 
(void) - pushWithItem:
 Pushes a new item on top of the stack. More...
 
(bool) - tryPeekWithResult:
 Tries to peek at the top value in stack. More...
 
(bool) - tryPopWithResult:
 Tries to pop the top value off of the stack. More...
 

Class Methods

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

Protected Attributes

 __pad0__: NSObject- (void) clear
 

Detailed Description

A ConcurrentStack that maps to the appropriate platform version.

Method Documentation

◆ count

- (int) count

Gets the amount of items in the stack.

◆ init

- (instancetype) init

Creates a new instance of a ConcurrentStack.

◆ isEmpty

- (bool) isEmpty

Gets true if the stack is empty.

◆ managedConcurrentStack

+ (FMLiveSwitchManagedConcurrentStack*) managedConcurrentStack

Creates a new instance of a ConcurrentStack.

◆ pushWithItem:

- (void) pushWithItem: (TValue)  item

Pushes a new item on top of the stack.

Parameters
itemThe item to push.

◆ tryPeekWithResult:

- (bool) tryPeekWithResult: (TValue *)  result

Tries to peek at the top value in stack.

Parameters
resultThe value from the stack if possible, null otherwise.
Returns
True if peek succeeded, false if not.

◆ tryPopWithResult:

- (bool) tryPopWithResult: (TValue *)  result

Tries to pop the top value off of the stack.

Parameters
resultThe value from the top of the stack if possible, null otherwise.
Returns
True if pop suceeded, false if not.

Member Data Documentation

◆ __pad0__

- __pad0__
protected