HermesCommon
3.0
|
A light version of the array. For ordinal types or pointers, does not provide memory handling. More...
#include <array.h>
Public Member Functions | |
LightArray (unsigned int page_bits=9, unsigned int default_page_count=512) | |
void | clear () |
void | free () |
void | add (TYPE item, unsigned int id) |
Adds a new_ item to the array. | |
unsigned int | get_size () const |
bool | present (unsigned int id) const |
Checks the id position for presence. | |
TYPE & | get (unsigned int id) const |
After successful check for presence, the value can be retrieved. | |
Protected Attributes | |
TYPE ** | pages |
int | page_count |
bool ** | presence |
unsigned int | size |
const unsigned int | page_bits |
const unsigned int | page_size |
const unsigned int | page_mask |
A light version of the array. For ordinal types or pointers, does not provide memory handling.