Tkrzw
|
Thread-safe wrapper of std::set. More...
#include <tkrzw_containers.h>
Public Member Functions | |
AtomicSet () | |
Constructor. More... | |
bool | Check (const VALUETYPE &data) |
Checks whether a record exists. More... | |
bool | Insert (const VALUETYPE &data) |
Inserts a record. More... | |
bool | Insert (VALUETYPE &&data) |
Inserts a record in move semantics. More... | |
bool | Remove (const VALUETYPE &data) |
Removes a record. More... | |
bool | IsEmpty () const |
Checks whether the set is empty. More... | |
VALUETYPE | Pop () |
Removes the least ID from the set. More... | |
void | Clear () |
Clears all IDs from the set. More... | |
Thread-safe wrapper of std::set.
tkrzw::AtomicSet< VALUETYPE >::AtomicSet |
Constructor.
bool tkrzw::AtomicSet< VALUETYPE >::Check | ( | const VALUETYPE & | data | ) |
Checks whether a record exists.
data | The record data. |
bool tkrzw::AtomicSet< VALUETYPE >::Insert | ( | const VALUETYPE & | data | ) |
Inserts a record.
data | The record data. |
bool tkrzw::AtomicSet< VALUETYPE >::Insert | ( | VALUETYPE && | data | ) |
Inserts a record in move semantics.
data | The record data. |
bool tkrzw::AtomicSet< VALUETYPE >::Remove | ( | const VALUETYPE & | data | ) |
Removes a record.
data | The record data. |
bool tkrzw::AtomicSet< VALUETYPE >::IsEmpty |
Checks whether the set is empty.
VALUETYPE tkrzw::AtomicSet< VALUETYPE >::Pop |
Removes the least ID from the set.
void tkrzw::AtomicSet< VALUETYPE >::Clear |
Clears all IDs from the set.