xrpld
Loading...
Searching...
No Matches
xrpl::CurrentTransactionRulesGuard Class Reference

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

#include <Rules.h>

Collaboration diagram for xrpl::CurrentTransactionRulesGuard:

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 103 of file Rules.h.

Constructor & Destructor Documentation

◆ CurrentTransactionRulesGuard() [1/3]

xrpl::CurrentTransactionRulesGuard::CurrentTransactionRulesGuard ( Rules r)
explicit

Definition at line 106 of file Rules.h.

◆ ~CurrentTransactionRulesGuard()

xrpl::CurrentTransactionRulesGuard::~CurrentTransactionRulesGuard ( )

Definition at line 111 of file Rules.h.

◆ CurrentTransactionRulesGuard() [2/3]

xrpl::CurrentTransactionRulesGuard::CurrentTransactionRulesGuard ( )
delete

◆ CurrentTransactionRulesGuard() [3/3]

xrpl::CurrentTransactionRulesGuard::CurrentTransactionRulesGuard ( CurrentTransactionRulesGuard const & )
delete

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ saved_

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

Definition at line 122 of file Rules.h.