NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
StringMemory Class Reference

#include <stringmemory.hpp>

Inheritance diagram for StringMemory:
Collaboration diagram for StringMemory:

Public Member Functions

bool writeString (const std::string &_sString, unsigned int _nthString=std::string::npos, unsigned int nCol=0)
 
std::string readString (unsigned int _nthString=std::string::npos, unsigned int nCol=0)
 
std::string maxString (unsigned int i1=0, unsigned int i2=std::string::npos, unsigned int nCol=0)
 
std::string maxString (VectorIndex _vLine, VectorIndex _vCol)
 
std::string minString (unsigned int i1=0, unsigned int i2=std::string::npos, unsigned int nCol=0)
 
std::string minString (VectorIndex _vLine, VectorIndex _vCol)
 
std::string sumString (unsigned int i1=0, unsigned int i2=std::string::npos, unsigned int nCol=0)
 
std::string sumString (VectorIndex _vLine, VectorIndex _vCol)
 
unsigned int getStringElements (unsigned int nCol=std::string::npos) const
 
unsigned int getStringCols () const
 
bool removeStringElements (unsigned int nCol=0)
 
bool clearStringElements ()
 
int getStringSize (unsigned int nCol=std::string::npos) const
 
std::vector< int > sortStringElements (long long int i1, long long int i2, long long int j1, long long int j2, const std::string &sSortingExpression)
 

Private Attributes

StringInternalMemory _stringIntMem
 

Detailed Description

Definition at line 50 of file stringmemory.hpp.

Member Function Documentation

◆ clearStringElements()

bool StringMemory::clearStringElements ( )
inline

Definition at line 110 of file stringmemory.hpp.

References _stringIntMem, and StringInternalMemory::sStrings.

Referenced by cmd_clear().

◆ getStringCols()

◆ getStringElements()

◆ getStringSize()

int StringMemory::getStringSize ( unsigned int  nCol = std::string::npos) const
inline

Definition at line 122 of file stringmemory.hpp.

References _stringIntMem, getStringSize(), and StringInternalMemory::sStrings.

Referenced by NumeReDebugger::decodeType(), getStringSize(), NumeReKernel::getVariableList(), and listDeclaredVariables().

Here is the call graph for this function:

◆ maxString() [1/2]

string StringMemory::maxString ( unsigned int  i1 = 0,
unsigned int  i2 = std::string::npos,
unsigned int  nCol = 0 
)

◆ maxString() [2/2]

string StringMemory::maxString ( VectorIndex  _vLine,
VectorIndex  _vCol 
)

Definition at line 377 of file stringmemory.cpp.

References _stringIntMem, VectorIndex::front(), VectorIndex::isOpenEnd(), VectorIndex::last(), VectorIndex::setRange(), VectorIndex::size(), and StringInternalMemory::sStrings.

Here is the call graph for this function:

◆ minString() [1/2]

string StringMemory::minString ( unsigned int  i1 = 0,
unsigned int  i2 = std::string::npos,
unsigned int  nCol = 0 
)

◆ minString() [2/2]

string StringMemory::minString ( VectorIndex  _vLine,
VectorIndex  _vCol 
)

Definition at line 433 of file stringmemory.cpp.

References _stringIntMem, VectorIndex::front(), VectorIndex::isOpenEnd(), VectorIndex::last(), VectorIndex::setRange(), VectorIndex::size(), and StringInternalMemory::sStrings.

Here is the call graph for this function:

◆ readString()

string StringMemory::readString ( unsigned int  _nthString = std::string::npos,
unsigned int  nCol = 0 
)

◆ removeStringElements()

bool StringMemory::removeStringElements ( unsigned int  nCol = 0)
inline

Definition at line 98 of file stringmemory.hpp.

References _stringIntMem, and StringInternalMemory::sStrings.

Referenced by cmd_delete().

◆ sortStringElements()

std::vector< int > StringMemory::sortStringElements ( long long int  i1,
long long int  i2,
long long int  j1,
long long int  j2,
const std::string &  sSortingExpression 
)
inline

Definition at line 159 of file stringmemory.hpp.

References _stringIntMem, and StringInternalMemory::sortElements().

Referenced by sortStrings().

Here is the call graph for this function:

◆ sumString() [1/2]

string StringMemory::sumString ( unsigned int  i1 = 0,
unsigned int  i2 = std::string::npos,
unsigned int  nCol = 0 
)

◆ sumString() [2/2]

string StringMemory::sumString ( VectorIndex  _vLine,
VectorIndex  _vCol 
)

Definition at line 488 of file stringmemory.cpp.

References _stringIntMem, VectorIndex::front(), VectorIndex::isOpenEnd(), VectorIndex::last(), VectorIndex::setRange(), VectorIndex::size(), and StringInternalMemory::sStrings.

Here is the call graph for this function:

◆ writeString()

bool StringMemory::writeString ( const std::string &  _sString,
unsigned int  _nthString = std::string::npos,
unsigned int  nCol = 0 
)

Member Data Documentation

◆ _stringIntMem


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