FAUST compiler  0.9.9.6b8
Public Member Functions | Public Attributes | List of all members
BinOp Struct Reference

#include <binop.hh>

Collaboration diagram for BinOp:
Collaboration graph
[legend]

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.

43  : fName(name), fNameVec(namevec), fNameScal(namescal), fCompute(f), fLeftNeutral(ln), fRightNeutral(rn), fPriority(priority) { }
pred fLeftNeutral
Definition: binop.hh:38
int fPriority
Definition: binop.hh:40
pred fRightNeutral
Definition: binop.hh:39
const char * fName
Definition: binop.hh:34
const char * fNameScal
Definition: binop.hh:36
const char * name(Symbol *sym)
Returns the name of a symbol.
Definition: symbol.hh:98
const char * fNameVec
Definition: binop.hh:35
comp fCompute
Definition: binop.hh:37

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

45 { return fCompute(a,b); }
comp fCompute
Definition: binop.hh:37

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

48 { return fLeftNeutral(a); }
pred fLeftNeutral
Definition: binop.hh:38

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

47 { return fRightNeutral(a); }
pred fRightNeutral
Definition: binop.hh:39

Here is the caller graph for this function:

Member Data Documentation

comp BinOp::fCompute

Definition at line 37 of file binop.hh.

Referenced by compute().

pred BinOp::fLeftNeutral

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.

int BinOp::fPriority

Definition at line 40 of file binop.hh.

Referenced by DocCompiler::generateBinOp().

pred BinOp::fRightNeutral

Definition at line 39 of file binop.hh.

Referenced by isRightNeutral().


The documentation for this struct was generated from the following file: