HermesCommon  3.0
Hermes::LightArray< TYPE > Class Template Reference

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
 

Detailed Description

template<class TYPE>
class Hermes::LightArray< TYPE >

A light version of the array. For ordinal types or pointers, does not provide memory handling.

Definition at line 288 of file array.h.


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