BALL::ExpressionPredicate Class Reference
[Kernel Predicates]

#include <BALL/KERNEL/expressionPredicate.h>

Inheritance diagram for BALL::ExpressionPredicate:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Constructors and Destructor.

 ExpressionPredicate ()
 ExpressionPredicate (const ExpressionPredicate &predicate)
 ExpressionPredicate (const String &argument)
virtual ~ExpressionPredicate ()
Assignment

ExpressionPredicateoperator= (const ExpressionPredicate &predicate)
virtual void clear ()
Predicates

bool operator== (const ExpressionPredicate &predicate) const
Accessors.

virtual bool operator() (const Atom &atom) const
virtual void setArgument (const String &argument)
const StringgetArgument () const

Protected Attributes

String argument_

Detailed Description

ExpressionPredicate. The base class for all kernel predicates (defined in BALL/KERNEL/standardPredicates.h and used by Expression . You have to derive your own predicate classes from this class if you want to use (and register) them with Expression .

See also:
Expression

Definition at line 25 of file expressionPredicate.h.


Constructor & Destructor Documentation

BALL::ExpressionPredicate::ExpressionPredicate (  ) 

Default Constructor

BALL::ExpressionPredicate::ExpressionPredicate ( const ExpressionPredicate predicate  ) 

Copy constructor

BALL::ExpressionPredicate::ExpressionPredicate ( const String argument  ) 

Detailed Constructor. Construct an ExpressionPredicate with a string.

Parameters:
argument the argument to use for this predicate
virtual BALL::ExpressionPredicate::~ExpressionPredicate (  )  [virtual]

Destructor


Member Function Documentation

virtual void BALL::ExpressionPredicate::clear (  )  [virtual]

Clear method

Reimplemented in BALL::ConnectedToPredicate.

const String& BALL::ExpressionPredicate::getArgument (  )  const

Get the argument of an ExpressionPredicate

Returns:
the argument of the expression
virtual bool BALL::ExpressionPredicate::operator() ( const Atom atom  )  const [virtual]
ExpressionPredicate& BALL::ExpressionPredicate::operator= ( const ExpressionPredicate predicate  ) 

Assignment operator

bool BALL::ExpressionPredicate::operator== ( const ExpressionPredicate predicate  )  const

Equality operator

virtual void BALL::ExpressionPredicate::setArgument ( const String argument  )  [virtual]

set the Argument of this ExpressionPredicate

Parameters:
argument the string to use for this predicate

Reimplemented in BALL::ConnectedToPredicate.


Member Data Documentation

Definition at line 103 of file expressionPredicate.h.

Generated by  doxygen 1.6.3