FAUST compiler  0.9.9.6b8
Classes | Functions
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 boxpp bpp 
) [inline]

Definition at line 67 of file ppbox.hh.

References boxpp::print().

{ return bpp.print(file); }

Here is the call graph for this function:

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

Definition at line 81 of file ppbox.hh.

References envpp::print().

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

{
    return "prim0???";
}

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

{
    if (ptr == sigDelay1) return "mem";
    if (ptr == sigIntCast) return "int";
    if (ptr == sigFloatCast) return "float";
    return "prim1???";
}

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

{
    if (ptr == sigAdd) return "+";
    if (ptr == sigSub) return "-";
    if (ptr == sigMul) return "*";
    if (ptr == sigDiv) return "/";
    if (ptr == sigRem) return "%";

    if (ptr == sigAND) return "&";
    if (ptr == sigOR ) return "|";
    if (ptr == sigXOR) return "^";

    if (ptr == sigLeftShift ) return "<<";
    if (ptr == sigRightShift) return ">>";

    if (ptr == sigLT) return "<";
    if (ptr == sigLE) return "<=";
    if (ptr == sigGT) return ">";
    if (ptr == sigGE) return ">=";
    if (ptr == sigEQ) return "==";
    if (ptr == sigNE) return "!=";

    if (ptr == sigFixDelay) return "@";
    if (ptr == sigPrefix)   return "prefix";
    if (ptr == sigAttach)   return "attach";

    return "prim2???";
}

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

{
    if (ptr == sigReadOnlyTable)    return "rdtable";
    if (ptr == sigSelect2)          return "select2";
    return "prim3???";
}

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

{
    if (ptr == sigSelect3)          return "select3";
    return "prim4???";
}

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

{
    if (ptr == sigWriteReadTable)   return "wrtable";
    return "prim5???";
}

Here is the call graph for this function:

Here is the caller graph for this function: