Recast Navigation
Navigation-mesh Toolset for Games
LinearAllocator Struct Reference
Inheritance diagram for LinearAllocator:
dtTileCacheAlloc

Public Member Functions

 LinearAllocator (const size_t cap)
 
virtual ~LinearAllocator ()
 
void resize (const size_t cap)
 
virtual void reset ()
 
virtual void * alloc (const size_t size)
 
virtual void free (void *)
 
- Public Member Functions inherited from dtTileCacheAlloc
virtual ~dtTileCacheAlloc ()
 

Public Attributes

unsigned char * buffer
 
size_t capacity
 
size_t top
 
size_t high
 

Constructor & Destructor Documentation

◆ LinearAllocator()

LinearAllocator::LinearAllocator ( const size_t  cap)
inline

◆ ~LinearAllocator()

LinearAllocator::~LinearAllocator ( )
virtual

Member Function Documentation

◆ alloc()

virtual void* LinearAllocator::alloc ( const size_t  size)
inlinevirtual

Reimplemented from dtTileCacheAlloc.

◆ free()

virtual void LinearAllocator::free ( void *  )
inlinevirtual

Reimplemented from dtTileCacheAlloc.

◆ reset()

virtual void LinearAllocator::reset ( )
inlinevirtual

Reimplemented from dtTileCacheAlloc.

◆ resize()

void LinearAllocator::resize ( const size_t  cap)
inline

Member Data Documentation

◆ buffer

unsigned char* LinearAllocator::buffer

◆ capacity

size_t LinearAllocator::capacity

◆ high

size_t LinearAllocator::high

◆ top

size_t LinearAllocator::top

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