Acoustic FDTD Solver
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UniqueCoefficientContainer Class Reference

#include <UniqueCoefficientContainer.hpp>

Public Member Functions

 UniqueCoefficientContainer ()
unsigned short insert (double x)
 If the coefficient exisits in the array, return its index.
unsigned short insert_deprecated (double x)
 Use the linear search for unique coefficient.
const double * getHandle ()
void print () const
 ~UniqueCoefficientContainer ()

Private Member Functions

unsigned short insert (const Node &node)

Private Attributes

double * coeff
 contain the unique values
unsigned short size
 track the size of the array
Node root_node

Constructor & Destructor Documentation

UniqueCoefficientContainer::UniqueCoefficientContainer ( )
inline
UniqueCoefficientContainer::~UniqueCoefficientContainer ( )
inline

Member Function Documentation

const double* UniqueCoefficientContainer::getHandle ( )
inline
Returns
the pointer to the coefficient array
unsigned short UniqueCoefficientContainer::insert ( const Node node)
inlineprivate
unsigned short UniqueCoefficientContainer::insert ( double  x)
inline

If the coefficient exisits in the array, return its index.

If the coefficient does not exist in the array, insert the coefficient and return its idx.

Parameters
xcoefficient
Returns
index of the coefficient
unsigned short UniqueCoefficientContainer::insert_deprecated ( double  x)
inline

Use the linear search for unique coefficient.

void UniqueCoefficientContainer::print ( ) const
inline

Member Data Documentation

double* UniqueCoefficientContainer::coeff
private

contain the unique values

Node UniqueCoefficientContainer::root_node
private
unsigned short UniqueCoefficientContainer::size
private

track the size of the array


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