|
OXY API 1.0
OXY API Library Documentation
|
Function object to pull objects and their contents from the container. More...
#include <object.hpp>
Public Types | |
| using | coro_t = boost::coroutines2::coroutine<std::tuple<object_t, contents_t>> |
Public Member Functions | |
| auto | operator() (connection_ptr const &conn) const -> coro_t::pull_type |
| auto | operator() (connection_ptr const &conn, std::vector< oid_t > const &oids) const -> coro_t::pull_type |
Function object to pull objects and their contents from the container.
This function object provides two operator() overloads: one that takes a connection pointer and returns a coroutine pull type that yields tuples of objects and their contents, and another that takes a connection pointer and a vector of OIDs and returns a coroutine pull type that yields the corresponding tuples of objects and their contents for the specified OIDs.
| auto oxy::core::object::pull_fn::operator() | ( | connection_ptr const & | conn | ) | const -> coro_t::pull_type |
| conn | - The connection pointer to the container. |
| auto oxy::core::object::pull_fn::operator() | ( | connection_ptr const & | conn, |
| std::vector< oid_t > const & | oids ) const -> coro_t::pull_type |
| conn | - The connection pointer to the container. |
| oids | - A vector of OIDs to retrieve objects and their contents for. |