ircproxy The Ultimate Cyborg |
#include <ExpressionInterface.h>
This class is a base class for expressions (that return true or false).
Definition at line 30 of file ExpressionInterface.h.
Public Member Functions | |
virtual | ~ExpressionInterface () |
virtual destructor. | |
virtual void | add_event_server (boost::shared_ptr< ExpressionEventServer > const &event_server)=0 |
Mark that ExpressionEventServer event_server is watching this expression. | |
virtual bool | evaluate (void)=0 |
Evaluate the expression. | |
virtual void | sub_event_server (ExpressionEventServer *)=0 |
Remove ExpressionEventServer event_server from this expression. | |
virtual void | print_on (std::ostream &os) const =0 |
Print the expression on ostream os. |
virtual ExpressionInterface::~ExpressionInterface | ( | ) | [inline, virtual] |
virtual void ExpressionInterface::add_event_server | ( | boost::shared_ptr< ExpressionEventServer > const & | event_server | ) | [pure virtual] |
Mark that ExpressionEventServer event_server is watching this expression.
Implemented in BoolExpression< inverted >, ConstExpression< T >, BinaryExpression< inverted, EXPR1, OP, EXPR2 >, and WatchedExpression< T >.
virtual bool ExpressionInterface::evaluate | ( | void | ) | [pure virtual] |
Evaluate the expression.
Implemented in BoolExpression< inverted >, ConstExpression< T >, BinaryExpression< inverted, EXPR1, OP, EXPR2 >, and WatchedExpression< T >.
virtual void ExpressionInterface::sub_event_server | ( | ExpressionEventServer * | ) | [pure virtual] |
Remove ExpressionEventServer event_server from this expression.
Implemented in BoolExpression< inverted >, ConstExpression< T >, BinaryExpression< inverted, EXPR1, OP, EXPR2 >, and WatchedExpression< T >.
virtual void ExpressionInterface::print_on | ( | std::ostream & | os | ) | const [pure virtual] |
Print the expression on ostream os.
Implemented in BoolExpression< inverted >, ConstExpression< T >, BinaryExpression< inverted, EXPR1, OP, EXPR2 >, and WatchedExpression< T >.
Copyright © 2005-2007 Carlo Wood. All rights reserved. |
---|