SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Env::IoCtx Class Referencefinal

#include <swcdb/core/comm/IoContext.h>

+ Collaboration diagram for SWC::Env::IoCtx:

Public Member Functions

SWC_CAN_INLINE IoCtx (int32_t size)
 
SWC_CAN_INLINE IoCtx (bool relative, int32_t size)
 
 ~IoCtx () noexcept
 

Static Public Member Functions

static SWC_CAN_INLINE void init (int32_t size)
 
static SWC_CAN_INLINE void init (bool relative, int32_t size)
 
static SWC_CAN_INLINE bool ok () noexcept
 
static Comm::IoContextPtr io ()
 
template<typename T_Handler >
static SWC_CAN_INLINE void post (T_Handler &&handler)
 
static SWC_CAN_INLINE bool stopping () noexcept
 
static void reset () noexcept
 

Private Attributes

Comm::IoContextPtr m_io
 

Static Private Attributes

static std::shared_ptr< IoCtxm_env = nullptr
 

Detailed Description

Definition at line 114 of file IoContext.h.

Constructor & Destructor Documentation

◆ IoCtx() [1/2]

SWC_CAN_INLINE SWC::Env::IoCtx::IoCtx ( int32_t  size)
inline

Definition at line 153 of file IoContext.h.

Referenced by init().

+ Here is the caller graph for this function:

◆ IoCtx() [2/2]

SWC_CAN_INLINE SWC::Env::IoCtx::IoCtx ( bool  relative,
int32_t  size 
)
inline

Definition at line 158 of file IoContext.h.

◆ ~IoCtx()

SWC::Env::IoCtx::~IoCtx ( )
inlinenoexcept

Definition at line 162 of file IoContext.h.

Member Function Documentation

◆ init() [1/2]

static SWC_CAN_INLINE void SWC::Env::IoCtx::init ( bool  relative,
int32_t  size 
)
inlinestatic

Definition at line 123 of file IoContext.h.

References IoCtx(), m_env, and size.

+ Here is the call graph for this function:

◆ init() [2/2]

static SWC_CAN_INLINE void SWC::Env::IoCtx::init ( int32_t  size)
inlinestatic

Definition at line 118 of file IoContext.h.

References IoCtx(), m_env, and size.

Referenced by SWC::FsBroker::AppContext::AppContext(), and SWC::ThriftBroker::AppContext::AppContext().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ io()

static Comm::IoContextPtr SWC::Env::IoCtx::io ( )
inlinestatic

Definition at line 132 of file IoContext.h.

References m_env, ok(), and SWC_ASSERT.

Referenced by SWC::FsBroker::AppContext::AppContext(), SWC::ThriftBroker::AppContext::AppContext(), SWC::ThriftBroker::AppContext::init(), SWC::FsBroker::AppContext::init(), SWC::FsBroker::AppContext::shutting_down(), SWC::ThriftBroker::AppContext::shutting_down(), SWC::ThriftBroker::AppContext::stop(), and SWC::FsBroker::AppContext::stop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ok()

static SWC_CAN_INLINE bool SWC::Env::IoCtx::ok ( )
inlinestaticnoexcept

Definition at line 128 of file IoContext.h.

References m_env.

Referenced by io().

+ Here is the caller graph for this function:

◆ post()

template<typename T_Handler >
static SWC_CAN_INLINE void SWC::Env::IoCtx::post ( T_Handler &&  handler)
inlinestatic

Definition at line 139 of file IoContext.h.

References m_env.

Referenced by SWC::FsBroker::AppContext::handle().

+ Here is the caller graph for this function:

◆ reset()

static void SWC::Env::IoCtx::reset ( )
inlinestaticnoexcept

Definition at line 148 of file IoContext.h.

References m_env.

Referenced by SWC::ThriftBroker::AppContext::stop(), and SWC::FsBroker::AppContext::stop().

+ Here is the caller graph for this function:

◆ stopping()

static SWC_CAN_INLINE bool SWC::Env::IoCtx::stopping ( )
inlinestaticnoexcept

Definition at line 144 of file IoContext.h.

References m_env.

Member Data Documentation

◆ m_env

std::shared_ptr<IoCtx> SWC::Env::IoCtx::m_env = nullptr
inlinestaticprivate

Definition at line 166 of file IoContext.h.

Referenced by init(), io(), ok(), post(), reset(), and stopping().

◆ m_io

Comm::IoContextPtr SWC::Env::IoCtx::m_io
private

Definition at line 165 of file IoContext.h.


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