ConicBundle
Classes | Namespaces | Functions
memarray.hxx File Reference

Header for simple memory management tools that support frequent allocation and deallocation of arrays of the same sizes. More...

#include <iostream>
#include "matop.hxx"

Go to the source code of this file.

Classes

class  CH_Matrix_Classes::Memarray
 A simple memory manager for frequent allocation and deallocation of arrays of roughly the same size. More...
 
class  CH_Matrix_Classes::Memarray::Entry
 holds the information of one allocated block and serves as an item in the singly linked lists More...
 
class  CH_Matrix_Classes::Memarrayuser
 All derived classes share a common Memarray memory manager, which is generated with the first user and destructed when the last user is destructed. More...
 

Namespaces

 CH_Matrix_Classes
 Matrix Classes and Linear Algebra. See Matrix Classes (namespace CH_Matrix_Classes) for a quick introduction.
 

Functions

template<class T >
int CH_Matrix_Classes::mem_provide (Memarray &memarray, long provide, long in_use, long &avail, T *&store)
 provide sufficient memory for an existing array, reallocating and copying the old information upon need, returns 0 upon success, !=0 upon failure. More...
 
template<class T >
int CH_Matrix_Classes::mem_provide_init0 (Memarray &memarray, long provide, long &avail, T *&store)
 provide sufficient memory for an existing array, reallocating and copying the old information and initializing the new entries to 0, returns 0 upon success, !=0 upon failure. More...
 

Detailed Description

Header for simple memory management tools that support frequent allocation and deallocation of arrays of the same sizes.

Version
1.0
Date
2005-03-01
Author
Christoph Helmberg