|
OXY API 1.0
OXY API Library Documentation
|
Function object to retrieve an index from a connection and an OID or object. More...
#include <index.hpp>
Public Member Functions | |
| auto | operator() (connection_ptr const &conn, object_t const &obj) const -> maybe< index_t > |
| auto | operator() (connection_ptr const &conn, oid_t const &oid) const -> maybe< index_t > |
Function object to retrieve an index from a connection and an OID or object.
This functor provides two operator() overloads: one that takes a connection pointer and an OID, and another that takes a connection pointer and an object. Both overloads attempt to retrieve the corresponding index from the connection and return it as a maybe<index_t>, indicating that the index may or may not be found.
| auto oxy::core::get_index_fn::operator() | ( | connection_ptr const & | conn, |
| object_t const & | obj ) const -> maybe< index_t > |
| auto oxy::core::get_index_fn::operator() | ( | connection_ptr const & | conn, |
| oid_t const & | oid ) const -> maybe< index_t > |