GCC Middle and Back End API Reference
|
#include <types.h>
Public Member Functions | |
style_manager () | |
style::id_t | get_or_create_id (const style &style) |
const style & | get_style (style::id_t id) const |
void | print_any_style_changes (pretty_printer *pp, style::id_t old_id, style::id_t new_id) const |
unsigned | get_num_styles () const |
Private Attributes | |
std::vector< style > | m_styles |
A class to keep track of all the styles in use in a drawing, so that we can refer to them via the compact style::id_t type, rather than via e.g. pointers.
style_manager::style_manager | ( | ) |
class text_art::style_manager.
References m_styles.
|
inline |
References m_styles.
Referenced by text_art::get_style_from_color_cap_name().
style::id_t style_manager::get_or_create_id | ( | const style & | style | ) |
References m_styles.
Referenced by text_art::dump_to_pp(), and text_art::styled_string::set_url().
|
inline |
References m_styles.
Referenced by text_art::get_style_from_color_cap_name(), and text_art::styled_string::set_url().
void style_manager::print_any_style_changes | ( | pretty_printer * | pp, |
style::id_t | old_id, | ||
style::id_t | new_id ) const |
References gcc_assert, m_styles, and text_art::style::print_changes().
|
private |
Referenced by get_num_styles(), get_or_create_id(), get_style(), print_any_style_changes(), and style_manager().