#include <genericvector.h>
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 ElementTraits * | m_traits |
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.
Falcon::GenericVector::GenericVector | ( | ) | [inline, protected] |
Falcon::GenericVector::GenericVector | ( | const ElementTraits * | traits, | |
uint32 | prealloc = 0 | |||
) |
Falcon::GenericVector::~GenericVector | ( | ) |
void* Falcon::GenericVector::at | ( | uint32 | pos | ) | const [inline] |
Referenced by Falcon::CoreTable::columnData(), Falcon::CoreTable::page(), and Falcon::CoreTable::setCurrentPage().
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 | |||
) |
Referenced by Falcon::CoreTable::columnData().
uint32 Falcon::GenericVector::size | ( | ) | const [inline] |
Referenced by Falcon::CoreTable::page(), Falcon::CoreTable::pageCount(), and Falcon::CoreTable::setCurrentPage().
uint32 Falcon::GenericVector::threshHold | ( | ) | const [inline] |
void Falcon::GenericVector::threshHold | ( | uint32 | size | ) | [inline] |
void* Falcon::GenericVector::top | ( | ) | const [inline] |
uint32 Falcon::GenericVector::m_itemSize [protected] |
const ElementTraits* Falcon::GenericVector::m_traits [protected] |