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

class DefaultObjectPoolFactory in Tinman.Core.System

An implementation of the IObjectPoolFactory that invokes the default constructor of the pooled object type.

sealed class DefaultObjectPoolFactory with <T> as new, class
  extends ObjectPoolFactory<T>

Public / Constants

Instance

Singleton instance of DefaultObjectPoolFactory.

public static readonly field Instance
type IObjectPoolFactory<T>

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.
inherited ObjectPoolFactory.Delete

New

Creates a new pooled object.

[OwnerReturn]
public override method New ()
type T
returns [not-null] The newly created object.
implements ObjectPoolFactory.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.
inherited ObjectPoolFactory.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.
inherited ObjectPoolFactory.Use