![]() |
Vcsn
2.1
Be Rational
|
An input/output format. More...
#include <format.hh>
Public Types | |
enum | format_t { text, latex, raw, deflt = text } |
Type of format. More... | |
using | self_t = format |
Public Member Functions | |
format (format_t f=deflt) | |
format (const std::string &f) | |
format | for_labels () const |
A copy of this format, but to print labels. More... | |
format | for_weights () const |
A copy of this format, but to print weights. More... | |
bool | is_for_labels () const |
Whether to use the syntax for labels (e.g., "a|x"). More... | |
bool | is_for_weights () const |
Whether to use the syntax for weights (e.g., "(1, 1/2)"). More... | |
format_t | kind () const |
bool | operator< (self_t that) const |
bool | operator== (self_t that) const |
bool | operator!= (self_t that) const |
Private Attributes | |
format_t | format_ |
bool | label_ = false |
Whether printed as a label (e.g., "a|x"), or as a weight (e.g., "(1, 1/2)"). More... | |
An input/output format.
For instance, whether text or latex, and other syntactic issues.
using vcsn::format::self_t = format |
vcsn::format::format | ( | const std::string & | f | ) |
|
inline |
A copy of this format, but to print labels.
Definition at line 34 of file format.hh.
References label_.
Referenced by vcsn::detail::polynomialset_impl< Context, Kind >::print_with_classes_().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 76 of file format.hh.
References operator==().
|
inline |
|
inline |
|
private |
Definition at line 82 of file format.hh.
Referenced by format(), kind(), operator<(), and operator==().
|
private |
Whether printed as a label (e.g., "a|x"), or as a weight (e.g., "(1, 1/2)").
Definition at line 85 of file format.hh.
Referenced by for_labels(), for_weights(), is_for_labels(), and is_for_weights().