proxygen
folly::RequestContextScopeGuard Class Reference

#include <Request.h>

Public Member Functions

 RequestContextScopeGuard (const RequestContextScopeGuard &)=delete
 
RequestContextScopeGuardoperator= (const RequestContextScopeGuard &)=delete
 
 RequestContextScopeGuard (RequestContextScopeGuard &&)=delete
 
RequestContextScopeGuardoperator= (RequestContextScopeGuard &&)=delete
 
 RequestContextScopeGuard ()
 
 RequestContextScopeGuard (std::shared_ptr< RequestContext > ctx)
 
 ~RequestContextScopeGuard ()
 

Private Attributes

std::shared_ptr< RequestContextprev_
 

Detailed Description

Note: you probably want to use ShallowCopyRequestContextScopeGuard This resets all other RequestData for the duration of the scope!

Definition at line 256 of file Request.h.

Constructor & Destructor Documentation

folly::RequestContextScopeGuard::RequestContextScopeGuard ( const RequestContextScopeGuard )
delete
folly::RequestContextScopeGuard::RequestContextScopeGuard ( RequestContextScopeGuard &&  )
delete
folly::RequestContextScopeGuard::RequestContextScopeGuard ( )
inline

Definition at line 268 of file Request.h.

References folly::RequestContext::create().

270  }
static void create()
Definition: Request.h:118
static std::shared_ptr< RequestContext > saveContext()
Definition: Request.h:196
std::shared_ptr< RequestContext > prev_
Definition: Request.h:258
folly::RequestContextScopeGuard::RequestContextScopeGuard ( std::shared_ptr< RequestContext ctx)
inlineexplicit

Definition at line 274 of file Request.h.

static std::shared_ptr< RequestContext > setContext(std::shared_ptr< RequestContext > ctx)
Definition: Request.cpp:227
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
std::shared_ptr< RequestContext > prev_
Definition: Request.h:258
folly::RequestContextScopeGuard::~RequestContextScopeGuard ( )
inline

Definition at line 277 of file Request.h.

References folly::gen::move, and folly::RequestContext::setContext().

277  {
279  }
static std::shared_ptr< RequestContext > setContext(std::shared_ptr< RequestContext > ctx)
Definition: Request.cpp:227
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
std::shared_ptr< RequestContext > prev_
Definition: Request.h:258

Member Function Documentation

RequestContextScopeGuard& folly::RequestContextScopeGuard::operator= ( const RequestContextScopeGuard )
delete
RequestContextScopeGuard& folly::RequestContextScopeGuard::operator= ( RequestContextScopeGuard &&  )
delete

Member Data Documentation

std::shared_ptr<RequestContext> folly::RequestContextScopeGuard::prev_
private

Definition at line 258 of file Request.h.


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