![]() |
alaCarte Maps
Renderer for OpenStreetMap tiles
|
represents and executes a binary operation in the eval syntax tree More...
#include <binary_operation_node.hpp>
Public Types | |
| typedef STNode | base_type |
| typedef base_type::node_ptr | node_ptr |
Public Types inherited from eval::STNode | |
| typedef shared_ptr< STNode > | node_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... | |
represents and executes a binary operation in the eval syntax tree
Definition at line 71 of file binary_operation_node.hpp.
Definition at line 75 of file binary_operation_node.hpp.
Definition at line 76 of file binary_operation_node.hpp.
| eval::BinaryOperationNode::BinaryOperationNode | ( | const node_ptr & | left, |
| op::BinaryOperationEnum | operation, | ||
| const node_ptr & | right | ||
| ) |
Creates a new binary operation.
| left | the left child node (expression) |
| operation | The operation to execute |
| right | the right child node (expression) |
Definition at line 56 of file binary_operation_node.cpp.
Evaluates a subtree under this node.
| obj | which is used to execute the eval tree |
Reimplemented from eval::STNode.
Definition at line 65 of file binary_operation_node.cpp.
|
private |
The left expression of the operator.
Definition at line 83 of file binary_operation_node.hpp.
|
private |
The type of the operation.
Definition at line 85 of file binary_operation_node.hpp.
|
private |
The right expression of the operator.
Definition at line 87 of file binary_operation_node.hpp.