#include <UniqueCoefficientContainer.hpp>
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
-
- 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: