smgl 0.11.0
Structured Metadata Engine and Graph Objects Library
Loading...
Searching...
No Matches
GraphImpl.hpp
1namespace smgl
2{
3
4template <typename NodeType, typename... Args>
6{
8 insertNode(n);
9 return n;
10}
11
12template <typename N, typename... Ns>
13auto Graph::insertNodes(N& n0, Ns&&... nodes) -> void
14{
15 insertNode(n0);
16#if __cplusplus >= 201703L
17 (insertNode(nodes), ...);
18#elif __cplusplus > 201103L
19 detail::ExpandType{0, (insertNode(std::forward<Ns>(nodes)), 0)...};
20#endif
21}
22
23} // namespace smgl
void insertNodes(N &n0, Ns &&... nodes)
Add one or more Nodes to the Graph.
void insertNode(const Node::Pointer &n)
Add a Node to the Graph.
T make_shared(T... args)
Project top-level namespace.
Helper class for calling function iteratively on parameter pack.
Definition Utilities.hpp:37