ROSE 0.11.145.147
|
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 Style & | current () const |
Merged style. | |
Color::Colorization | colorization () const |
Property: Colorization settings. | |
void | colorization (const Color::Colorization c) |
Property: Colorization settings. | |
|
inline |
Definition at line 103 of file Unparser/Base.h.
|
inline |
Property: Colorization settings.
Definition at line 108 of file Unparser/Base.h.
|
inline |
Property: Colorization settings.
Definition at line 109 of file Unparser/Base.h.
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().
void Rose::BinaryAnalysis::Unparser::StyleStack::pop | ( | ) |
Pop top style from stack.
The stack must not be empty.
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().