Loading...
Searching...
No Matches
expressionPredicate.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: expressionPredicate.h,v 1.12 2005/10/23 12:02:18 oliver Exp $
//
#ifndef BALL_KERNEL_EXPRESSIONPREDICATE_H
#define BALL_KERNEL_EXPRESSIONPREDICATE_H
#ifndef BALL_KERNEL_ATOM_H
# include <BALL/KERNEL/atom.h>
#endif
namespace BALL
{
class BALL_EXPORT ExpressionPredicate
: public UnaryPredicate<Atom>
{
public:
BALL_CREATE(ExpressionPredicate)
ExpressionPredicate();
ExpressionPredicate(const ExpressionPredicate& predicate);
ExpressionPredicate(const String& argument);
virtual ~ExpressionPredicate();
ExpressionPredicate& operator = (const ExpressionPredicate& predicate);
virtual void clear();
bool operator == (const ExpressionPredicate& predicate) const;
virtual bool operator () (const Atom& atom) const;
virtual void setArgument(const String& argument);
const String& getArgument() const;
protected:
/*_ The argument of the predicate
*/
String argument_;
};
}
#endif // BALL_KERNEL_EXPRESSIONPREDICATE_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
atom.h
BALL::Atom
Definition atom.h:90
BALL::ExpressionPredicate::ExpressionPredicate
ExpressionPredicate()
BALL::ExpressionPredicate::clear
virtual void clear()
BALL::ExpressionPredicate::argument_
String argument_
Definition expressionPredicate.h:103
BALL::ExpressionPredicate::setArgument
virtual void setArgument(const String &argument)
BALL::ExpressionPredicate::getArgument
const String & getArgument() const
BALL::String
Definition string.h:57
BALL::UnaryPredicate
Definition CONCEPT/predicate.h:30
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
BALL
Definition constants.h:13