~ubuntu-branches/ubuntu/jaunty/aspectc++/jaunty

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/inc/Puma/CPrintVisitor.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-07-07 14:41:02 UTC
  • mfrom: (1.1.3 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080707144102-lzml7t07f3sl00r5
Tags: 1.0pre4~svn.20080711-1
* new upstream snapshot.
* include all upstream documentation. Clarifying emails regarding
  licensing has been included into debian/copyright.
* reformat description following recomendations of
  http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description
  (Closes: #480316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef __CPrintVisitor_h__
20
20
#define __CPrintVisitor_h__
21
21
 
22
 
// Print a C++ syntax tree
 
22
/** \file
 
23
 *  CTree based syntax tree printing. */
23
24
 
24
25
#include <iostream>
25
26
#include "Puma/CVisitor.h"
30
31
 
31
32
class CObjectInfo;
32
33
 
 
34
 
 
35
/** \class CPrintVisitor CPrintVisitor.h Puma/CPrintVisitor.h
 
36
 *  Tree visitor for printing the C/C++ syntax tree. Prints the
 
37
 *  indented tree structure supplemented with type information, 
 
38
 *  calculated constant values, implicit casts, and resolved 
 
39
 *  function calls. */
33
40
class CPrintVisitor : private CVisitor {
34
41
  ostream *out;
35
42
  int indent;
36
43
 
37
44
public:
 
45
  /** Constructor. */
38
46
  CPrintVisitor () : out ((ostream*)0), indent (0) {}
39
47
    
40
 
  void print (CTree *, ostream &);
 
48
  /** Start printing the given tree on the given output stream.
 
49
   *  \param tree The syntax tree to print.
 
50
   *  \param os The output stream. */
 
51
  void print (CTree *tree, ostream &os);
41
52
 
42
53
private:
43
54
  void pre_visit (CTree *node);