Skip to content

Commit cc7e074

Browse files
committed
started to add Doxygen documentation
1 parent e1f37e9 commit cc7e074

30 files changed

+2914
-49
lines changed

.doxy-config

Lines changed: 2689 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

44
SANITIZERS = release debug msan asan usan tsan
5-
.PHONY: default run update check ce todo distclean clean build test all format $(SANITIZERS)
5+
.PHONY: default doc run update check ce todo distclean clean build test all format $(SANITIZERS)
66

77
COMPILER=system
88
CXX_BASE=$(CXX:$(dir $(CXX))%=%)
@@ -51,6 +51,9 @@ all: $(SANITIZERS)
5151
run: test
5252
./$(BUILD)/examples/$(EXAMPLE)
5353

54+
doc:
55+
doxygen .doxy-config
56+
5457
release: test
5558

5659
$(SANITIZERS):

docs/beman-logo.png

4.17 KB
Loading

include/beman/execution26/detail/allocator_aware_move.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
namespace beman::execution26::detail {
1616
template <typename T, typename Context>
17+
/*!
18+
* \brief Utilitiy function use to move a possibly allocator aware object with an allocator from an environment.
19+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
20+
* \internal
21+
*/
1722
auto allocator_aware_move(T&& obj, Context&& context) -> decltype(auto) {
1823
if constexpr (requires { ::beman::execution26::get_allocator(::beman::execution26::get_env(context)); }) {
1924
if constexpr (decltype(::beman::execution26::detail::is_product_type(obj))()) {

include/beman/execution26/detail/almost_scheduler.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66

77
#include <beman/execution26/detail/queryable.hpp>
88
#include <beman/execution26/detail/schedule.hpp>
9+
#include <beman/execution26/detail/scheduler_t.hpp>
910
#include <beman/execution26/detail/sender.hpp>
1011
#include <concepts>
1112
#include <utility>
1213

1314
// ----------------------------------------------------------------------------
1415

15-
namespace beman::execution26 {
16-
struct scheduler_t {};
17-
} // namespace beman::execution26
18-
1916
namespace beman::execution26::detail {
17+
/*!
18+
* \brief Auxiliary concept used to break cycle for scheduler concept.
19+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
20+
* \internal
21+
*/
2022
template <typename Scheduler>
2123
concept almost_scheduler = ::std::derived_from<typename ::std::remove_cvref_t<Scheduler>::scheduler_concept,
2224
::beman::execution26::scheduler_t> &&

include/beman/execution26/detail/as_awaitable.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// ----------------------------------------------------------------------------
1010

1111
namespace beman::execution26 {
12+
/*!
13+
* \brief Turn an entity, e.g., a sender, into an awaitable.
14+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
15+
*/
1216
struct as_awaitable_t {
1317
template <typename E, typename P>
1418
auto operator()(E&& e, P& p) const {

include/beman/execution26/detail/as_except_ptr.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// ----------------------------------------------------------------------------
1515

1616
namespace beman::execution26::detail {
17+
/*!
18+
* \brief Turn an error into a suitable exception_ptr.
19+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
20+
* \internal
21+
*/
1722
template <typename Error>
1823
decltype(auto) as_except_ptr(Error&& error) {
1924
if constexpr (::std::same_as<::std::exception_ptr, ::std::decay_t<Error>>) {

include/beman/execution26/detail/await_result_type.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@
1010
// ----------------------------------------------------------------------------
1111

1212
namespace beman::execution26::detail {
13+
/*!
14+
* \brief Auxiliary type alias to get the result type of an awaiter.
15+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
16+
* \internal
17+
*/
1318
template <typename T, typename Promise>
1419
using await_result_type =
1520
decltype(::beman::execution26::detail::get_awaiter(::std::declval<T>(), ::std::declval<Promise&>())
1621
.await_resume());
17-
}
22+
} // namespace beman::execution26::detail
1823

1924
// ----------------------------------------------------------------------------
2025

include/beman/execution26/detail/await_suspend_result.hpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,26 @@
1111
// ----------------------------------------------------------------------------
1212

1313
namespace beman::execution26::detail {
14+
/*!
15+
* \brief Auxiliary type trait used to detect specializations of `std::coroutine_handle`.
16+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
17+
* \internal
18+
*/
1419
template <typename>
1520
struct is_coroutine_handle : ::std::false_type {};
21+
/*!
22+
* \brief The actual partial specialization detecting `std::coroutine_handle`.
23+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
24+
* \internal
25+
*/
1626
template <typename T>
1727
struct is_coroutine_handle<::std::coroutine_handle<T>> : ::std::true_type {};
1828

29+
/*!
30+
* \brief A concept used to identify valid results for `await_suspend`.
31+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
32+
* \internal
33+
*/
1934
template <typename T>
2035
concept await_suspend_result =
2136
::std::same_as<T, void> || ::std::same_as<T, bool> || ::beman::execution26::detail::is_coroutine_handle<T>::value;

include/beman/execution26/detail/basic_operation.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
// ----------------------------------------------------------------------------
2020

2121
namespace beman::execution26::detail {
22+
/*!
23+
* \brief Class template use to factor out common operation state needs.
24+
* \headerfile beman/execution26/execution.hpp <beman/execution26/execution.hpp>
25+
* \internal
26+
*/
2227
template <typename Sender, typename Receiver>
2328
requires ::beman::execution26::detail::
2429
valid_specialization<::beman::execution26::detail::state_type, Sender, Receiver>

0 commit comments

Comments
 (0)