Falcon::GenericVector Class Reference

Generic typeless vector. More...

#include <genericvector.h>

Inheritance diagram for Falcon::GenericVector:

Inheritance graph

List of all members.

Public Member Functions

void * at (uint32 pos) const
bool empty () const
 GenericVector (const ElementTraits *traits, uint32 prealloc=0)
void insert (void *data, uint32 pos)
void pop ()
void push (void *data)
bool remove (uint32 pos)
void reserve (uint32 s)
void resize (uint32 s)
void set (void *data, uint32 pos)
uint32 size () const
uint32 threshHold () const
void threshHold (uint32 size)
void * top () const
 ~GenericVector ()

Protected Member Functions

 GenericVector ()
void init (const ElementTraits *traits, uint32 prealloc)

Protected Attributes

uint32 m_itemSize
const ElementTraitsm_traits

Detailed Description

Generic typeless vector.

The allocated size of a generic vector is always the needed size + 1. This is because if you need to push a pointer from the same vector, you can push it and THEN reallocate it.

Constructor & Destructor Documentation

Falcon::GenericVector::GenericVector (  )  [inline, protected]

Falcon::GenericVector::GenericVector ( const ElementTraits traits,
uint32  prealloc = 0 

Falcon::GenericVector::~GenericVector (  ) 

Member Function Documentation

void* Falcon::GenericVector::at ( uint32  pos  )  const [inline]

bool Falcon::GenericVector::empty (  )  const [inline]

void Falcon::GenericVector::init ( const ElementTraits traits,
uint32  prealloc 
) [protected]

void Falcon::GenericVector::insert ( void *  data,
uint32  pos 

void Falcon::GenericVector::pop (  )  [inline]

void Falcon::GenericVector::push ( void *  data  ) 

bool Falcon::GenericVector::remove ( uint32  pos  ) 

void Falcon::GenericVector::reserve ( uint32  s  ) 

void Falcon::GenericVector::resize ( uint32  s  ) 

void Falcon::GenericVector::set ( void *  data,
uint32  pos 

uint32 Falcon::GenericVector::size (  )  const [inline]

uint32 Falcon::GenericVector::threshHold (  )  const [inline]

void Falcon::GenericVector::threshHold ( uint32  size  )  [inline]

void* Falcon::GenericVector::top (  )  const [inline]

Member Data Documentation

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

Generated on Mon Oct 19 10:11:36 2009 for Falcon_Core by  doxygen 1.5.8