ppbox.hh File Reference

#include <iostream>
#include <sstream>
#include "boxes.hh"
Include dependency graph for ppbox.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  boxpp
class  envpp

Functions

const char * prim0name (CTree *(*ptr)())
const char * prim1name (CTree *(*ptr)(CTree *))
const char * prim2name (CTree *(*ptr)(CTree *, CTree *))
const char * prim3name (CTree *(*ptr)(CTree *, CTree *, CTree *))
const char * prim4name (CTree *(*ptr)(CTree *, CTree *, CTree *, CTree *))
const char * prim5name (CTree *(*ptr)(CTree *, CTree *, CTree *, CTree *, CTree *))
ostream & operator<< (ostream &file, const boxpp &bpp)
ostream & operator<< (ostream &file, const envpp &epp)

Function Documentation

ostream& operator<< ( ostream &  file,
const envpp epp 
) [inline]

Definition at line 81 of file ppbox.hh.

References envpp::print().

00081 { return epp.print(file); }

Here is the call graph for this function:

ostream& operator<< ( ostream &  file,
const boxpp bpp 
) [inline]

Definition at line 67 of file ppbox.hh.

References boxpp::print().

00067 { return bpp.print(file); }

Here is the call graph for this function:

const char* prim0name ( CTree *(*)()  ptr  ) 

Definition at line 32 of file ppbox.cpp.

Referenced by generateInsideSchema(), and boxpp::print().

00033 {
00034     return "prim0???";
00035 }

Here is the caller graph for this function:

const char* prim1name ( CTree *(*)(CTree *)  ptr  ) 

Definition at line 37 of file ppbox.cpp.

References sigDelay1(), sigFloatCast(), and sigIntCast().

Referenced by generateInsideSchema(), and boxpp::print().

00038 {
00039     if (ptr == sigDelay1) return "mem";
00040     if (ptr == sigIntCast) return "int";
00041     if (ptr == sigFloatCast) return "float";
00042     return "prim1???";
00043 }

Here is the call graph for this function:

Here is the caller graph for this function:

const char* prim2name ( CTree *(*)(CTree *, CTree *)  ptr  ) 

Definition at line 45 of file ppbox.cpp.

References sigAdd(), sigAND(), sigAttach(), sigDiv(), sigEQ(), sigFixDelay(), sigGE(), sigGT(), sigLE(), sigLeftShift(), sigLT(), sigMul(), sigNE(), sigOR(), sigPrefix(), sigRem(), sigRightShift(), sigSub(), and sigXOR().

Referenced by generateInsideSchema(), and boxpp::print().

00046 {
00047     if (ptr == sigAdd) return "+";
00048     if (ptr == sigSub) return "-";
00049     if (ptr == sigMul) return "*";
00050     if (ptr == sigDiv) return "/";
00051     if (ptr == sigRem) return "%";
00052 
00053     if (ptr == sigAND) return "&";
00054     if (ptr == sigOR ) return "|";
00055     if (ptr == sigXOR) return "^";
00056 
00057     if (ptr == sigLeftShift ) return "<<";
00058     if (ptr == sigRightShift) return ">>";
00059 
00060     if (ptr == sigLT) return "<";
00061     if (ptr == sigLE) return "<=";
00062     if (ptr == sigGT) return ">";
00063     if (ptr == sigGE) return ">=";
00064     if (ptr == sigEQ) return "==";
00065     if (ptr == sigNE) return "!=";
00066 
00067     if (ptr == sigFixDelay) return "@";
00068     if (ptr == sigPrefix)   return "prefix";
00069     if (ptr == sigAttach)   return "attach";
00070 
00071     return "prim2???";
00072 }

Here is the call graph for this function:

Here is the caller graph for this function:

const char* prim3name ( CTree *(*)(CTree *, CTree *, CTree *)  ptr  ) 

Definition at line 74 of file ppbox.cpp.

References sigReadOnlyTable(), and sigSelect2().

Referenced by generateInsideSchema(), and boxpp::print().

00075 {
00076     if (ptr == sigReadOnlyTable)    return "rdtable";
00077     if (ptr == sigSelect2)          return "select2";
00078     return "prim3???";
00079 }

Here is the call graph for this function:

Here is the caller graph for this function:

const char* prim4name ( CTree *(*)(CTree *, CTree *, CTree *, CTree *)  ptr  ) 

Definition at line 81 of file ppbox.cpp.

References sigSelect3().

Referenced by generateInsideSchema(), and boxpp::print().

00082 {
00083     if (ptr == sigSelect3)          return "select3";
00084     return "prim4???";
00085 }

Here is the call graph for this function:

Here is the caller graph for this function:

const char* prim5name ( CTree *(*)(CTree *, CTree *, CTree *, CTree *, CTree *)  ptr  ) 

Definition at line 87 of file ppbox.cpp.

References sigWriteReadTable().

Referenced by generateInsideSchema(), and boxpp::print().

00088 {
00089     if (ptr == sigWriteReadTable)   return "wrtable";
00090     return "prim5???";
00091 }

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Thu Apr 29 00:00:10 2010 for FAUST compiler by  doxygen 1.6.3