alaCarte Maps
Renderer for OpenStreetMap tiles
eval::BinaryOperationNode Class Reference

represents and executes a binary operation in the eval syntax tree More...

#include <binary_operation_node.hpp>

Inheritance diagram for eval::BinaryOperationNode:
eval::STNode

Public Types

typedef STNode base_type
 
typedef base_type::node_ptr node_ptr
 
- Public Types inherited from eval::STNode
typedef shared_ptr< STNodenode_ptr
 Shared ptr to this node. More...
 

Public Member Functions

 BinaryOperationNode (const node_ptr &left, op::BinaryOperationEnum operation, const node_ptr &right)
 Creates a new binary operation. More...
 
virtual string eval (GeoObject *obj) const
 Evaluates a subtree under this node. More...
 

Private Attributes

node_ptr left
 The left expression of the operator. More...
 
op::BinaryOperationEnum operation
 The type of the operation. More...
 
node_ptr right
 The right expression of the operator. More...
 

Detailed Description

represents and executes a binary operation in the eval syntax tree

Definition at line 71 of file binary_operation_node.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

eval::BinaryOperationNode::BinaryOperationNode ( const node_ptr left,
op::BinaryOperationEnum  operation,
const node_ptr right 
)

Creates a new binary operation.

Parameters
leftthe left child node (expression)
operationThe operation to execute
rightthe right child node (expression)

Definition at line 56 of file binary_operation_node.cpp.

Member Function Documentation

string eval::BinaryOperationNode::eval ( GeoObject obj) const
virtual

Evaluates a subtree under this node.

Parameters
objwhich is used to execute the eval tree

Reimplemented from eval::STNode.

Definition at line 65 of file binary_operation_node.cpp.

Member Data Documentation

node_ptr eval::BinaryOperationNode::left
private

The left expression of the operator.

Definition at line 83 of file binary_operation_node.hpp.

op::BinaryOperationEnum eval::BinaryOperationNode::operation
private

The type of the operation.

Definition at line 85 of file binary_operation_node.hpp.

node_ptr eval::BinaryOperationNode::right
private

The right expression of the operator.

Definition at line 87 of file binary_operation_node.hpp.


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