summaryrefslogtreecommitdiff
path: root/lib/configuration/graph_tree.mli
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-11-19 08:47:29 +0100
committerSébastien Dailly <sebastien@dailly.me>2026-11-19 08:47:29 +0100
commita9628fda0fc027c54b5ed5313a0c41731d79e41f (patch)
tree9240bc709d0f93336b20fb3d6b3b6cb2e8a35423 /lib/configuration/graph_tree.mli
parent36e895119c80d52e0d3a3695a3cf3d93e41bcd3e (diff)
Create all the datatypes in a single time.
Use aliases for the type name for clarification
Diffstat (limited to 'lib/configuration/graph_tree.mli')
-rw-r--r--lib/configuration/graph_tree.mli15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/configuration/graph_tree.mli b/lib/configuration/graph_tree.mli
index 31a8f79..381d904 100644
--- a/lib/configuration/graph_tree.mli
+++ b/lib/configuration/graph_tree.mli
@@ -2,24 +2,19 @@ type t
val create : unit -> t
-val add_content : t -> Model.Reference.t Model.Content.t -> unit
+val add_content : t -> Model.content -> unit
(** Add a new content in the tree *)
-val add_edge :
- t ->
- Model.Reference.t Model.Content.t ->
- Model.Reference.t Model.Field.t ->
- Model.Reference.t Model.Content.t ->
- unit
+val add_edge : t -> Model.content -> Model.field -> Model.content -> unit
(** Add a relation between two contents.
The function does not check if the two contents are actually linked together
*)
val pp : Format.formatter -> t -> unit
-val fold : (Model.Reference.t Model.Content.t -> 'a -> 'a) -> t -> 'a -> 'a
-val iter : (Model.Reference.t Model.Content.t -> unit) -> t -> unit
+val fold : (Model.content -> 'a -> 'a) -> t -> 'a -> 'a
+val iter : (Model.content -> unit) -> t -> unit
-exception Cycle of Model.Reference.t Model.Content.t list
+exception Cycle of Model.content list
val check_cycle : t -> unit