ADBLib  0.5
A simple library for rapid robot code development
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
ADBLib::Token Class Reference

#include <Equation.h>

Public Member Functions

Token evaluate (Token arg1, Token arg2, long double variable)
 Internal use. Assuming this token is an operator, evaluates the results of the operation with the two given arguments. More...
 

Public Attributes

operations operation
 
tokenType type
 
long double value
 

Member Function Documentation

Token ADBLib::Token::evaluate ( Token  arg1,
Token  arg2,
long double  variable 
)

Internal use. Assuming this token is an operator, evaluates the results of the operation with the two given arguments.

Parameters
arg1A token of type value or variable.
arg2A token of type value or variable.
variableThe value of the variable to use in case either argument is a variable.
Returns
A token of type value containing the results of the operation.
Exceptions
parse_error

Here is the caller graph for this function:

Member Data Documentation

operations ADBLib::Token::operation
tokenType ADBLib::Token::type
long double ADBLib::Token::value

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