NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
structures.hpp File Reference
#include <string>
#include <stdexcept>
#include <vector>
#include <cmath>
#include <algorithm>
#include "interval.hpp"
Include dependency graph for structures.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  VectorIndex
 This class abstracts all the index logics, i.e. the logical differences between single indices and indices described by a vector. More...
 
class  EndlessVector< T >
 This class extends the std::vector for endlessness. More...
 
class  StringViewBase
 This class is a base class for all string view classes. More...
 
class  MutableStringView
 This class is a mutable version of a string view. It can be used to replace single characters or entire parts of the string. It's possible to convert a MutableStringView into a (const) StringView but not the other way around. More...
 
class  StringView
 This class is the immutable (const) version of a string view. It can be constructed from a MutableStringView, but cannot be used to construct a mutable version. More...
 
struct  Indices
 This structure is central for managing the indices of a table or cluster read or write data access. The contained indices are of the VectorIndex type. The structure also contains a precompiled data access equation, which is used to speed up the data access in loops. More...
 
struct  Match
 Structure for the findCommand function. More...
 
struct  Point
 This represents a point in 2D space. More...
 
struct  Returnvalue
 Structure as wrapper for the return value of procedures (which may be numerical or string values or a mixture of both). More...
 
struct  DefaultVariables
 Structure for the four standard variables. More...
 
struct  ColumnKeys
 Structure for the sorting functionality: used for the recursive definition of the index columns for sorting. More...
 
struct  Boundary
 This structure contains the information of a two-dimensional boundary. More...
 

Functions

long long int intCast (const std::complex< double > &)
 Casts the real part of the complex number to an integer and avoids rounding errors. More...
 
std::string toString (int)
 Converts an integer to a string without the Settings bloat. More...
 
std::string toString (long long int)
 Converts a long long int to a string. More...
 
std::string operator+ (const std::string &sString, const StringViewBase &view)
 Inverse concatenation operator for a string instance with a StringViewBase instance. More...
 

Function Documentation

◆ intCast()

long long int intCast ( const std::complex< double > &  number)

Casts the real part of the complex number to an integer and avoids rounding errors.

Parameters
numberconst std::complex<double>&
Returns
long long int

Definition at line 1824 of file tools.cpp.

References intCast().

Referenced by mu::ParserByteCode::AddOp(), append_data(), NumeRe::StringFuncHandler::applySpecialStringFuncs(), NumeRe::StringFuncHandler::argumentParser(), assemble(), bilinearInterpolation(), FlowCtrl::calc(), cmd_load(), cmd_progress(), cmd_resample(), cmd_smooth(), Memory::cmp(), NumeRe::Cluster::cmp(), FlowCtrl::compile(), Plot::constructDataLegendElement(), createDatagrid(), Plot::createDataLegends(), differentiate(), doc_SearchFct(), evalMatOp(), evalPoints(), Plot::evaluateSubplot(), FlowCtrl::extractFlagsAndIndexVariables(), fastWaveletTransform(), findExtrema(), findZeroes(), FlowCtrl::for_loop(), getIndices(), getWindow(), handleCasualIndices(), handleIndexVectors(), integrate(), integrate2d(), interpolateToGrid(), Memory::maxpos(), Memory::minpos(), parseCmdArg(), MemoryManager::parseEvery(), parser_AssociatedLaguerrePolynomial(), parser_AssociatedLegendrePolynomial(), parser_beta(), parser_BetheWeizsaecker(), parser_BinAND(), parser_Binom(), parser_BinOR(), parser_compare(), parser_digamma(), parser_doubleFaculty(), parser_Faculty(), parser_gcd(), parser_HermitePolynomial(), parser_imSphericalHarmonics(), parser_IrregularCylBessel(), parser_LaguerrePolynomial(), parser_lcm(), parser_LegendrePolynomial(), parser_perlin(), parser_polygamma(), parser_RegularCylBessel(), parser_round(), parser_sleep(), parser_SphericalBessel(), parser_SphericalHarmonics(), parser_SphericalNeumann(), parser_studentFactor(), parser_Zernike(), particleSwarmOptimizer(), Plot::Plot(), plugin_histogram(), plugin_random(), NumeRe::StringFuncHandler::printValue(), NumeReKernel::progressBar(), FlowCtrl::range_based_for_loop(), Memory::readMemInterpolated(), regularizeDataSet(), replaceEntityOccurence(), saveDataObject(), selection(), PlotData::setParams(), CategoricalColumn::setValue(), shortTimeFourierAnalysis(), Odesolver::solve(), tableMethod_anova(), tableMethod_binsof(), tableMethod_cov(), tableMethod_index(), tableMethod_pcorr(), tableMethod_rank(), tableMethod_scorr(), tableMethod_typeof(), tableMethod_zscore(), taylor(), VectorIndex::VectorIndex(), and writeAudioFile().

Here is the call graph for this function:

◆ operator+()

std::string operator+ ( const std::string &  sString,
const StringViewBase view 
)
inline

Inverse concatenation operator for a string instance with a StringViewBase instance.

Parameters
sStringconst std::string&
viewconst StringViewBase&
Returns
std::string

Definition at line 1708 of file structures.hpp.

References StringViewBase::to_string().

Here is the call graph for this function:

◆ toString() [1/2]

std::string toString ( int  nNumber)

Converts an integer to a string without the Settings bloat.

Parameters
nNumberint
Returns
std::string

Definition at line 121 of file stringtools.cpp.

References toString().

Referenced by CodeAnalyzer::analyseCommands(), analyzePulse(), append_data(), NumeRe::StringFuncHandler::applySpecialStringFuncs(), mu::ParserByteCode::AsciiDump(), calculate2dFFT(), calculateChiMap(), calculateSplines(), cartToCyl(), cartToPolar(), Procedure::catchExceptionForTest(), NumeReWindow::CloseAllFiles(), cmd_delete(), cmd_get(), cmd_load(), cmd_set(), cmd_show(), cmd_warn(), constructCovarianceMatrix(), ValueColumn::convert(), DateTimeColumn::convert(), convertToString(), FunctionDefinition::convertToValues(), Plot::CoordFunc(), coordsToGrid(), Plot::create2dPlot(), createDatagrid(), FileRevisions::createDiff(), DependencyDialog::CreateDotFile(), CellValueShaderDialog::createIntervalExclPage(), CellValueShaderDialog::createIntervalPage(), ProcedureVarFactory::createLocalInlineStrings(), ProcedureVarFactory::createLocalInlineVars(), ProcedureVarFactory::createMangledArgName(), ProcedureVarFactory::createMangledVarName(), FileRevisions::createNewRevision(), FileRevisions::createNewTag(), createOutputForHist1D(), createOutputForHist2D(), Plot::createPlotOrAnimation(), createStatsFile(), createStatsOutput(), NumeRe::StringVarFactory::createStringVectorVar(), NumeRe::ClusterManager::createTemporaryCluster(), NumeRe::StringVarFactory::createTempStringVectorVar(), NumeRe::StringParser::createTerminalOutput(), createTeXExport(), cylToCart(), cylToPolar(), NumeReDebugger::decodeType(), determineWindowSize(), doc_SearchFct(), CombinedCellEditor::EndEdit(), NumeReEditor::Entry(), mu::ParserBase::Eval(), evalMatOp(), NumeRe::StringLogicParser::evalStringLogic(), evaluateExpression(), evaluateParameterValues(), ProcedureVarFactory::evaluateProcedureArguments(), NumeReKernel::evaluateProcedureCalls(), NumeRe::StringParser::evaluateStack(), NumeRe::StringVarFactory::evaluateStringVectors(), Procedure::execute(), Plot::expandStyleForCurveArray(), NumeReEditor::ExtractAsHTML(), fastFourierTransform(), RenameSymbolsDialog::fillChangesLog(), findExtrema(), SearchController::FindProceduresInCurrentFile(), FlowCtrl::for_loop(), Output::format(), formatByteSize(), formatMatrixRow(), NumeRe::LaTeXTable::formatNumber(), formatNumberToTex(), NumeReKernel::formatResultOutput(), NumeReEditor::generateAutoCompList(), generateTemplate(), Language::get(), NumeReSyntax::getAutoCompList(), NumeReSyntax::getAutoCompListCPP(), NumeReSyntax::getAutoCompListMATLAB(), NumeReSyntax::getAutoCompListTeX(), Memory::getCategoryList(), GridNumeReTable::GetColLabelValue(), getDataForFit(), NumeRe::StringParser::getDataForString(), TableColumn::getDefaultColumnHead(), getErrorType(), getFileInfo(), Fitcontroller::getFitFunction(), getFitOptionsTable(), NumeReDebugger::getGlobals(), Documentation::getHelpArticle(), NumeRe::ClusterDoubleItem::getInternalString(), NumeReDebugger::getModuleInformations(), NumeReSyntax::getNameSpaceAutoCompList(), mu::ParserBase::getNextVectorVarIndex(), NumeReDebugger::getNumVars(), getParameterTable(), PlotData::getParams(), NumeReSyntax::getProcAutoCompList(), StringVector::getRef(), FileRevisions::getRevision(), GridNumeReTable::GetRowLabelValue(), NumeRe::Cluster::getShortVectorRepresentation(), NumeReDebugger::getStackTrace(), NumeRe::ClusterDoubleItem::getString(), NumeReKernel::getStringTable(), EditorNotebook::GetTabFromPoint(), DateTimeColumn::getValueAsInternalString(), ValueColumn::getValueAsString(), CategoricalColumn::getValueAsString(), NumeReKernel::getVariableList(), getVarList(), NumeRe::NumeReDataFile::getVersionString(), NumeReWindow::gotoLine(), CustomWindow::handleEvent(), Script::handleInstallInformation(), integrate(), integrate2d(), listConstants(), listDeclaredVariables(), listDefinitions(), listDirectory(), FunctionDefinitionManager::load(), NumeReKernel::MainLoop(), make_stringmatrix(), matrixReshape(), moveOrCopyFiles(), Odesolver::odeFunction(), NumeReWindow::OnCalculateDependencies(), NumeReWindow::OnCreatePackage(), MyApp::OnExceptionInMainLoop(), NumeReWindow::OnFileEventTimer(), NumeReWindow::OnFindEvent(), EditorNotebook::OnTabRightClicked(), NumeRe::FileAdapter::openFile(), Matrix::operator()(), padWithZeros(), parseArg(), NumeRe::JcampDX::parseLine(), parser_declareDataMatrixValuesForIndices(), parser_declareMatrixReturnValuesForIndices(), mu::ParserBase::PauseLoopMode(), Plot::plotstd3d(), plugin_random(), polarToCart(), polarToCyl(), FlowCtrl::prepareLocalVarsAndReplace(), prepareTicksForHist1d(), Matrix::printDims(), NumeRe::StringFuncHandler::printValue(), mu::printVector(), ProcedureElement::ProcedureElement(), Procedure::procedureInterface(), NumeReKernel::progressBar(), StringVector::push_back(), DetachedLogger::push_line(), FlowCtrl::range_based_for_loop(), NumeRe::XLSXSpreadSheet::readFile(), NumeRe::IgorBinaryWave::readFile(), NumeRe::ZygoDat::readFile(), readImage(), NumeRe::JcampDX::readTable(), TextManager::renderLayout(), NumeReKernel::resetAfterError(), FileRevisions::restoreRevision(), CodeAnalyzer::run(), seekInAudioFile(), FlowCtrl::setCommand(), TableViewer::SetData(), NumeRe::ClusterStringItem::setDouble(), setParametersInWindow(), DuplicateCodeDialog::SetResult(), StringColumn::setValue(), CategoricalColumn::setValue(), shortTimeFourierAnalysis(), showMatrixResult(), Odesolver::solve(), solveLGSSymbolic(), NumeReEditor::sortSelection(), mu::ParserBase::StackDump(), Timer::Stop(), NumeRe::StringParser::storeStringResults(), strfnc_basetodec(), strfnc_cnt(), strfnc_findparam(), strfnc_findtoken(), strfnc_getmatchingparens(), strfnc_getversioninfo(), strfnc_num(), strfnc_regex(), strfnc_str_not_match(), strfnc_str_not_rmatch(), strfnc_strfnd(), strfnc_strlen(), strfnc_strmatch(), strfnc_strrfnd(), strfnc_strrmatch(), strfnc_sum(), strfnc_timeformat(), tableMethod_anova(), FileRevisions::tagRevision(), taylor(), NumeReDebugger::throwException(), SyntaxStyles::to_string(), VectorIndex::to_string(), FileRevisions::undoRevision(), TablePanel::update(), ProcedureViewer::updateProcedureList(), TableViewer::updateStatusBar(), VariableViewer::UpdateVariables(), urlExecute(), windowCommand(), DetachedLogger::write_system_information(), NumeRe::CommaSeparatedValues::writeFile(), NumeRe::LaTeXTable::writeFile(), and NumeRe::TextDataFile::writeTableContents().

Here is the call graph for this function:

◆ toString() [2/2]

std::string toString ( long long int  nNumber)

Converts a long long int to a string.

Parameters
nNumberlong longint
Returns
string

Definition at line 274 of file stringtools.cpp.