Tkrzw
Public Member Functions | List of all members
tkrzw::DBM::RecordProcessorPopFirst Class Referencefinal

Record processor to implement DBM::PopFirst. More...

#include <tkrzw_dbm.h>

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Record processor to implement DBM::PopFirst.

Constructor & Destructor Documentation

◆ RecordProcessorPopFirst()

tkrzw::DBM::RecordProcessorPopFirst::RecordProcessorPopFirst ( std::string *  key,
std::string *  value 
)
explicit

Constructor.

Parameters
keyThe pointer to a string object to contain the existing value.
valueThe pointer to a string object to contain the existing value.

Member Function Documentation

◆ ProcessFull()

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

Processes an existing record.

Reimplemented from tkrzw::DBM::RecordProcessor.