FAUST compiler
0.9.9.6b8
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
tlib
node.cpp
Go to the documentation of this file.
1
#include "
node.hh
"
2
3
ostream&
Node::print
(ostream& fout)
const
4
{
5
switch
(fType) {
6
case
kIntNode
:
return
fout << fData.i;
7
case
kDoubleNode
:
return
fout << fData.f;
8
case
kSymNode
:
return
fout << *(fData.s);
9
case
kPointerNode
:
return
fout <<
"ptr:"
<< fData.p;
10
default
:
return
fout <<
"badnode"
;
11
}
12
13
// return fout;
14
}
15
Node::print
ostream & print(ostream &fout) const
print a node on a stream
Definition:
node.cpp:3
kIntNode
Definition:
node.hh:69
node.hh
A Node is a tagged unions of int, double, symbol and void* used in the implementation of CTrees...
kDoubleNode
Definition:
node.hh:69
kPointerNode
Definition:
node.hh:69
kSymNode
Definition:
node.hh:69
Generated on Fri Sep 5 2014 18:06:36 for FAUST compiler by
1.8.7