![]()  | 
  
    Vcsn
    2.5.dev
    
   Be Rational 
   | 
 
#include <context-printer.hh>
Public Member Functions | |
| context_printer (std::ostringstream &os) | |
| void | header (const std::string &h) | 
| Record that we need an include for this header.  More... | |
| void | header_algo (const std::string &algo) | 
| Record that we need an include for this algorithm.  More... | |
| void | linkflags (const std::string &h) | 
| Record that we need these linker flags.  More... | |
| const std::string & | linkflags () const | 
| Get the link flags.  More... | |
| std::ostream & | print (std::ostream &o) | 
| Generate the code to compile on o.  More... | |
| virtual void | visit (const automaton &t) | 
| virtual void | visit (const context &t) | 
| virtual void | visit (const expansionset &t) | 
| virtual void | visit (const expressionset &t) | 
| virtual void | visit (const genset &t) | 
| virtual void | visit (const letterset &t) | 
| virtual void | visit (const nullableset &t) | 
| virtual void | visit (const oneset &t) | 
| virtual void | visit (const other &t) | 
| virtual void | visit (const polynomialset &t) | 
| virtual void | visit (const tuple &t) | 
| virtual void | visit (const tupleset &t) | 
| virtual void | visit (const weightset &t) | 
| virtual void | visit (const wordset &t) | 
Private Attributes | |
| std::ostringstream & | os_ | 
| std::set< std::string > | headers_ | 
| Headers to include.  More... | |
| std::set< std::string > | headers_late_ | 
| std::string | linkflags_ | 
| Flags to pass to the linker.  More... | |
Definition at line 12 of file context-printer.hh.
      
  | 
  inline | 
Definition at line 15 of file context-printer.hh.
References header(), header_algo(), linkflags(), and print().
| void vcsn::ast::context_printer::header | ( | const std::string & | h | ) | 
Record that we need an include for this header.
Definition at line 14 of file context-printer.cc.
References headers_.
Referenced by context_printer(), and visit().
| void vcsn::ast::context_printer::header_algo | ( | const std::string & | algo | ) | 
Record that we need an include for this algorithm.
Referenced by context_printer().
| void vcsn::ast::context_printer::linkflags | ( | const std::string & | h | ) | 
Record that we need these linker flags.
Definition at line 19 of file context-printer.cc.
References linkflags_.
| const std::string & vcsn::ast::context_printer::linkflags | ( | ) | const | 
Get the link flags.
Definition at line 26 of file context-printer.cc.
References linkflags_.
Referenced by context_printer().
| std::ostream & vcsn::ast::context_printer::print | ( | std::ostream & | o | ) | 
Generate the code to compile on o.
Definition at line 31 of file context-printer.cc.
References headers_, headers_late_, and os_.
Referenced by context_printer().
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 51 of file context-printer.cc.
References header(), vcsn::iendl(), vcsn::incendl(), and os_.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 92 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 173 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 165 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 147 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 157 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 132 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 140 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 197 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 204 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 102 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 117 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 181 of file context-printer.cc.
      
  | 
  virtual | 
Implements vcsn::ast::context_visitor.
Definition at line 189 of file context-printer.cc.
      
  | 
  private | 
Headers to include.
Sadly enough functions about tupleset must be defined after the functions that define the behavior of the components. The genuine case is that of "print_set", which fails for the same reasons as the following does not compile:
So we use a second set for "late" headers.
Definition at line 87 of file context-printer.hh.
      
  | 
  private | 
Definition at line 88 of file context-printer.hh.
Referenced by print().
      
  | 
  private | 
Flags to pass to the linker.
Definition at line 91 of file context-printer.hh.
Referenced by linkflags().
      
  | 
  private | 
Definition at line 55 of file context-printer.hh.