Skip to content

Commit f763ef3

Browse files
committed
cleanup + no gl_attr_force_inline in docs + rem const from ret types (edge)
1 parent 8c6f622 commit f763ef3

3 files changed

Lines changed: 14 additions & 17 deletions

File tree

Doxyfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2324,15 +2324,15 @@ ENABLE_PREPROCESSING = YES
23242324
# The default value is: NO.
23252325
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
23262326

2327-
MACRO_EXPANSION = NO
2327+
MACRO_EXPANSION = YES
23282328

23292329
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
23302330
# the macro expansion is limited to the macros specified with the PREDEFINED and
23312331
# EXPAND_AS_DEFINED tags.
23322332
# The default value is: NO.
23332333
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
23342334

2335-
EXPAND_ONLY_PREDEF = NO
2335+
EXPAND_ONLY_PREDEF = YES
23362336

23372337
# If the SEARCH_INCLUDES tag is set to YES, the include files in the
23382338
# INCLUDE_PATH will be searched if a #include is found.
@@ -2365,7 +2365,7 @@ INCLUDE_FILE_PATTERNS =
23652365
# recursively expanded use the := operator instead of the = operator.
23662366
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
23672367

2368-
PREDEFINED =
2368+
PREDEFINED = "gl_attr_force_inline="
23692369

23702370
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
23712371
# tag can be used to specify a list of macro names that should be expanded. The

include/gl/graph.hpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,11 @@ class graph final {
442442
// clang-format off
443443
// gl_attr_force_inline misplacement
444444

445-
gl_attr_force_inline const edge_type add_edge(vertex_type source, vertex_type target) {
445+
gl_attr_force_inline edge_type add_edge(vertex_type source, vertex_type target) {
446446
return this->add_edge(source.id(), target.id());
447447
}
448448

449-
gl_attr_force_inline const edge_type add_edge_with(
449+
gl_attr_force_inline edge_type add_edge_with(
450450
vertex_type source, vertex_type target, const edge_properties_type& properties
451451
)
452452
requires(traits::c_non_empty_properties<edge_properties_type>)
@@ -705,12 +705,7 @@ class graph final {
705705
private:
706706
using fmt_traits = io::detail::graph_fmt_traits<directional_tag>;
707707

708-
graph(const graph& other)
709-
: _n_vertices{other._n_vertices},
710-
_n_edges{other._n_edges},
711-
_impl{other._impl},
712-
_vertex_properties{other._vertex_properties},
713-
_edge_properties{other._edge_properties} {}
708+
graph(const graph& other) = default;
714709

715710
// --- element validation ---
716711

mkdocs.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ nav:
1313
- Traits & Concepts: cpp-gl/group__gl__traits.md
1414
- Generic Types: cpp-gl/group__gl__types.md
1515
- Utilities: cpp-gl/group__gl__util.md
16-
- HGL:
17-
- Overview: cpp-gl/group__hgl.md
18-
- Algorithms: cpp-gl/group__hgl__alg.md
19-
- Full API Index:
16+
# - HGL:
17+
# - Overview: cpp-gl/group__hgl.md
18+
# - Algorithms: cpp-gl/group__hgl__alg.md
19+
- API Index:
2020
- Namespaces: cpp-gl/namespaces.md
2121
- Classes & Structs: cpp-gl/annotated.md
2222
- Files: cpp-gl/files.md
@@ -25,8 +25,6 @@ theme:
2525
name: material
2626
logo: img/cpp-gl-hex.png
2727
favicon: img/cpp-gl-hex.png
28-
# icon:
29-
# logo: material/graph
3028
features:
3129
- navigation.tabs
3230
- navigation.sections
@@ -86,6 +84,10 @@ plugins:
8684
EXTRACT_PRIVATE: "NO"
8785
INTERNAL_DOCS: "NO"
8886
EXCLUDE_SYMBOLS: "std doctest doctest_detail_test_suite_ns detail *::detail"
87+
ENABLE_PREPROCESSING: "YES"
88+
MACRO_EXPANSION: "YES"
89+
EXPAND_ONLY_PREDEF: "YES"
90+
PREDEFINED: "gl_attr_force_inline="
8991

9092
extra_javascript:
9193
- scripts/mathjax.js

0 commit comments

Comments
 (0)