Vcsn  2.4
Be Rational
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
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 }
std::ostream & operator<<(std::ostream &os, direction d)
Pretty-printing.
Definition: direction.cc:19
std::ostringstream os
The output stream: the corresponding C++ snippet to compile.
Definition: translate.cc:375
std::string to_string() const
Definition: signature.cc:9
Definition: a-star.hh:8
Signature of a function call.
Definition: signature.hh:15