 |
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_core_QueueSafeStated_h
7 #define swcdb_core_QueueSafeStated_h
14 namespace SWC {
namespace Core {
17 template <
class ItemT>
34 void push(
const ItemT& item) {
42 QBase::push(std::move(item));
49 return QBase::front();
55 return QBase::empty();
106 QBase::push(std::move(item));
118 item = std::move(QBase::front());
137 #endif // swcdb_core_QueueSafeStated_h
SWC_CAN_INLINE bool is_active() noexcept
SWC_CAN_INLINE bool activating(const ItemT &item)
~QueueSafeStated() noexcept
SWC_CAN_INLINE size_t size() noexcept
QueueSafeStated(const QueueSafeStated &)=delete
SWC_CAN_INLINE ItemT & front() noexcept
SWC_CAN_INLINE void deactivate() noexcept
SWC_CAN_INLINE void push(ItemT &&item)
The SWC-DB C++ namespace 'SWC'.
SWC_CAN_INLINE void push(const ItemT &item)
SWC_CAN_INLINE QueueSafeStated() noexcept
SWC_CAN_INLINE bool deactivating()
SWC_CAN_INLINE bool activating(ItemT &&item)
SWC_CAN_INLINE bool empty() noexcept
std::queue< ItemT > QBase
QueueSafeStated(const QueueSafeStated &&)=delete
SWC_CAN_INLINE bool activating() noexcept
SWC_CAN_INLINE bool deactivating(ItemT &item)
QueueSafeStated & operator=(const QueueSafeStated &)=delete