Crevice  0.1
 All Classes Functions Variables Pages
Protected Member Functions | List of all members
TermBinary Class Reference

Term depending on two other terms. More...

#include <TermBinary.h>

Inheritance diagram for TermBinary:
Inheritance graph
Collaboration diagram for TermBinary:
Collaboration graph

Protected Member Functions

 TermBinary (Problem *problem)
 Creates a binary term.
virtual ~TermBinary ()
 Destroys a binary term.
- Protected Member Functions inherited from Term
virtual double eval (const DoubleVector *variableValues, TermValueSet *termValues)
 Evaluates term.
void setTermIndex (const int termIndex)
 Set term index.
 Term (Problem *problem)
 Creates a term.
virtual ~Term ()
 Destroys a term.

Additional Inherited Members

- Public Member Functions inherited from Term
virtual Termdifferentiate (TermVariable *variable) throw (ProblemMismatchException)
 Determines the partial derivative of the term.
double evaluate (const DoubleVector *variableValues)
 Evaluates term.
double evaluate (const DoubleVector *variableValues, TermValueSet *termValues)
 Evaluates term.
virtual ProblemgetProblem () const
 Returns the problem to which the term belongs.
const int getTermIndex ()
 Get term index.
virtual bool less (const Term *term) const
 Compares this term to an other term.
virtual std::string toString () const
 Convert term to string.
- Static Public Attributes inherited from Term
static const int INVALID_INDEX = -1

Detailed Description

Term depending on two other terms.

Definition at line 27 of file TermBinary.h.

Constructor & Destructor Documentation

TermBinary::TermBinary ( Problem problem)
protected

Creates a binary term.

Parameters
problemproblem to which the term belongs

Definition at line 25 of file TermBinary.cc.


The documentation for this class was generated from the following files: