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

clSortedArray Class Reference

Class for array of sorted values with insert/remove functionality. More...

#include <RemoveNoise.hh>

List of all members.

Public Member Functions

 clSortedArray ()
 ~clSortedArray ()
void Initialize (const float *, long)
 Initialize array, optionally with data.

void InsertTail (float)
 Insert new value to "tail" of the array.

void RemoveHead ()
 Remove value from "head" of the array.

void GetValues (float *, long)
 Get values in array (in sorted order).

long GetSize ()
 Get number of values in array.

void Clear ()
 Clear the array.


Private Types

enum  eDataType { TYPE_DOUBLE, TYPE_FLOAT }

Private Attributes

eDataType DataType
long lFrontSerial
long lTailSerial
ValueMap_t mapValues
ValueMapf_t mapValuesf


Detailed Description

Class for array of sorted values with insert/remove functionality.

Definition at line 40 of file RemoveNoise.hh.


Member Enumeration Documentation

enum clSortedArray::eDataType [private]
 

Enumeration values:
TYPE_DOUBLE 
TYPE_FLOAT 

Definition at line 42 of file RemoveNoise.hh.


Constructor & Destructor Documentation

clSortedArray::clSortedArray  ) 
 

Definition at line 35 of file RemoveNoise.cc.

References lFrontSerial, and lTailSerial.

clSortedArray::~clSortedArray  ) 
 

Definition at line 42 of file RemoveNoise.cc.


Member Function Documentation

void clSortedArray::Initialize const float *  ,
long 
 

Initialize array, optionally with data.

Parameters:
fpValues Initialization values
lValueCount Number of values in initialization array

Definition at line 47 of file RemoveNoise.cc.

References Clear(), DataType, InsertTail(), and TYPE_FLOAT.

void clSortedArray::InsertTail float   ) 
 

Insert new value to "tail" of the array.

Parameters:
fValue Value to insert

Definition at line 59 of file RemoveNoise.cc.

References lTailSerial, and mapValuesf.

Referenced by Initialize().

void clSortedArray::RemoveHead  ) 
 

Remove value from "head" of the array.

Definition at line 66 of file RemoveNoise.cc.

References DataType, lFrontSerial, mapValuesf, and TYPE_FLOAT.

void clSortedArray::GetValues float *  ,
long 
 

Get values in array (in sorted order).

Parameters:
fpValues Destination array
lValueCount Size of destination array
Exceptions:
clXSortedArray 

Definition at line 87 of file RemoveNoise.cc.

References DataType, GetSize(), mapValuesf, and TYPE_FLOAT.

long clSortedArray::GetSize  ) 
 

Get number of values in array.

Returns:
Number of values
Exceptions:
clXSortedArray 

Definition at line 109 of file RemoveNoise.cc.

References DataType, mapValues, mapValuesf, TYPE_DOUBLE, and TYPE_FLOAT.

Referenced by GetValues().

void clSortedArray::Clear  ) 
 

Clear the array.

Definition at line 122 of file RemoveNoise.cc.

References lFrontSerial, lTailSerial, mapValues, and mapValuesf.

Referenced by Initialize().


Member Data Documentation

eDataType clSortedArray::DataType [private]
 

Definition at line 55 of file RemoveNoise.hh.

Referenced by GetSize(), GetValues(), Initialize(), and RemoveHead().

long clSortedArray::lFrontSerial [private]
 

Definition at line 56 of file RemoveNoise.hh.

Referenced by Clear(), clSortedArray(), and RemoveHead().

long clSortedArray::lTailSerial [private]
 

Definition at line 57 of file RemoveNoise.hh.

Referenced by Clear(), clSortedArray(), and InsertTail().

ValueMap_t clSortedArray::mapValues [private]
 

Definition at line 58 of file RemoveNoise.hh.

Referenced by Clear(), and GetSize().

ValueMapf_t clSortedArray::mapValuesf [private]
 

Definition at line 59 of file RemoveNoise.hh.

Referenced by Clear(), GetSize(), GetValues(), InsertTail(), and RemoveHead().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:23 2003 for HASAS by doxygen 1.3.3