Tkrzw
tkrzw::DBM::RecordProcessorIterator Class Referencefinal

Record processor to implement DBM::Iterator methods. More...

#include <tkrzw_dbm.h>

Public Member Functions

 RecordProcessorIterator (std::string_view new_value, std::string *cur_key, std::string *cur_value)
 Constructor.
 
std::string_view ProcessFull (std::string_view key, std::string_view value) override
 Processes an existing record.
 
- Public Member Functions inherited from tkrzw::DBM::RecordProcessor
virtual ~RecordProcessor ()=default
 Destructor.
 
virtual std::string_view ProcessEmpty (std::string_view key)
 Processes an empty record space.
 

Additional Inherited Members

- Static Public Attributes inherited from tkrzw::DBM::RecordProcessor
static const std::string_view NOOP
 The special string indicating no operation.
 
static const std::string_view REMOVE
 The special string indicating removing operation.
 

Detailed Description

Record processor to implement DBM::Iterator methods.

Constructor & Destructor Documentation

◆ RecordProcessorIterator()

tkrzw::DBM::RecordProcessorIterator::RecordProcessorIterator ( std::string_view new_value,
std::string * cur_key,
std::string * cur_value )

Constructor.

Parameters
new_valueThe new value returned to the database.
cur_keyThe pointer to a string object to contain the current key.
cur_valueThe pointer to a string object to contain the current value.

Member Function Documentation

◆ ProcessFull()

std::string_view tkrzw::DBM::RecordProcessorIterator::ProcessFull ( std::string_view key,
std::string_view value )
overridevirtual

Processes an existing record.

Reimplemented from tkrzw::DBM::RecordProcessor.