OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::core::enum_parents_fn Struct Reference

Function object to enumerate the parents of a commit. More...

#include <commit.hpp>

Public Types

using coro_t = boost::coroutines2::coroutine<oid_t>

Public Member Functions

auto operator() (const connection_ptr &conn, const oid_t &oid) const -> coro_t::pull_type

Detailed Description

Function object to enumerate the parents of a commit.

This functor provides a coroutine-based interface to enumerate the parent commits of a given commit.

Member Function Documentation

◆ operator()()

auto oxy::core::enum_parents_fn::operator() ( const connection_ptr & conn,
const oid_t & oid ) const -> coro_t::pull_type
Parameters
conn- A pointer to the database (container) connection from which to enumerate parent commits.
oid- The OID of the commit whose parents are to be enumerated.
Returns
A coroutine pull type that yields OIDs of the parent commits of the specified commit.