Node Class Reference
Class Node = (type x (int + float + Sym + void*)).
More...
#include <node.hh>
List of all members.
Public Member Functions |
ostream & | print (ostream &fout) const |
| print a node on a stream
|
Detailed Description
Class Node = (type x (int + float + Sym + void*)).
Definition at line 70 of file node.hh.
Member Function Documentation
ostream & Node::print |
( |
ostream & |
fout |
) |
const |
print a node on a stream
< print a node on a stream
Definition at line 3 of file node.cpp.
00004 {
00005 switch (fType) {
00006 case kIntNode : return fout << fData.i;
00007 case kFloatNode : return fout << fData.f;
00008 case kSymNode : return fout << *(fData.s);
00009 case kPointerNode : return fout << "ptr:" << fData.p;
00010 }
00011
00012 return fout;
00013 }
The documentation for this class was generated from the following files: