GCC Middle and Back End API Reference
ana::bar_chart Class Reference

#include <bar-chart.h>

Collaboration diagram for ana::bar_chart:

Data Structures

struct  item

Public Types

typedef unsigned long value_t

Public Member Functions

void add_item (const char *name, value_t value)
void print (pretty_printer *pp) const

Static Private Member Functions

static void print_padding (pretty_printer *pp, size_t count)

Private Attributes

auto_delete_vec< itemm_items

Detailed Description

A class for printing bar charts to a pretty_printer.

TODO(stage1): move to gcc subdir?  

Member Typedef Documentation

◆ value_t

Member Function Documentation

◆ add_item()

void ana::bar_chart::add_item ( const char * name,
value_t value )

◆ print()

void ana::bar_chart::print ( pretty_printer * pp) const

◆ print_padding()

static void ana::bar_chart::print_padding ( pretty_printer * pp,
size_t count )

Field Documentation

◆ m_items

auto_delete_vec<item> ana::bar_chart::m_items

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