HermesCommon 1.0
Public Member Functions | Protected Attributes
Hermes::Hermes2D::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>

List of all members.

Public Member Functions

 LightArray (unsigned int page_bits=9)
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

Hermes::vector< TYPE * > pages
Hermes::vector< 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::Hermes2D::LightArray< TYPE >

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

Definition at line 285 of file array.h.


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