Module PUBSUB.Sub
include SUBSCRIPTION with type gid := gid and type group := group
val empty : 'a t
empty
returns the empty subscription set.
val length : 'a t -> int
length t
returns the number of groups in the subscription set.
val is_empty : 'a t -> bool
is_empty t
returns true if the subscription set is empty.
val find : gid -> 'a t -> (group * 'a) option
find gid t
returnsSome group
ifgid
is in the subscription set, otherwiseNone
.
val filter : (gid -> (group * 'a) -> bool) -> 'a t -> 'a t
val fold : (gid -> (group * 'a) -> 'b -> 'b) -> 'a t -> 'b -> 'b
val iter : (gid -> (group * 'a) -> unit) -> 'a t -> unit
val map : (gid -> (group * 'a) -> group * 'a) -> 'a t -> 'a t
val to_list : 'a t -> (group * 'a) list
to_list t
returns the subscription set as list ordered by group ID.