3 ostream
& Node::print (ostream
& fout
) const ///< print a node on a stream
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";