HermesCommon  3.0
array.h File Reference

File containing primarily the class Array<class TYPE> and LightArray<class TYPE>. More...

#include "common.h"
#include "../util/memory_handling.h"

Go to the source code of this file.

Classes

class  Hermes::Array< TYPE >
 
class  Hermes::LightArray< TYPE >
 A light version of the array. For ordinal types or pointers, does not provide memory handling. More...
 

Namespaces

 Hermes
 General namespace for the Hermes library.
 

Macros

#define INVALID_IDX   INT_MAX
 
#define HERMES_PAGE_BITS   8
 A generic, inflatable array. More...
 
#define HERMES_PAGE_SIZE   (1 << HERMES_PAGE_BITS)
 
#define HERMES_PAGE_MASK   (HERMES_PAGE_SIZE - 1)
 

Detailed Description

File containing primarily the class Array<class TYPE> and LightArray<class TYPE>.

Definition in file array.h.

Macro Definition Documentation

#define HERMES_PAGE_BITS   8

A generic, inflatable array.

This class is a generic dynamic array for storing nodes and elements of a mesh. All items contained in the array are assigned a unique id number. Internally, a list of unused items is maintained. Unused items (and their id numbers) are reused when new_ items are added to the array. The type 'TYPE' must contain the members 'id' and 'unused' in order to be usable by this class.

Todo:
Is this dimension independent?

Definition at line 38 of file array.h.

Referenced by Hermes::Array< TYPE >::add(), Hermes::Array< TYPE >::remove(), and Hermes::Array< TYPE >::skip_slot().