#include <swcdb/ranger/callbacks/ColumnDelete.h>
Public Types | |
typedef std::shared_ptr< ColumnDelete > | Ptr |
Public Types inherited from SWC::Ranger::Callback::ManageBase | |
enum | Action { RANGE_LOAD, RANGE_UNLOAD, RANGE_UNLOAD_INTERNAL, COLUMNS_UNLOAD, COLUMN_DELETE } |
typedef std::shared_ptr< ManageBase > | Ptr |
Public Types inherited from SWC::Comm::ResponseCallback | |
typedef std::shared_ptr< ResponseCallback > | Ptr |
Public Member Functions | |
ColumnDelete (const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, const cid_t cid) noexcept | |
virtual | ~ColumnDelete () noexcept |
void | add (const RangePtr &range) |
void | removed (const RangePtr &range) |
void | complete () |
Public Member Functions inherited from SWC::Ranger::Callback::ManageBase | |
SWC_CAN_INLINE | ManageBase (const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, Action a_action) |
virtual | ~ManageBase () noexcept |
Public Member Functions inherited from SWC::Comm::ResponseCallback | |
ResponseCallback (const ConnHandlerPtr &conn, const Event::Ptr &ev) | |
virtual | ~ResponseCallback () noexcept |
virtual void | run () |
virtual bool | expired (int64_t within=0) const noexcept |
virtual void | response (int &err) |
virtual void | response_ok () |
virtual void | send_error (int err, const std::string &msg) |
Public Attributes | |
const cid_t | cid |
ColumnPtr | col |
Public Attributes inherited from SWC::Ranger::Callback::ManageBase | |
Action | action |
Private Attributes | |
Core::MutexSptd | m_mutex |
Core::Vector< RangePtr > | m_ranges |
Additional Inherited Members | |
Protected Attributes inherited from SWC::Comm::ResponseCallback | |
ConnHandlerPtr | m_conn |
Event::Ptr | m_ev |
Definition at line 13 of file ColumnDelete.h.
typedef std::shared_ptr<ColumnDelete> SWC::Ranger::Callback::ColumnDelete::Ptr |
Definition at line 16 of file ColumnDelete.h.
|
noexcept |
Definition at line 11 of file ColumnDelete.cc.
|
inlinevirtualnoexcept |
Definition at line 24 of file ColumnDelete.h.
void SWC::Ranger::Callback::ColumnDelete::add | ( | const RangePtr & | range | ) |
Definition at line 18 of file ColumnDelete.cc.
References m_mutex, m_ranges, and SWC::Core::Vector< T, SizeT, GROW_SZ >::push_back().
void SWC::Ranger::Callback::ColumnDelete::complete | ( | ) |
Definition at line 37 of file ColumnDelete.cc.
References col, SWC::Env::Rgr::columns(), SWC::Ranger::Columns::internal_delete(), and SWC::Comm::ResponseCallback::response_ok().
Referenced by removed().
void SWC::Ranger::Callback::ColumnDelete::removed | ( | const RangePtr & | range | ) |
Definition at line 23 of file ColumnDelete.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), col, complete(), SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), SWC::Core::Vector< T, SizeT, GROW_SZ >::erase(), SWC::LOG_INFO, m_mutex, m_ranges, SWC_LOG_OSTREAM, and SWC_LOG_OUT.
const cid_t SWC::Ranger::Callback::ColumnDelete::cid |
Definition at line 18 of file ColumnDelete.h.
ColumnPtr SWC::Ranger::Callback::ColumnDelete::col |
Definition at line 19 of file ColumnDelete.h.
Referenced by complete(), and removed().
|
private |
Definition at line 33 of file ColumnDelete.h.
|
private |
Definition at line 34 of file ColumnDelete.h.