ROSE 0.11.145.147
Public Member Functions | List of all members
Rose::BinaryAnalysis::Unparser::StyleStack Class Reference

Description

Stack of styles.

Definition at line 97 of file Unparser/Base.h.

#include <Rose/BinaryAnalysis/Unparser/Base.h>

Public Member Functions

size_t push (const Style &)
 Push style onto stack.
 
void pop ()
 Pop top style from stack.
 
void popTo (size_t)
 Pop until stack is a certain size.
 
void reset ()
 Clear the stack.
 
size_t size () const
 Number of styles on the stack.
 
const Stylecurrent () const
 Merged style.
 
Color::Colorization colorization () const
 Property: Colorization settings.
 
void colorization (const Color::Colorization c)
 Property: Colorization settings.
 

Constructor & Destructor Documentation

◆ StyleStack()

Rose::BinaryAnalysis::Unparser::StyleStack::StyleStack ( )
inline

Definition at line 103 of file Unparser/Base.h.

Member Function Documentation

◆ colorization() [1/2]

Color::Colorization Rose::BinaryAnalysis::Unparser::StyleStack::colorization ( ) const
inline

Property: Colorization settings.

Definition at line 108 of file Unparser/Base.h.

◆ colorization() [2/2]

void Rose::BinaryAnalysis::Unparser::StyleStack::colorization ( const Color::Colorization  c)
inline

Property: Colorization settings.

Definition at line 109 of file Unparser/Base.h.

◆ push()

size_t Rose::BinaryAnalysis::Unparser::StyleStack::push ( const Style )

Push style onto stack.

Returns the old size of the stack that can be passed to popTo.

Referenced by Rose::BinaryAnalysis::Unparser::StyleGuard::StyleGuard().

◆ pop()

void Rose::BinaryAnalysis::Unparser::StyleStack::pop ( )

Pop top style from stack.

The stack must not be empty.

◆ current()

const Style & Rose::BinaryAnalysis::Unparser::StyleStack::current ( ) const

Merged style.

This returns a style with as many data members filled in as possible by looking at the top item and subsequent items as necessary. For instance, if the top style specifies a foreground color but no background color, then we look at the next style (or deeper) to get a background color.

Referenced by Rose::BinaryAnalysis::Unparser::StyleGuard::StyleGuard().


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