Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
SolverGraph.hpp File Reference

Declare a class to register and retrieve nodes and edges from a unique container. More...

#include "shambase/exception.hpp"
#include "shambase/memory.hpp"
#include "shamsolvergraph/edge/IEdge.hpp"
#include "shamsolvergraph/node/INode.hpp"
#include <unordered_map>
#include <algorithm>
#include <functional>
#include <memory>
#include <optional>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for SolverGraph.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  shamrock::solvergraph::SolverGraphConstraint
class  shamrock::solvergraph::SolverGraph
 A graph container for managing solver nodes and edges with type-safe access. More...

Namespaces

namespace  shamrock
 namespace for the main framework

Typedefs

using shamrock::solvergraph::SolverGraphNodeCheck = std::function<bool(const std::shared_ptr<INode> &node)>
using shamrock::solvergraph::SolverGraphEdgeCheck = std::function<bool(const std::shared_ptr<IEdge> &edge)>

Detailed Description

Declare a class to register and retrieve nodes and edges from a unique container.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file SolverGraph.hpp.

Typedef Documentation

◆ SolverGraphEdgeCheck

using shamrock::solvergraph::SolverGraphEdgeCheck = std::function<bool(const std::shared_ptr<IEdge> &edge)>

Definition at line 36 of file SolverGraph.hpp.

◆ SolverGraphNodeCheck

using shamrock::solvergraph::SolverGraphNodeCheck = std::function<bool(const std::shared_ptr<INode> &node)>

Definition at line 35 of file SolverGraph.hpp.