TrcStandardClasses.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Eric Nickell, August 29, 1986 2:46:39 pm PDT
DIRECTORY
Rope USING [ROPE],
Trc;
TrcStandardClasses: CEDAR DEFINITIONS
~ BEGIN
Class: TYPE ~ Trc.Class;
ROPE: TYPE ~ Rope.ROPE;
TRC: TYPE ~ Trc.TRC;
Parm: TYPE ~ RECORD [name: ROPE, initialValue: REAL ← 0.5];
ParmInstance: TYPE ~ REF ParmInstanceRep;
ParmInstanceRep: TYPE ~ RECORD [
SEQUENCE n: NAT OF REAL
];
NewIdentityTrc: PUBLIC PROC RETURNS [trc: TRC];
Returns the values passed in.
NewChainTrc: PUBLIC PROC [dependents: LIST OF TRC] RETURNS [trc: TRC];
ReplaceNthTrcInChain: PUBLIC PROC [chain, new: TRC, n: NAT, notify: BOOLTRUE];
If notify~FALSE, then it becomes the client's responsibility to tip off chain's listeners at the appropriate time.
ChainInfo: PROC [chain: TRC] RETURNS [n: NAT];
GetNthTrcInChain: PROC [chain: TRC, n: NAT] RETURNS [trc: TRC];
ExtendChain: PROC [chain: TRC, newLinks: NAT ← 1, atPosition: NATNAT.LAST];
Adds newLinks sub-trc's to the chain, inserting them at atPosition.
DeleteNthTrcInChain: PROC [chain: TRC, n: NAT, notify: BOOLTRUE];
CreateParametricSubclass: PUBLIC PROC [flavor: ATOM, fcn: Trc.Fcn, blockFcn: Trc.BlockFcn, parms: LIST OF Parm, register: BOOLTRUE] RETURNS [class: Trc.Class];
NewParametricTrc: PUBLIC PROC [class: Class] RETURNS [trc: TRC];
EnumerateRegisteredParametricClasses: PROC [proc: Trc.ClassEnumProc];
Enumerates the all the parametric classes which have been registered with Trc
END.