proxygen
wangle::PipelineContext Class Referenceabstract

#include <HandlerContext-inl.h>

Inheritance diagram for wangle::PipelineContext:
wangle::ContextImplBase< H, HandlerContext< H::rout, H::wout > > wangle::ContextImplBase< H, InboundHandlerContext< H::rout > > wangle::ContextImplBase< H, OutboundHandlerContext< H::wout > > wangle::ContextImplBase< H, Context > wangle::ContextImpl< H > wangle::InboundContextImpl< H > wangle::OutboundContextImpl< H >

Public Member Functions

virtual ~PipelineContext ()=default
 
virtual void attachPipeline ()=0
 
virtual void detachPipeline ()=0
 
template<class H , class HandlerContext >
void attachContext (H *handler, HandlerContext *ctx)
 
template<class H , class HandlerContext >
void detachContext (H *handler, HandlerContext *)
 
virtual void setNextIn (PipelineContext *ctx)=0
 
virtual void setNextOut (PipelineContext *ctx)=0
 
virtual HandlerDir getDirection ()=0
 

Detailed Description

Definition at line 23 of file HandlerContext-inl.h.

Constructor & Destructor Documentation

virtual wangle::PipelineContext::~PipelineContext ( )
virtualdefault

Member Function Documentation

template<class H , class HandlerContext >
void wangle::PipelineContext::attachContext ( H *  handler,
HandlerContext ctx 
)
inline

Definition at line 31 of file HandlerContext-inl.h.

Referenced by wangle::ContextImplBase< H, InboundHandlerContext< H::rout > >::attachPipeline().

31  {
32  if (++handler->attachCount_ == 1) {
33  handler->ctx_ = ctx;
34  } else {
35  handler->ctx_ = nullptr;
36  }
37  }
void handler(int, siginfo_t *, void *)
template<class H , class HandlerContext >
void wangle::PipelineContext::detachContext ( H *  handler,
HandlerContext  
)
inline

Definition at line 40 of file HandlerContext-inl.h.

References getDirection(), setNextIn(), and setNextOut().

Referenced by wangle::ContextImplBase< H, InboundHandlerContext< H::rout > >::detachPipeline().

40  {
41  if (handler->attachCount_ >= 1) {
42  --handler->attachCount_;
43  }
44  handler->ctx_ = nullptr;
45  }
void handler(int, siginfo_t *, void *)

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