|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_SEQUENCE_PRINTERS_SIMPLE_H_
2 #define GENESIS_SEQUENCE_PRINTERS_SIMPLE_H_
251 std::map<char, std::string>
const&
color_map()
const;
288 void print_character_(
298 void print_sequence_(
310 size_t sequence_limit_ = 0;
311 size_t line_length_ = 0;
312 size_t length_limit_ = 0;
314 std::map<char, std::string> color_map_;
323 #endif // include guard
std::map< char, std::string > const & color_map() const
Get the currently set list of colors for each Sequence character.
PrinterSimple & operator=(PrinterSimple const &)=default
@ kSameLine
The label is printed on the line where the Sequence sites start, separated from them by ": ".
std::string operator()(Sequence const &seq) const
Return a string representing the print of a single Sequence.
size_t sequence_limit() const
Get the currently set limit for how many Sequences to print.
void print(std::ostream &out, Sequence const &seq) const
Print a single Sequence to a stream.
@ kNone
No color, even if a color_map() is provided.
Simple printer class for Sequences and SequenceSets.
LabelMode
Modes for how to print Sequence labels.
size_t length_limit() const
Get the currently set length limit.
ColorMode
Modes for how the Sequence sites are colored.
@ kNone
No label is printed.
size_t line_length() const
Get the currently set line length, i.e., when to wrap.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Store a set of Sequences.
@ kSeparateLine
The label is printed on a line preceeding the Sequence sites.
ColorMode color_mode() const
Get the currently set color mode.
@ kForeground
Color the text foreground of the characters, leave the background at default.
@ kBackground
Color the text background of the characters, set the foreground to black.
LabelMode label_mode() const
Get the currently set LabelMode.