Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

queueElem Class Template Reference

A queue element. More...

#include <queue.h>

List of all members.

Public Methods

 queueElem (packnode< T > *n, size_t i)
 Initialize the queue element. More...

void* operator new (size_t num_bytes)
 allocate queueElem objects from a memory pool. More...


Public Attributes

packnode<T>* node
size_t indent

Private Methods

 queueElem ()
 disallow the default constructor. More...


Detailed Description

template<class T> class queueElem

A queue element.

This class stores a pointer to a wavelet packet tree node (a packnode) and the indentation (in spaces) to be used when printing the tree.

Author:
Ian Kaplan

Definition at line 57 of file queue.h.


Constructor & Destructor Documentation

template<class T>
queueElem<T>::queueElem<T> ( ) [inline, private]
 

disallow the default constructor.

Definition at line 61 of file queue.h.

00061 {}

template<class T>
queueElem<T>::queueElem<T> ( packnode< T > * n,
size_t i ) [inline]
 

Initialize the queue element.

Definition at line 67 of file queue.h.

00068   {
00069     node = n;
00070     indent = i;
00071   }


Member Function Documentation

template<class T>
void * queueElem<T>::operator new ( size_t num_bytes ) [inline]
 

allocate queueElem objects from a memory pool.

Definition at line 74 of file queue.h.

00075   {
00076     block_pool mem_pool;
00077 
00078     void *mem_addr = mem_pool.pool_alloc( num_bytes );
00079     return mem_addr;      
00080   } // new


Member Data Documentation

template<class T>
size_t queueElem<T>::indent
 

Definition at line 64 of file queue.h.

template<class T>
packnode< T > * queueElem<T>::node<T>
 

Definition at line 63 of file queue.h.


The documentation for this class was generated from the following file:
Generated at Tue May 27 21:56:17 2003 for Wavelet compression, determinism and time series forecasting by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001