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