FAUST compiler  0.9.9.6b8
Public Member Functions | Public Attributes
BinOp Struct Reference

#include <binop.hh>

Collaboration diagram for BinOp:
Collaboration graph
[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.

            : 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().

{ 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().

{ 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().

{ 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: