Vcsn
2.0
Be Rational
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
signature.cc
Go to the documentation of this file.
1
#include <
vcsn/misc/signature.hh
>
2
3
#include <iostream>
4
#include <sstream>
5
6
namespace
vcsn
7
{
8
std::string
9
signature::to_string
()
const
10
{
11
std::ostringstream
os
;
12
os << *
this
;
13
return
os.str();
14
}
15
16
std::ostream&
17
operator<<
(std::ostream&
os
,
const
signature
& sig)
18
{
19
const
char
* sep =
""
;
20
for
(
auto
s: sig.
sig
)
21
{
22
os << sep << s;
23
sep =
", "
;
24
}
25
return
os
;
26
}
27
}
vcsn::operator<<
std::ostream & operator<<(std::ostream &os, direction d)
Pretty-printing.
Definition:
direction.cc:19
vcsn::signature::sig
sig_t sig
Definition:
signature.hh:42
vcsn::signature
Signature of a function call.
Definition:
signature.hh:14
os
std::ostringstream os
The output stream: the corresponding C++ snippet to compile.
Definition:
translate.cc:331
signature.hh
vcsn::signature::to_string
std::string to_string() const
Definition:
signature.cc:9
lib
vcsn
misc
signature.cc
Generated by
1.8.7