#include <stringmemory.hpp>
|
| StringInternalMemory () |
|
std::vector< int > | sortElements (long long int i1, long long int i2, long long int j1, long long int j2, const std::string &sSortingExpression) |
|
virtual | ~Sorter () |
|
bool | qSort (int *nIndex, int nElements, int nColumn, long long int nLeft, long long int nRight, int nSign) |
| This public member function is the interface to the quicksort algorithm, which itself is implemented as a private member function of this class. More...
|
|
bool | sortSubList (int *nIndex, int nElements, ColumnKeys *KeyList, long long int i1, long long int i2, long long int j1, int nSign, long long int nColumns) |
| This public member function handles the hierarchical sorting process of many columns together. The ColumnKeys object contains the necessary information needed for the hierarchical sorting. More...
|
|
ColumnKeys * | evaluateKeyList (std::string &sKeyList, long long int nColumnCount) |
| This public member function creates a ColumnKeys object from a string containing the hierarchical sorting order for the current sorting process. More...
|
|
|
std::vector< std::vector< std::string > > | sStrings |
|
|
void | reorderColumn (const std::vector< int > &vIndex, long long int i1, long long int i2, long long int j1=0) |
|
virtual int | compare (int i, int j, int col) override |
|
virtual bool | isValue (int line, int col) override |
|
|
virtual int | compare (int i, int j, int col)=0 |
|
virtual bool | isValue (int line, int col)=0 |
|
Definition at line 30 of file stringmemory.hpp.
◆ StringInternalMemory()
StringInternalMemory::StringInternalMemory |
( |
| ) |
|
|
inline |
◆ compare()
int StringInternalMemory::compare |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
col |
|
) |
| |
|
overrideprivatevirtual |
◆ isValue()
bool StringInternalMemory::isValue |
( |
int |
line, |
|
|
int |
col |
|
) |
| |
|
overrideprivatevirtual |
◆ reorderColumn()
void StringInternalMemory::reorderColumn |
( |
const std::vector< int > & |
vIndex, |
|
|
long long int |
i1, |
|
|
long long int |
i2, |
|
|
long long int |
j1 = 0 |
|
) |
| |
|
private |
◆ sortElements()
vector< int > StringInternalMemory::sortElements |
( |
long long int |
i1, |
|
|
long long int |
i2, |
|
|
long long int |
j1, |
|
|
long long int |
j2, |
|
|
const std::string & |
sSortingExpression |
|
) |
| |
Definition at line 75 of file stringmemory.cpp.
References bSortCaseInsensitive, SyntaxError::CANNOT_SORT_CACHE, SyntaxError::CANNOT_SORT_DATA, Sorter::evaluateKeyList(), findParameter(), getArgAtPos(), SyntaxError::invalid_position, ColumnKeys::nKey, Sorter::qSort(), reorderColumn(), Sorter::sortSubList(), sStrings, and ColumnKeys::subkeys.
Referenced by StringMemory::sortStringElements().
◆ bSortCaseInsensitive
bool StringInternalMemory::bSortCaseInsensitive |
|
private |
◆ sStrings
std::vector<std::vector<std::string> > StringInternalMemory::sStrings |
Definition at line 42 of file stringmemory.hpp.
Referenced by StringMemory::clearStringElements(), compare(), StringMemory::getStringCols(), StringMemory::getStringElements(), StringMemory::getStringSize(), isValue(), StringMemory::maxString(), StringMemory::minString(), StringMemory::readString(), StringMemory::removeStringElements(), reorderColumn(), sortElements(), StringMemory::sumString(), and StringMemory::writeString().
The documentation for this class was generated from the following files: