CORGI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
vector_pool.h File Reference
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <vector>

Go to the source code of this file.

Classes

class  corgi::VectorPool< T >
 A pool allocator, implemented as a vector-based pair of linked lists. More...
 
class  corgi::VectorPool< T >::IteratorTemplate< bool >
 An Iterator for the VectorPool. More...
 
class  corgi::VectorPool< T >::VectorPoolReference
 A reference object for pointing into the vector pool. It acts as a pointer for vector pool elements and can be queried to check if it has become invalid. (i.e. If the element it pointed at has either been deallocated, or replaced with a new element). More...
 
class  corgi::VectorPool< T >::IteratorTemplate< bool >
 An Iterator for the VectorPool. More...
 
struct  corgi::VectorPool< T >::VectorPoolElement
 A struct representing an element inside of a VectorPool. More...
 

Namespaces

 corgi
 Namespace for CORGI library.
 

Enumerations

enum  corgi::AllocationLocation { kAddToFront, kAddToBack }
 kAddToFront allocates from the front of the pool. kAddToBack allocates from the back of the pool.