Record processor to implement DBM::Process with a lambda function.
More...
#include <tkrzw_dbm.h>
|
| RecordProcessorLambda (RecordLambdaType proc_lambda) |
| Constructor.
|
|
std::string_view | ProcessFull (std::string_view key, std::string_view value) override |
| Processes an existing record.
|
|
std::string_view | ProcessEmpty (std::string_view key) override |
| Processes an empty record space.
|
|
virtual | ~RecordProcessor ()=default |
| Destructor.
|
|
virtual std::string_view | ProcessFull (std::string_view key, std::string_view value) |
| Processes an existing record.
|
|
virtual std::string_view | ProcessEmpty (std::string_view key) |
| Processes an empty record space.
|
|
|
static const std::string_view | NOOP |
| The special string indicating no operation.
|
|
static const std::string_view | REMOVE |
| The special string indicating removing operation.
|
|
Record processor to implement DBM::Process with a lambda function.
◆ RecordProcessorLambda()
tkrzw::DBM::RecordProcessorLambda::RecordProcessorLambda |
( |
RecordLambdaType |
proc_lambda | ) |
|
|
explicit |
Constructor.
- Parameters
-
proc_lambda | A lambda function to process a record. |
◆ ProcessFull()
std::string_view tkrzw::DBM::RecordProcessorLambda::ProcessFull |
( |
std::string_view |
key, |
|
|
std::string_view |
value |
|
) |
| |
|
overridevirtual |
◆ ProcessEmpty()
std::string_view tkrzw::DBM::RecordProcessorLambda::ProcessEmpty |
( |
std::string_view |
key | ) |
|
|
overridevirtual |