GCC Middle and Back End API Reference
text_art::style_manager Class Reference

#include <types.h>

Public Member Functions

 style_manager ()
style::id_t get_or_create_id (const style &style)
const styleget_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< stylem_styles

Detailed Description

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.   

Constructor & Destructor Documentation

◆ style_manager()

style_manager::style_manager ( )
class text_art::style_manager.   

References m_styles.

Member Function Documentation

◆ get_num_styles()

unsigned text_art::style_manager::get_num_styles ( ) const
inline

◆ get_or_create_id()

style::id_t style_manager::get_or_create_id ( const style & style)

◆ get_style()

const style & text_art::style_manager::get_style ( style::id_t id) const
inline

◆ print_any_style_changes()

void style_manager::print_any_style_changes ( pretty_printer * pp,
style::id_t old_id,
style::id_t new_id ) const

Field Documentation

◆ m_styles

std::vector<style> text_art::style_manager::m_styles
private

The documentation for this class was generated from the following files: