A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
PathPool< T > Class Template Reference

Static Public Member Functions

static T GetPath ()
 
static int GetSize ()
 
static int GetTotalCreated ()
 
static void Recycle (T path)
 Recycles a path and puts in the pool.
 
static void Warmup (int count, int length)
 Warms up path, node list and vector list pools.
 

Static Private Attributes

static Stack< T > pool
 
static int totalCreated
 

Member Function Documentation

static void Recycle ( path)
static

Recycles a path and puts in the pool.

This function should not be used directly. Instead use the Path.Claim and Path.Release functions.

static void Warmup ( int  count,
int  length 
)
static

Warms up path, node list and vector list pools.

Makes sure there is at least count paths, each with a minimum capacity for paths with length length in the pool. The capacity means that paths shorter or equal to the capacity can be calculated without any large allocations taking place.

+ Here is the call graph for this function:


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