OS
2.9.3
|
a sparse vector data structure for integer vectors More...
#include <OSGeneral.h>
Public Member Functions | |
SparseIntVector (int number) | |
Constructor. More... | |
SparseIntVector () | |
Default Constructor. More... | |
~SparseIntVector () | |
Default destructor. More... | |
Public Attributes | |
bool | bDeleteArrays |
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default More... | |
int | number |
number is the number of elements in the indexes and values arrays. More... | |
int * | indexes |
indexes holds an integer array of indexes whose corresponding values are listed in the same order in the values array. More... | |
int * | values |
values holds an integer array of nonzero values. More... | |
a sparse vector data structure for integer vectors
Definition at line 171 of file OSGeneral.h.
SparseIntVector::SparseIntVector | ( | int | number | ) |
Constructor.
number | holds the size of the vector. |
SparseIntVector::SparseIntVector | ( | ) |
Default Constructor.
SparseIntVector::~SparseIntVector | ( | ) |
Default destructor.
bool SparseIntVector::bDeleteArrays |
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
Definition at line 198 of file OSGeneral.h.
int SparseIntVector::number |
number is the number of elements in the indexes and values arrays.
Definition at line 203 of file OSGeneral.h.
int* SparseIntVector::indexes |
indexes holds an integer array of indexes whose corresponding values are listed in the same order in the values array.
Typically those would be nonzero.
Definition at line 210 of file OSGeneral.h.
int* SparseIntVector::values |
values holds an integer array of nonzero values.
Definition at line 215 of file OSGeneral.h.