![]() |
Vcsn
2.2a
Be Rational
|
An input/output format for valuesets. More...
#include <format.hh>
Public Types | |
| enum | format_t { latex, raw, sname, text, utf8, 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 | delimit () const |
Whether we should delimit: (1, 2) instead of 1, 2. More... | |
| format | delimit (bool d) const |
Set whether we should delimit: (1, 2) instead of 1, 2. 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... | |
| bool | delimit_ = false |
Whether we should delimit. E.g., 1, 2 or (1, 2). More... | |
An input/output format for valuesets.
For instance, whether text or latex, and other syntactic issues.
| using vcsn::format::self_t = format |
| vcsn::format::format | ( | const std::string & | f | ) |
|
inline |
|
inline |
|
inline |
A copy of this format, but to print labels.
Definition at line 40 of file format.hh.
References label_.
Referenced by vcsn::rat::dot_printer< ExpSet >::print_(), and vcsn::detail::polynomialset_impl< Context, Kind >::print_with_classes_().
|
inline |
A copy of this format, but to print weights.
Definition at line 48 of file format.hh.
References label_.
Referenced by vcsn::rat::printer< ExpSet >::print_(), and vcsn::rat::dot_printer< ExpSet >::print_().
|
inline |
|
inline |
|
inline |
Definition at line 81 of file format.hh.
References format_.
Referenced by vcsn::detail::tupleset_impl< ValueSets >::print_set_(), and vcsn::to_string().
|
inline |
Definition at line 96 of file format.hh.
References operator==().
|
inline |
|
inline |
|
private |
|
private |
Definition at line 102 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 105 of file format.hh.
Referenced by for_labels(), for_weights(), is_for_labels(), and is_for_weights().