|
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_QueueSafe_h
7 #define swcdb_core_QueueSafe_h
14 namespace SWC {
namespace Core {
17 template <
class ItemT>
19 typedef std::queue<ItemT>
QBase;
34 QBase::operator=(std::move(other));
42 void push(
const ItemT& item) {
50 QBase::push(std::move(item));
67 QBase::push(std::move(item));
74 return QBase::front();
80 return QBase::empty();
93 return !QBase::empty();
97 bool pop(ItemT* item) {
101 *item = std::move(QBase::front());
118 #endif // swcdb_core_QueueSafe_h
SWC_CAN_INLINE QueueSafe() noexcept
SWC_CAN_INLINE void push(ItemT &&item)
SWC_CAN_INLINE bool push_and_is_1st(const ItemT &item)
QueueSafe(QueueSafe &&other)
QueueSafe & operator=(QueueSafe &&)=delete
SWC_CAN_INLINE void push(const ItemT &item)
SWC_CAN_INLINE ItemT & front() noexcept
SWC_CAN_INLINE bool empty() noexcept
SWC_CAN_INLINE bool pop_and_more()
The SWC-DB C++ namespace 'SWC'.
std::queue< ItemT > QBase
QueueSafe & operator=(const QueueSafe &)=delete
SWC_CAN_INLINE bool push_and_is_1st(ItemT &&item)
SWC_CAN_INLINE size_t size() noexcept
QueueSafe(const QueueSafe &)=delete
SWC_CAN_INLINE bool pop(ItemT *item)