MultiTypedChunker Class Reference

#include <dataChunker.h>

Inheritance diagram for MultiTypedChunker:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class is similar to the Chunker<> class above.

But it allows for multiple types of structs to be stored. CodeReview: This could potentially go into DataChunker directly, but I wasn't sure if CodeReview: That would be polluting it. BTR


Public Member Functions

 MultiTypedChunker (S32 size=DataChunker::ChunkSize)
template<typename T>
T * alloc ()
 Use like so: MyType* t = chunker.alloc<MyType>();.
void clear ()


Constructor & Destructor Documentation

MultiTypedChunker::MultiTypedChunker ( S32  size = DataChunker::ChunkSize  )  [inline]


Member Function Documentation

template<typename T>
T* MultiTypedChunker::alloc (  )  [inline]

Use like so: MyType* t = chunker.alloc<MyType>();.

void MultiTypedChunker::clear (  )  [inline]