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

Description

Pushes a style and arranges for it to be popped later.

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

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

Public Member Functions

 StyleGuard (StyleStack &stack, const Style &style)
 Push style onto stack.
 
 StyleGuard (StyleStack &stack, const Style &first, const Style &second)
 
std::string render () const
 Render style entry.
 
std::string restore () const
 Render style exit.
 
const Stylecurrent () const
 Current merged style.
 
const Styleprevious () const
 Style before pushing.
 

Constructor & Destructor Documentation

◆ StyleGuard() [1/2]

Rose::BinaryAnalysis::Unparser::StyleGuard::StyleGuard ( StyleStack stack,
const Style style 
)
inline

Push style onto stack.

The destructor will pop the stack back to its current size, removing the pushed style along with everything that was pushed after it.

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

References Rose::BinaryAnalysis::Unparser::StyleStack::current(), and Rose::BinaryAnalysis::Unparser::StyleStack::push().

◆ StyleGuard() [2/2]

Rose::BinaryAnalysis::Unparser::StyleGuard::StyleGuard ( StyleStack stack,
const Style first,
const Style second 
)
inline

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

◆ ~StyleGuard()

Rose::BinaryAnalysis::Unparser::StyleGuard::~StyleGuard ( )
inline

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

Member Function Documentation

◆ current()

const Style & Rose::BinaryAnalysis::Unparser::StyleGuard::current ( ) const
inline

Current merged style.

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

◆ previous()

const Style & Rose::BinaryAnalysis::Unparser::StyleGuard::previous ( ) const
inline

Style before pushing.

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


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