rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ripple::CurrentTransactionRulesGuard Class Reference

RAII class to set and restore the current transaction rules. More...

#include <Rules.h>

Collaboration diagram for ripple::CurrentTransactionRulesGuard:
Collaboration graph
[legend]

Public Member Functions

 CurrentTransactionRulesGuard (Rules r)
 
 ~CurrentTransactionRulesGuard ()
 
 CurrentTransactionRulesGuard ()=delete
 
 CurrentTransactionRulesGuard (CurrentTransactionRulesGuard const &)=delete
 
CurrentTransactionRulesGuardoperator= (CurrentTransactionRulesGuard const &)=delete
 

Private Attributes

std::optional< Rulessaved_
 

Detailed Description

RAII class to set and restore the current transaction rules.

Definition at line 110 of file Rules.h.

Constructor & Destructor Documentation

◆ CurrentTransactionRulesGuard() [1/3]

ripple::CurrentTransactionRulesGuard::CurrentTransactionRulesGuard ( Rules  r)
explicit

Definition at line 113 of file Rules.h.

◆ ~CurrentTransactionRulesGuard()

ripple::CurrentTransactionRulesGuard::~CurrentTransactionRulesGuard ( )

Definition at line 119 of file Rules.h.

◆ CurrentTransactionRulesGuard() [2/3]

ripple::CurrentTransactionRulesGuard::CurrentTransactionRulesGuard ( )
delete

◆ CurrentTransactionRulesGuard() [3/3]

ripple::CurrentTransactionRulesGuard::CurrentTransactionRulesGuard ( CurrentTransactionRulesGuard const &  )
delete

Member Function Documentation

◆ operator=()

CurrentTransactionRulesGuard & ripple::CurrentTransactionRulesGuard::operator= ( CurrentTransactionRulesGuard const &  )
delete

Member Data Documentation

◆ saved_

std::optional<Rules> ripple::CurrentTransactionRulesGuard::saved_
private

Definition at line 130 of file Rules.h.