Definition at line 88 of file Expression.hpp.
#include <Expression.hpp>
◆ Expression() [1/3]
gnsstk::Expression::Expression |
( |
void |
| ) |
|
◆ Expression() [2/3]
gnsstk::Expression::Expression |
( |
const std::string & |
str | ) |
|
◆ Expression() [3/3]
Copy constructor.
- Parameters
-
- Note
- variable values are not copied.
Definition at line 182 of file Expression.cpp.
◆ ~Expression()
gnsstk::Expression::~Expression |
( |
void |
| ) |
|
◆ buildExpressionTree()
void gnsstk::Expression::buildExpressionTree |
( |
void |
| ) |
|
|
private |
◆ canEvaluate()
bool gnsstk::Expression::canEvaluate |
( |
void |
| ) |
|
Checks in advance if all variables have been set.
- Returns
- True if all variables are set.
Definition at line 560 of file Expression.cpp.
◆ countResolvedTokens()
int gnsstk::Expression::countResolvedTokens |
( |
void |
| ) |
|
|
private |
◆ defineOperators()
void gnsstk::Expression::defineOperators |
( |
void |
| ) |
|
|
private |
◆ dumpLists()
void gnsstk::Expression::dumpLists |
( |
void |
| ) |
|
|
private |
◆ evaluate()
double gnsstk::Expression::evaluate |
( |
void |
| ) |
|
|
inline |
Returns the numerical value of the expression. Note that if the expression contains variables, those variables must be set.
- Exceptions
-
Definition at line 174 of file Expression.hpp.
◆ operator=()
◆ print()
void gnsstk::Expression::print |
( |
std::ostream & |
ostr | ) |
const |
|
inline |
Writes the expression out to a stream.
Definition at line 180 of file Expression.hpp.
◆ set() [1/2]
bool gnsstk::Expression::set |
( |
const char * |
name, |
|
|
double |
value |
|
) |
| |
|
inline |
Sets a variable in the expression to the input value. All instances of the variable are set to this value. This is required before an expression can be evaluated, if the expression contains variables. In the search, case is not important (e.g., "c" and "C" would be a match).
- Parameters
-
name | Name of the variable to set |
value | Value to set the variable to. |
- Returns
- True if the variable was found.
Definition at line 138 of file Expression.hpp.
◆ set() [2/2]
bool gnsstk::Expression::set |
( |
const std::string |
name, |
|
|
double |
value |
|
) |
| |
Sets a variable in the expression to the input value. All instances of the variable are set to this value. This is required before an expression can be evaluated, if the expression contains variables.
- Parameters
-
name | Name of the variable to set |
value | Value to set the variable to. |
- Returns
- True if the variable was found.
Definition at line 533 of file Expression.cpp.
◆ setExpression()
void gnsstk::Expression::setExpression |
( |
const std::string & |
newExpression | ) |
|
|
private |
◆ setGPSConstants()
bool gnsstk::Expression::setGPSConstants |
( |
void |
| ) |
|
Sets multiple variables in the expression to constants associated with GPS. Predefined variables include: PI; C (meters per second); L1 and L2, carrier frequencies in cycles per second; WL1 and WL2, carrier wavelengths. As with other variables, the case is insensitive.
- Returns
- True if any GPS related constants were found
Definition at line 581 of file Expression.cpp.
◆ setRinexObs()
Sets multiple variables in the expression using values stored in a RinexObsType stucture. This structure is nested within the RinexObsData class.
- Parameters
-
- Returns
- True if an obs variable was found.
Definition at line 599 of file Expression.cpp.
◆ setSvObsEpoch()
◆ tokenize()
void gnsstk::Expression::tokenize |
( |
const std::string & |
str | ) |
|
|
private |
◆ argumentPatternMap
std::map< std::string, std::string > gnsstk::Expression::argumentPatternMap |
|
staticprivate |
◆ eList
std::list<ExpNode *> gnsstk::Expression::eList |
|
private |
◆ operatorMap
std::map< std::string, int > gnsstk::Expression::operatorMap |
|
staticprivate |
◆ operatorsDefined
bool gnsstk::Expression::operatorsDefined = false |
|
staticprivate |
◆ root
◆ tList
std::list<Token> gnsstk::Expression::tList |
|
private |
The documentation for this class was generated from the following files: