|
OXY API 1.0
OXY API Library Documentation
|
Function object to push an index item to a connection. More...
#include <index.hpp>
Public Types | |
| using | coro_t = boost::coroutines2::coroutine<std::tuple<object_t, index_t>> |
Public Member Functions | |
| auto | operator() (connection_ptr &conn) const -> coro_t::push_type |
| object_t | operator() (connection_ptr const &conn, index_t const &item) const |
Function object to push an index item to a connection.
This functor provides two operator() overloads: one that takes a connection pointer and returns a coroutine push type for pushing index items, and another that takes a connection pointer and an index item, pushes the item to the connection, and returns the corresponding object. It allows for coroutine-based pushing of index items to the connection.
| auto oxy::core::push_index_fn::operator() | ( | connection_ptr & | conn | ) | const -> coro_t::push_type |
| conn | - A pointer to the database (container) connection to which the index will be pushed. |
| object_t oxy::core::push_index_fn::operator() | ( | connection_ptr const & | conn, |
| index_t const & | item ) const |
| conn | - A pointer to the database (container) connection to which the index will be pushed. |
| item | - The index item to be pushed. |