FAUST compiler  0.9.9.6b8
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 
ostream & print(ostream &fout) const
print a node on a stream
Definition: node.cpp:3
Definition: node.hh:69
A Node is a tagged unions of int, double, symbol and void* used in the implementation of CTrees...
Definition: node.hh:69