|
OXY API 1.0
OXY API Library Documentation
|
Function object to retrieve references from a connection. More...
#include <reference.hpp>
Public Types | |
| using | coro_t = boost::coroutines2::coroutine<reference_t> |
Public Member Functions | |
| auto | operator() (connection_ptr const &conn) const -> coro_t::pull_type |
| auto | operator() (connection_ptr const &conn, oid_t const &oid) const -> coro_t::pull_type |
| auto | operator() (connection_ptr const &conn, std::string const &url) const -> maybe< reference_t > |
Function object to retrieve references from a connection.
This functor provides three operator() overloads: one that takes a connection pointer and returns a coroutine pull type that yields all references, another that takes a connection pointer and an OID and returns a coroutine pull type that yields the corresponding references, and a third that takes a connection pointer and a reference name (URL) and returns a maybe<reference_t>, indicating that the reference may or may not be found. It allows for efficient retrieval of references in the version control system.
| auto oxy::core::get_ref_fn::operator() | ( | connection_ptr const & | conn | ) | const -> coro_t::pull_type |
| conn | - A pointer to the database (container) connection from which to retrieve references. |
| auto oxy::core::get_ref_fn::operator() | ( | connection_ptr const & | conn, |
| oid_t const & | oid ) const -> coro_t::pull_type |
| conn | - A pointer to the database (container) connection from which to retrieve references. |
| oid | - The OID for which to retrieve the corresponding references. |
| auto oxy::core::get_ref_fn::operator() | ( | connection_ptr const & | conn, |
| std::string const & | url ) const -> maybe< reference_t > |
| conn | - A pointer to the database (container) connection from which to retrieve references. |
| url | - The name (URL) of the reference to retrieve. |