Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/smlnj-lib/Controls/control-set-sig.sml
ViewVC logotype

View of /sml/trunk/src/smlnj-lib/Controls/control-set-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1193 - (download) (annotate)
Thu May 16 18:44:04 2002 UTC (17 years, 3 months ago) by jhr
File size: 1112 byte(s)
  Bringing the Yale repository upto date (see CHANGES file for details).
(* control-set-sig.sml
 *
 * COPYRIGHT (c) 2002 Bell Labs, Lucent Technologies
 *)

signature CONTROL_SET =
  sig

    type 'a control = 'a Controls.control
    type ('a, 'b) control_set

    val new : unit -> ('a, 'b) control_set

    val member : (('a, 'b) control_set * Atom.atom) -> bool
    val find   : (('a, 'b) control_set * Atom.atom)
	  -> {ctl : 'a control, info : 'b} option
    val insert : (('a, 'b) control_set * 'a control * 'b) -> unit
    val remove : (('a, 'b) control_set * Atom.atom) -> unit
    val infoOf : ('a, 'b) control_set -> 'a control -> 'b option

  (* list the members; the list is ordered by priority.  The listControls'
   * function allows one to specify an obscurity level; controls with equal
   * or higher obscurioty are omitted from the list.
   *)
    val listControls : ('a, 'b) control_set -> {ctl : 'a control, info : 'b} list
    val listControls' : (('a, 'b) control_set * int)
	  -> {ctl : 'a control, info : 'b} list

  (* apply a function to the controls in a set *)
    val app : ({ctl : 'a control, info : 'b} -> unit)
	  -> ('a, 'b) control_set -> unit

  end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0