OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::api::get_index_fn Struct Reference

Function object to retrieve the index from a storage container in the OXY-API. More...

#include <storage.hpp>

Public Member Functions

maybe< index_toperator() (IStoragePtr const &stg, oid_t const &oid) const

Detailed Description

Function object to retrieve the index from a storage container in the OXY-API.

This function object provides an operator() that takes a storage container pointer and an OID, and returns a maybe<index_t> containing the index if available. It is designed to be used in a constexpr context for compile-time evaluation of index retrieval operations.

Member Function Documentation

◆ operator()()

maybe< index_t > oxy::api::get_index_fn::operator() ( IStoragePtr const & stg,
oid_t const & oid ) const
Parameters
stg- The storage container pointer from which to retrieve the index.
oid- The OID of the index to retrieve from the storage container.
Returns
A maybe<index_t> containing the index if available, or nothing() if not found.