TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class ObjectPoolFactory in Tinman.Core.System

Abstract base class for IObjectPoolFactory implementations.

abstract class ObjectPoolFactory with <T> as class
  implements IObjectPoolFactory<T>
  base of DefaultObjectPoolFactory

Public / Constructors

Wrap

Wraps the given ObjectPoolDelegate in an IObjectPoolFactory object.

public static method Wrap (ObjectPoolDelegate<T> method)
type IObjectPoolFactory<T>
params method [not-null] The delegate method to wrap.
returns [not-null] The wrapping object. factory.

Public / Methods

Delete

The given object is no longer pooled and must be deleted

public virtual method Delete ([Owner] T obj)
params obj [not-null] The object.
implements IObjectPoolFactory.Delete

New

Creates a new pooled object.

[OwnerReturn]
public abstract method New ()
type T
returns [not-null] The newly created object.
implements IObjectPoolFactory.New

Return

A pooled object is about to be returned to the pool.

public virtual method Return (T obj)
params obj [not-null] The object that is returned to the pool.
implements IObjectPoolFactory.Return

Use

A pooled object is about to be used again.

public virtual method Use (T obj)
params obj [not-null] The object that is used again.
implements IObjectPoolFactory.Use