maph 1.0.0 High-Performance Memory-Mapped Key-Value Database with O(1) Lookups

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
maph::Result Struct Reference

Operation result containing error code and message. More...

`#include <maph.hpp>`

Collaboration diagram for maph::Result:

## Public Member Functions
bool | ok () const
| Check if operation succeeded.
| operator bool () const
| Boolean conversion for convenient error checking.

## Public Attributes
ErrorCode | code
| Error code indicating success or failure type.
std::string | message
| Human-readable error description.

## Detailed Description

Operation result containing error code and message.

Definition at line 83 of file maph.hpp.

## Member Function Documentation

## ◆ ok()

bool maph::Result::ok | ( |  | ) | const
| inline

Check if operation succeeded.

Returns
  true if error code is SUCCESS

Definition at line 91 of file maph.hpp.

References code, and maph::SUCCESS.

Referenced by operator bool().

Here is the caller graph for this function:

## ◆ operator bool()

maph::Result::operator bool | ( |  | ) | const
| inline

Boolean conversion for convenient error checking.

Returns
  true if operation succeeded

Definition at line 97 of file maph.hpp.

References ok().

Here is the call graph for this function:

## Member Data Documentation

## ◆ code

ErrorCode maph::Result::code

Error code indicating success or failure type.

Definition at line 84 of file maph.hpp.

Referenced by ok().

## ◆ message

std::string maph::Result::message

Human-readable error description.

Definition at line 85 of file maph.hpp.

The documentation for this struct was generated from the following file:

- include/maph.hpp