Skip to content

Commit 47d64f8

Browse files
committed
code annotations
1 parent e4a3642 commit 47d64f8

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

include/gl/vertex_descriptor.hpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,32 @@ namespace gl {
3535
/// > Instead, `vertex_descriptor` objects should be retrieved from the @ref gl::graph class instance that owns the given vertex.
3636
///
3737
/// ### Example Usage
38-
/// The following example demonstrates how to iterate over vertices in a graph,
39-
/// accessing both their structural IDs and their underlying custom properties:
4038
/// ```cpp
4139
/// for (auto v : graph.vertices()) {
42-
/// // Access the underlying structural ID
43-
/// std::cout << "Node ID: " << v.id() << " | ";
44-
///
45-
/// // Use the arrow operator to access/modify custom property fields
46-
/// if (v->parent == gl::invalid_id)
40+
/// std::cout << "Node ID: " << v.id() << " | "; // (1)!
41+
/// if (v->parent == gl::invalid_id) // (2)!
4742
/// std::cout << "ROOT | Level: " << v->level << "\n";
4843
/// else
4944
/// std::cout << "Parent: " << v->parent << " | Level: " << v->level << "\n";
5045
/// }
5146
/// ```
5247
///
48+
/// 1\. Access the underlying structural ID
49+
///
50+
/// 2\. Use the arrow operator to access/modify custom property fields
51+
///
5352
/// @tparam Properties The type of property data attached to the vertex. Defaults to `empty_properties`.
53+
/// Must satisfy the @ref gl::traits::c_properites "c_properties" trait.
5454
/// @tparam IdType The underlying integer type used for the vertex ID. Defaults to `default_id_type`.
55+
/// Must satisfy the @ref gl::traits::c_id_type "c_id_type" trait.
5556
template <
5657
traits::c_properties Properties = empty_properties,
5758
traits::c_id_type IdType = default_id_type>
5859
class vertex_descriptor final {
5960
public:
6061
/// @brief Type alias for the vertex_descriptor itself.
6162
using type = std::type_identity_t<vertex_descriptor<Properties, IdType>>;
62-
/// @brief The type used for vertex identifiers.
63+
/// @brief The vertex identifier type
6364
using id_type = IdType;
6465
/// @brief The type of properties associated with the vertex.
6566
using properties_type = Properties;

mkdocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ theme:
3838
- navigation.expand
3939
- search.suggest
4040
- content.code.copy
41-
- content.code.select # TODO: use in example
42-
- content.code.annotate # TODO: use in example
41+
- content.code.select
42+
- content.code.annotate
4343
palette:
4444
- media: "(prefers-color-scheme: light)"
4545
scheme: default
@@ -86,6 +86,7 @@ plugins:
8686
full-doc: true
8787
doxy-cfg:
8888
PROJECT_NAME: "CPP-GL"
89+
MARKDOWN_SUPPORT: "YES"
8990
EXTRACT_ALL: "NO"
9091
HIDE_UNDOC_MEMBERS: "YES"
9192
HIDE_UNDOC_CLASSES: "YES"

0 commit comments

Comments
 (0)