LLDB mainline
lldb_private::PolicyStack::Guard Class Reference

RAII guard that pushes a policy on construction and pops on destruction. More...

#include <Policy.h>

Public Member Functions

 Guard (Policy policy)
 ~Guard ()
 Guard (const Guard &)=delete
Guardoperator= (const Guard &)=delete

Detailed Description

RAII guard that pushes a policy on construction and pops on destruction.

Definition at line 104 of file Policy.h.

Constructor & Destructor Documentation

◆ Guard() [1/2]

lldb_private::PolicyStack::Guard::Guard ( Policy policy)
inlineexplicit

Definition at line 106 of file Policy.h.

References lldb_private::PolicyStack::Get(), and lldb_private::PolicyStack::Push().

Referenced by Guard(), and operator=().

◆ ~Guard()

lldb_private::PolicyStack::Guard::~Guard ( )
inline

Definition at line 107 of file Policy.h.

References lldb_private::PolicyStack::Get(), and lldb_private::PolicyStack::Pop().

◆ Guard() [2/2]

lldb_private::PolicyStack::Guard::Guard ( const Guard & )
delete

References Guard().

Member Function Documentation

◆ operator=()

Guard & lldb_private::PolicyStack::Guard::operator= ( const Guard & )
delete

References Guard().


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