PedestrainCounting
Public Member Functions | Public Attributes | List of all members
Pool< T > Class Template Reference

#include <Pool.h>

Public Member Functions

 Pool (int sz=0)
 
T & operator[] (uint index)
 
const T & operator[] (uint index) const
 
void Push (const T &t)
 
void clear ()
 
void Resize (int sz)
 

Public Attributes

int size
 
std::vector< T > data
 

Detailed Description

template<typename T>
class Pool< T >

Use std::vector as the container, however it never shrinks.

Author
Zhengrong Wang.

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