Design Patterns
Main Page
Namespaces
Classes
Files
File List
and_exp.h
Go to the documentation of this file.
1
// Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2
// book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3
//
4
// Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5
6
#ifndef OPERATIONAL_INTERPRETER_AND_EXP_H_
7
#define OPERATIONAL_INTERPRETER_AND_EXP_H_
8
9
#include "
boolean_exp_interface.h
"
10
11
namespace
operational
12
{
13
namespace
interpreter
14
{
15
class
AndExp
:
public
BooleanExpInterface
16
{
17
public
:
18
AndExp
(
BooleanExpInterface
* left_operand,
BooleanExpInterface
* right_operand);
19
20
virtual
bool
Evaluate
(
InterpreterContextInterface
& context)
override
;
21
virtual
BooleanExpInterface
*
Replace
(
const
std::string& name,
BooleanExpInterface
& context)
override
;
22
virtual
BooleanExpInterface
*
Copy
()
const override
;
23
24
private
:
25
BooleanExpInterface
* left_operand_;
26
BooleanExpInterface
* right_operand_;
27
};
28
}
29
}
30
31
#endif
32
operational::interpreter::AndExp
Definition:
and_exp.h:15
operational
Definition:
application.cc:10
operational::interpreter::AndExp::Copy
virtual BooleanExpInterface * Copy() const override
Definition:
and_exp.cc:23
operational::interpreter::BooleanExpInterface
Definition:
boolean_exp_interface.h:17
operational::interpreter::AndExp::AndExp
AndExp(BooleanExpInterface *left_operand, BooleanExpInterface *right_operand)
Definition:
and_exp.cc:12
boolean_exp_interface.h
operational::interpreter::AndExp::Evaluate
virtual bool Evaluate(InterpreterContextInterface &context) override
Definition:
and_exp.cc:18
operational::interpreter::InterpreterContextInterface
Definition:
interpreter_context_interface.h:17
operational::interpreter::AndExp::Replace
virtual BooleanExpInterface * Replace(const std::string &name, BooleanExpInterface &context) override
Definition:
and_exp.cc:28
src
operational
src
interpreter
and_exp.h
Generated by
1.8.10