Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::InstancePool< T > Class Template Reference

Inherits AZ::InstancePoolBase.

Public Types

using ResetInstance = AZStd::function< void(T &)>
 
using CreateInstance = AZStd::function< T *()>
 

Public Member Functions

 AZ_RTTI (InstancePool, "{D4FBBAD7-AA9D-4350-B5A1-72A1A09A7F16}", InstancePoolBase)
 
 InstancePool (ResetInstance resetFunctor, CreateInstance createFunctor)
 
bool HasInstance ()
 
T * GetInstance ()
 
void RecycleInstance (T *instanceToRecycle)
 
- Public Member Functions inherited from AZ::InstancePoolBase
 AZ_RTTI (InstancePoolBase, "{B32CEB58-7744-4275-92BE-BFC850E3C4CD}")
 

The documentation for this class was generated from the following file: