Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression Class Reference
Collaboration diagram for Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression:
Collaboration graph
[legend]

Classes

struct  definition
struct  variables

Public Member Functions

 AnalyticExpression (const boost_spirit::symbols< NekDouble > *constants, const std::vector< std::string > &variables)
 ~AnalyticExpression ()

Static Public Attributes

static const int constantID = 1
static const int numberID = 2
static const int variableID = 3
static const int parameterID = 4
static const int functionID = 5
static const int factorID = 6
static const int operatorID = 7

Private Attributes

const boost_spirit::symbols
< NekDouble > * 
constants_p
Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::variables variables_p

Detailed Description

This is the class that is used as the grammar parser for the spirit engine.

Definition at line 298 of file AnalyticExpressionEvaluator.hpp.

Constructor & Destructor Documentation

Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::AnalyticExpression ( const boost_spirit::symbols< NekDouble > *  constants,
const std::vector< std::string > &  variables 
)
inline

Definition at line 325 of file AnalyticExpressionEvaluator.hpp.

:
boost_spirit::grammar<AnalyticExpression>(), constants_p(constants), variables_p(variables) {}
Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::~AnalyticExpression ( )
inline

Definition at line 330 of file AnalyticExpressionEvaluator.hpp.

References constants_p.

{
constants_p = NULL;
}

Member Data Documentation

const int Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::constantID = 1
static

These constants are used to determine what parser was used to parse what value, which allows for type identification when analyzing the parsed AST.

Definition at line 317 of file AnalyticExpressionEvaluator.hpp.

Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::PrepareExecutionAsYouParse().

const boost_spirit::symbols<NekDouble>* Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::constants_p
private

Definition at line 301 of file AnalyticExpressionEvaluator.hpp.

Referenced by ~AnalyticExpression().

const int Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::factorID = 6
static

Definition at line 322 of file AnalyticExpressionEvaluator.hpp.

Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::PrepareExecutionAsYouParse().

const int Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::functionID = 5
static

Definition at line 321 of file AnalyticExpressionEvaluator.hpp.

Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::PrepareExecutionAsYouParse().

const int Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::numberID = 2
static

Definition at line 318 of file AnalyticExpressionEvaluator.hpp.

Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::PrepareExecutionAsYouParse().

const int Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::operatorID = 7
static

Definition at line 323 of file AnalyticExpressionEvaluator.hpp.

Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::PrepareExecutionAsYouParse().

const int Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::parameterID = 4
static

Definition at line 320 of file AnalyticExpressionEvaluator.hpp.

Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::PrepareExecutionAsYouParse().

const int Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::variableID = 3
static

Definition at line 319 of file AnalyticExpressionEvaluator.hpp.

Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::PrepareExecutionAsYouParse().

Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::variables Nektar::LibUtilities::AnalyticExpressionEvaluator::AnalyticExpression::variables_p
private