BinOp Struct Reference

#include <binop.hh>

Collaboration diagram for BinOp:
[legend]

List of all members.

Public Member Functions

 BinOp (const char *name, const char *namevec, const char *namescal, comp f, pred ln, pred rn, int priority)
Node compute (const Node &a, const Node &b)
bool isRightNeutral (const Node &a)
bool isLeftNeutral (const Node &a)

Public Attributes

const char * fName
const char * fNameVec
const char * fNameScal
comp fCompute
pred fLeftNeutral
pred fRightNeutral
int fPriority

Detailed Description

Definition at line 32 of file binop.hh.


Constructor & Destructor Documentation

BinOp::BinOp ( const char *  name,
const char *  namevec,
const char *  namescal,
comp  f,
pred  ln,
pred  rn,
int  priority 
) [inline]

Definition at line 42 of file binop.hh.

00043             : fName(name), fNameVec(namevec), fNameScal(namescal), fCompute(f), fLeftNeutral(ln), fRightNeutral(rn), fPriority(priority) {  }


Member Function Documentation

Node BinOp::compute ( const Node a,
const Node b 
) [inline]

Definition at line 45 of file binop.hh.

References fCompute.

Referenced by simplification().

00045 { return fCompute(a,b);     }

Here is the caller graph for this function:

bool BinOp::isLeftNeutral ( const Node a  )  [inline]

Definition at line 48 of file binop.hh.

References fLeftNeutral.

Referenced by simplification().

00048 { return fLeftNeutral(a);   }

Here is the caller graph for this function:

bool BinOp::isRightNeutral ( const Node a  )  [inline]

Definition at line 47 of file binop.hh.

References fRightNeutral.

Referenced by simplification().

00047 { return fRightNeutral(a);  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 37 of file binop.hh.

Referenced by compute().

Definition at line 38 of file binop.hh.

Referenced by isLeftNeutral().

const char* BinOp::fName

Definition at line 34 of file binop.hh.

Referenced by DocCompiler::generateBinOp().

const char* BinOp::fNameScal

Definition at line 36 of file binop.hh.

const char* BinOp::fNameVec

Definition at line 35 of file binop.hh.

Definition at line 40 of file binop.hh.

Referenced by DocCompiler::generateBinOp().

Definition at line 39 of file binop.hh.

Referenced by isRightNeutral().


The documentation for this struct was generated from the following file:
Generated on Thu Apr 29 00:00:17 2010 for FAUST compiler by  doxygen 1.6.3