Document libbabeltrace2's C API
[babeltrace.git] / include / babeltrace2 / graph / private-query-executor.h
index 348d30d4d221e59629b41fbe642a4c0eac856540..79b1f5f8fb8964fb8ef20adb77fd6b01632287ba 100644 (file)
 extern "C" {
 #endif
 
+/*!
+@defgroup api-priv-qexec Private query executor
+@ingroup api-comp-cls-dev
+
+@brief
+    Private view of a \bt_qexec for a \bt_comp_cls
+    \ref api-comp-cls-dev-meth-query "query method".
+
+A <strong><em>private query executor</em></strong> is a private view,
+from within a \bt_comp_cls
+\ref api-comp-cls-dev-meth-query "query method", of a
+\bt_qexec.
+
+A query method receives a private query executor as its
+\bt_p{query_executor} parameter.
+
+As of \bt_name_version_min_maj, this module only offers the
+bt_private_query_executor_as_query_executor_const() function to
+\ref api-fund-c-typing "upcast" a private query executor to a
+\c const query executor. You need this to get the query executor's
+\ref api-qexec-prop-log-lvl "logging level".
+*/
+
+/*! @{ */
+
+/*!
+@name Type
+@{
+
+@typedef struct bt_private_query_executor bt_private_query_executor;
+
+@brief
+    Private query executor.
+
+@}
+*/
+
+/*!
+@name Upcast
+@{
+*/
+
+/*!
+@brief
+    \ref api-fund-c-typing "Upcasts" the private query executor
+    \bt_p{query_executor} to the public #bt_query_executor type.
+
+@param[in] query_executor
+    @parblock
+    Private query executor to upcast.
+
+    Can be \c NULL.
+    @endparblock
+
+@returns
+    \bt_p{query_executor} as a public query executor.
+*/
 static inline
 const bt_query_executor *
 bt_private_query_executor_as_query_executor_const(
@@ -41,6 +98,10 @@ bt_private_query_executor_as_query_executor_const(
        return __BT_UPCAST_CONST(bt_query_executor, query_executor);
 }
 
+/*! @} */
+
+/*! @} */
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.023487 seconds and 4 git commands to generate.