init
TypeScriptstatic init(object: CMSimpleQueue): CMSimpleQueueSwift declarationinit(referencing object: CMSimpleQueue)class · iOS 5.0+ · SDK 27.1
class CMSimpleQueuestatic init(object: CMSimpleQueue): CMSimpleQueueSwift declarationinit(referencing object: CMSimpleQueue)get head(): (SDKHandle) | nullSwift declarationvar head: UnsafeRawPointer? { get }Returns the element at the head of the queue. - Returns: The head element. nil if the queue was empty, or if there was some other error.
get count(): numberSwift declarationvar count: Int { get }The number of elements currently in the queue. Returns 0 if there is an error.
reset(): voidSwift declarationfunc reset() throwsResets the queue. This function resets the queue to its empty state; all values in the queue prior to reset are lost. Note that CMSimpleQueueReset is not synchronized in any way, so the reader thread and writer thread must be held off by the client during this operation.
static get typeID(): numberSwift declarationstatic var typeID: CFTypeID { get }The `CFTypeID` corresponding to `CMSimpleQueue`. You can check if a CFTypeRef object is actually a CMSimpleQueue by comparing CFGetTypeID(object) with CMSimpleQueue.typeID.
dequeue(): (SDKHandle) | nullSwift declarationfunc dequeue() -> UnsafeRawPointer?Dequeues an element from the queue. - Returns: The dequeued element. nil if the queue was empty, or if there was some other error.
enqueue(element: SDKHandle): voidSwift declarationfunc enqueue(_ element: UnsafeRawPointer) throwsEnqueues an element on the queue. If the queue is full, this operation will fail. - Parameter element: Element to enqueue.
get capacity(): numberSwift declarationvar capacity: Int { get }The number of elements that can be held in the queue. Returns 0 if there is an error.
get fullness(): numberSwift declarationvar fullness: Float { get }A convenience macro that returns GetCount/GetCapacity, computed in floating point. 0.0 is empty, 0.5 is half full, 1.0 is full. Returns 0.0 if there is an error
No declarations were skipped in this snapshot.