NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
mu::ExpressionTarget Struct Reference

This structure defines the overall expression target, if it is composed out of a temporary vector like {a,b}. More...

#include <muParserState.hpp>

Collaboration diagram for mu::ExpressionTarget:

Public Member Functions

void create (StringView sTargets, const varmap_type &usedVars)
 Create a expression target made up from multiple variables. More...
 
void assign (const valbuf_type &buffer, int nResults)
 Assign the calculated values to the target vector components. More...
 
void clear ()
 
bool isValid () const
 

Public Attributes

std::vector< mu::value_type * > m_targets
 

Detailed Description

This structure defines the overall expression target, if it is composed out of a temporary vector like {a,b}.

Definition at line 188 of file muParserState.hpp.

Member Function Documentation

◆ assign()

void mu::ExpressionTarget::assign ( const valbuf_type buffer,
int  nResults 
)

Assign the calculated values to the target vector components.

Parameters
bufferconst valbuf_type&
nResultsint
Returns
void

Definition at line 66 of file muParserState.cpp.

References m_targets, and min.

Referenced by mu::ParserBase::Eval().

◆ clear()

void mu::ExpressionTarget::clear ( )
inline

Definition at line 195 of file muParserState.hpp.

References m_targets.

Referenced by mu::LineStateStack::clear(), and mu::ParserBase::ClearVectorVars().

◆ create()

void mu::ExpressionTarget::create ( StringView  sTargets,
const varmap_type usedVars 
)

Create a expression target made up from multiple variables.

Parameters
sTargetsStringView
usedVarsconst varmap_type&
Returns
void

Definition at line 35 of file muParserState.cpp.

References getNextViewedArgument(), StringViewBase::length(), and m_targets.

Referenced by mu::ParserBase::compileVectors().

Here is the call graph for this function:

◆ isValid()

bool mu::ExpressionTarget::isValid ( ) const
inline

Definition at line 200 of file muParserState.hpp.

References m_targets.

Referenced by mu::ParserBase::Eval().

Member Data Documentation

◆ m_targets

std::vector<mu::value_type*> mu::ExpressionTarget::m_targets

Definition at line 190 of file muParserState.hpp.

Referenced by assign(), clear(), create(), and isValid().


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