Vcsn
2.2
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.
void vcsn::ast::context_printer::header | ( | const std::string & | h | ) |
Record that we need an include for this header.
Definition at line 17 of file context-printer.cc.
References headers_.
void vcsn::ast::context_printer::header_algo | ( | const std::string & | algo | ) |
Record that we need an include for this algorithm.
void vcsn::ast::context_printer::linkflags | ( | const std::string & | h | ) |
Record that we need these linker flags.
Definition at line 22 of file context-printer.cc.
References linkflags_.
const std::string & vcsn::ast::context_printer::linkflags | ( | ) | const |
std::ostream & vcsn::ast::context_printer::print | ( | std::ostream & | o | ) |
Generate the code to compile on o.
Definition at line 34 of file context-printer.cc.
References headers_, headers_late_, and os_.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 55 of file context-printer.cc.
References vcsn::iendl(), and vcsn::incendl().
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 96 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 177 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 169 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 151 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 161 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 136 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 144 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 201 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 208 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 106 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 121 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 185 of file context-printer.cc.
|
virtual |
Implements vcsn::ast::context_visitor.
Definition at line 193 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.
Referenced by print().