|
| virtual | ~Iterator () |
| | Destructor. More...
|
| |
| | Iterator (const Iterator &rhs)=delete |
| | Copy and assignment are disabled. More...
|
| |
|
Iterator & | operator= (const Iterator &rhs)=delete |
| |
| Status | First () override |
| | Initializes the iterator to indicate the first record. More...
|
| |
| Status | Last () override |
| | Initializes the iterator to indicate the last record. More...
|
| |
| Status | Jump (std::string_view key) override |
| | Initializes the iterator to indicate a specific record. More...
|
| |
| Status | JumpLower (std::string_view key, bool inclusive=false) override |
| | Initializes the iterator to indicate the last record whose key is lower than a given key. More...
|
| |
| Status | JumpUpper (std::string_view key, bool inclusive=false) override |
| | Initializes the iterator to indicate the first record whose key is upper than a given key. More...
|
| |
| Status | Next () override |
| | Moves the iterator to the next record. More...
|
| |
| Status | Previous () override |
| | Moves the iterator to the previous record. More...
|
| |
| Status | Process (RecordProcessor *proc, bool writable) override |
| | Processes the current record with a processor. More...
|
| |
| virtual Status | Process (RecordLambdaType rec_lambda, bool writable) |
| | Processes the current record with a lambda function. More...
|
| |
| virtual Status | Get (std::string *key=nullptr, std::string *value=nullptr) |
| | Gets the key and the value of the current record of the iterator. More...
|
| |
| virtual std::string | GetKey (std::string_view default_value="") |
| | Gets the key of the current record, in a simple way. More...
|
| |
| virtual std::string | GetValue (std::string_view default_value="") |
| | Gets the value of the current record, in a simple way. More...
|
| |
| virtual Status | Set (std::string_view value) |
| | Sets the value of the current record. More...
|
| |
| virtual Status | Remove () |
| | Removes the current record. More...
|
| |
Iterator for each record.
When the database is updated, some iterators may or may not be invalided. Operations with invalidated iterators fails gracefully with NOT_FOUND_ERROR. One iterator cannot be shared by multiple threads.