#include <ASTNode.hpp>

Public Member Functions

 ASTNode ()
 
 ASTNode (TokenType type_arg)
 
 ASTNode (double value)
 
 ASTNode (TokenType type_arg, FuncType func_type_arg, const std::string &func_arg, const std::vector< std::string > &arg_list_arg)
 
Action::Result eval (const Action::Context &context) const
 
Action::Value value (const Action::Context &context) const
 
void add_child (const ASTNode &child)
 
size_t size () const
 
bool operator== (const ASTNode &data) const
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 

Static Public Member Functions

static ASTNode serializeObject ()
 

Public Attributes

TokenType type
 
FuncType func_type
 
std::string func
 

Constructor & Destructor Documentation

◆ ASTNode() [1/4]

Opm::Action::ASTNode::ASTNode ( )

◆ ASTNode() [2/4]

Opm::Action::ASTNode::ASTNode ( TokenType  type_arg)

◆ ASTNode() [3/4]

Opm::Action::ASTNode::ASTNode ( double  value)

◆ ASTNode() [4/4]

Opm::Action::ASTNode::ASTNode ( TokenType  type_arg,
FuncType  func_type_arg,
const std::string func_arg,
const std::vector< std::string > &  arg_list_arg 
)

Member Function Documentation

◆ add_child()

void Opm::Action::ASTNode::add_child ( const ASTNode child)

◆ eval()

Action::Result Opm::Action::ASTNode::eval ( const Action::Context context) const

◆ operator==()

bool Opm::Action::ASTNode::operator== ( const ASTNode data) const

◆ serializeObject()

static ASTNode Opm::Action::ASTNode::serializeObject ( )
static

◆ serializeOp()

template<class Serializer >
void Opm::Action::ASTNode::serializeOp ( Serializer serializer)
inline

References func, func_type, and type.

◆ size()

size_t Opm::Action::ASTNode::size ( ) const

◆ value()

Action::Value Opm::Action::ASTNode::value ( const Action::Context context) const

Member Data Documentation

◆ func

std::string Opm::Action::ASTNode::func

Referenced by serializeOp().

◆ func_type

FuncType Opm::Action::ASTNode::func_type

Referenced by serializeOp().

◆ type

TokenType Opm::Action::ASTNode::type

Referenced by serializeOp().


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