Oper Class Reference

Base class for operations. More...

#include <operator_base.hh>

Inheritance diagram for Oper:
BinOper UnOper

List of all members.

Public Types

typedef unsigned char Hash

Public Member Functions

 Oper (Hash hash, unsigned arity)
unsigned arity () const
virtual string str () const =0
 Must be unique.
Hash hash () const

Private Attributes

Hash _hash
unsigned _arity

Detailed Description

Base class for operations.

An operation is simply an operation that may be done upon elements, such as addition and comparison.

Member Function Documentation

unsigned Oper::arity ( ) const [inline]
number of arguments operation takes
virtual string Oper::str ( ) const [pure virtual]

Must be unique.

string representation of operation.

Implemented in UnOper, and BinOper.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations