Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DomainExpression Class Reference

#include <expression.h>

Inherits Expression.

List of all members.

Public Methods

 DomainExpression (const Domain &domain)
bool eval (const LogRecord &r) const
void print (ostream &os) const

Private Attributes

Domain domain_


Constructor & Destructor Documentation

DomainExpression::DomainExpression ( const Domain & domain ) [inline]
 

Definition at line 32 of file expression.h.

00032 : domain_(domain) {}


Member Function Documentation

bool DomainExpression::eval ( const LogRecord & r ) const [virtual]
 

Reimplemented from Expression.

Definition at line 36 of file expression.C.

00036                                                {
00037 const Domain& d(r.domain());
00038 if (d.size() < domain_.size())
00039   return false;
00040 return equal(domain_.begin(), domain_.end(), d.begin());
00041 }

void DomainExpression::print ( ostream & os ) const [virtual]
 

Reimplemented from Expression.

Definition at line 44 of file expression.C.

00044                                          {
00045 os << "domain " << domain_;
00046 }


Member Data Documentation

Domain DomainExpression::domain_ [private]
 

Definition at line 36 of file expression.h.


The documentation for this class was generated from the following files:
httpstats-stage04 [ 7 April, 2001]