Table of Contents

Interface IPool<T>.IManagedInterface

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the managed interface implemented by its unmanaged counterpart.

public interface IPool<T>.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

Bounds()

Gets the bounds of the pool.

(Size, Size) Bounds()

Returns

(Size, Size)

A tuple containing the lower and upper bounds of the pool.

Count()

Gets the number of elements in the pool.

Size Count()

Returns

Size

The number of elements in the pool.

Get(int)

Gets the element at the specified index.

T Get(int index)

Parameters

index int

The index of the element to retrieve.

Returns

T

The element at the specified index.

GetEnumerator()

Gets an enumerator that iterates through the pool.

IPool<T>.Enumerator GetEnumerator()

Returns

IPool<T>.Enumerator

An enumerator for the pool.

GetPoolEventDispatcher()

Gets the event dispatcher for the pool.

IEventDispatcher<IPoolEventHandler<T>> GetPoolEventDispatcher()

Returns

IEventDispatcher<IPoolEventHandler<T>>

An IEventDispatcher<T> for handling pool events.

Lock(int)

Locks the element at the specified index.

void Lock(int index)

Parameters

index int

The index of the element to lock.

Release(int)

Releases the element at the specified index.

void Release(int index)

Parameters

index int

The index of the element to release.

Unlock(int)

Unlocks the element at the specified index.

bool Unlock(int index)

Parameters

index int

The index of the element to unlock.

Returns

bool

true if the element was successfully unlocked; otherwise, false.