libStatGen Software 1
|
Public Member Functions | |
QuickIndex (const IntArray &source_data) | |
QuickIndex (const StringArray &source_data) | |
QuickIndex (const Vector &source_data) | |
void | Index (const IntArray &source_data) |
void | Index (const StringArray &source_data) |
void | Index (const Vector &source_data) |
void | IndexCounts (const StringIntMap &source_data) |
void | IndexCounts (const StringIntHash &source_data) |
![]() | |
IntArray (int start_size=0) | |
IntArray (const IntArray &source) | |
IntArray & | operator= (const IntArray &rhs) |
int & | operator[] (int index) |
int | operator[] (int index) const |
int & | operator[] (char index) |
int | operator[] (char index) const |
int & | operator[] (double fraction) |
int | operator[] (double fraction) const |
int | Append (int value) |
int | Append (const IntArray &rhs) |
void | Push (int value) |
int | Pop () |
int | Peek () const |
int & | Last () const |
void | PushIfNew (int value) |
int | Delete (int index) |
void | InsertAt (int index, int value) |
int | Find (int value) const |
int | FastFind (int value) const |
int | BinarySearch (int value) const |
void | Sort () |
void | Sort (IntArray &freeRider) |
void | Zero () |
void | Set (int value) |
void | SetSequence (int start=0, int increment=1) |
int | Length () const |
void | Dimension (int new_count) |
void | Clear () |
int | Sum () const |
int | Sum (int start) const |
int | Sum (int start, int end) const |
double | dSum () const |
double | dSum (int start) const |
double | dSum (int start, int end) const |
int | SumProduct (const IntArray &weight) const |
double | dSumProduct (const IntArray &weight) const |
int | Max () const |
int | Max (int start) const |
int | Max (int start, int end) const |
int | Min () const |
int | Min (int start) const |
int | Min (int start, int end) const |
int | Count () const |
int | CountIfGreater (int treshold) const |
int | CountIfGreaterOrEqual (int treshold) const |
void | Swap (int i, int j) |
void | Reverse () |
operator int * () | |
void | Add (int term) |
void | Subtract (int term) |
void | Multiply (int factor) |
void | Divide (int denominator) |
void | Add (const IntArray &rhs) |
IntArray & | operator+= (int rhs) |
IntArray & | operator+= (const IntArray &rhs) |
IntArray & | operator*= (int rhs) |
IntArray & | operator-= (int rhs) |
IntArray & | operator/= (int rhs) |
int | InnerProduct (IntArray &v) |
bool | operator== (const IntArray &rhs) const |
bool | operator!= (const IntArray &rhs) const |
bool | isAscending () |
bool | isDescending () |
void | Stack (const IntArray &rhs) |
void | Swap (IntArray &rhs) |
void | Print () |
void | Print (const char *label) |
void | Print (FILE *output) |
void | Print (FILE *output, const char *label) |
int | Product () |
double | DoubleProduct () |
int | Hash (int initval=0) |
Additional Inherited Members | |
![]() | |
static int | alloc = 4 |
Definition at line 27 of file QuickIndex.h.
QuickIndex::QuickIndex | ( | ) |
Definition at line 26 of file QuickIndex.cpp.
|
inline |
Definition at line 31 of file QuickIndex.h.
|
inline |
Definition at line 35 of file QuickIndex.h.
|
inline |
Definition at line 39 of file QuickIndex.h.
void QuickIndex::Index | ( | const IntArray & | source_data | ) |
Definition at line 32 of file QuickIndex.cpp.
void QuickIndex::Index | ( | const StringArray & | source_data | ) |
Definition at line 52 of file QuickIndex.cpp.
void QuickIndex::Index | ( | const Vector & | source_data | ) |
Definition at line 42 of file QuickIndex.cpp.
void QuickIndex::IndexCounts | ( | const StringIntHash & | source_data | ) |
Definition at line 72 of file QuickIndex.cpp.
void QuickIndex::IndexCounts | ( | const StringIntMap & | source_data | ) |
Definition at line 62 of file QuickIndex.cpp.