Interface for parsed tag expressions. More...
#include <expression.h>

Public Member Functions | |
| ExpressionImpl () | |
| virtual | ~ExpressionImpl () |
| void | ref () throw () |
| Increment the reference count for this object. | |
| bool | unref () throw () |
| Decrement the reference count for this object, returning true when it reaches 0. | |
| virtual std::string | format () const =0 |
| Provide a string representation of this expression. | |
| virtual bool | eval (const TagexprContext &context) const =0 |
| Evaluates the expression on a recursive context. | |
| virtual bool | eval (const std::set< std::string > &tags) const =0 |
| Evaluates the expression on a set of tags. | |
Protected Attributes | |
| int | _ref |
Interface for parsed tag expressions.
| tagcoll::ExpressionImpl::ExpressionImpl | ( | ) | [inline] |
| virtual tagcoll::ExpressionImpl::~ExpressionImpl | ( | ) | [inline, virtual] |
| virtual bool tagcoll::ExpressionImpl::eval | ( | const std::set< std::string > & | tags | ) | const [pure virtual] |
Evaluates the expression on a set of tags.
| virtual bool tagcoll::ExpressionImpl::eval | ( | const TagexprContext & | context | ) | const [pure virtual] |
Evaluates the expression on a recursive context.
Referenced by tagcoll::Expression::operator()().
| virtual std::string tagcoll::ExpressionImpl::format | ( | ) | const [pure virtual] |
Provide a string representation of this expression.
Referenced by tagcoll::Expression::format().
| void tagcoll::ExpressionImpl::ref | ( | ) | throw () [inline] |
Increment the reference count for this object.
References _ref.
Referenced by tagcoll::Expression::Expression(), and tagcoll::Expression::operator=().
| bool tagcoll::ExpressionImpl::unref | ( | ) | throw () [inline] |
Decrement the reference count for this object, returning true when it reaches 0.
References _ref.
Referenced by tagcoll::Expression::operator=(), and tagcoll::Expression::~Expression().
int tagcoll::ExpressionImpl::_ref [protected] |
1.6.2