Scroll to navigation

transfns(3U) InterViews Reference Manual transfns(3U)

NAME

TF_2Port, TF_Direct - transfer function subclasses

SYNOPSIS

#include <Unidraw/transfns.h>

DESCRIPTION

The TransferFunct abstract base class defines the transfer functionprotocol. The library predefines two subclasses. TF_2Port is asubclass that acts as an abstract base class for transfer functionshaving two sets of state variables, ``input'' and ``output'', withoutput variables always dependent on input variables. TF_Direct is asubclass of TF_2Port that defines a one-to-one assignment relationshipbetween an input and an output state variable.

TF_2PORTPUBLICOPERATIONS

Evaluate first carries out information transfer between dependentstate variables by calling the Transfer operation (described below).Then it iterates through its output state variables; those that havechanged (according to the ChangedOutput operation, described below)get Transmit called on the connector they're bound to. Subclassesneedn't redefine this operation if they implement Transfer andChangedOutput appropriately.
Retrieve and assign the TF_2Port's input and output state variables,identified serially. These operations do nothing by default;subclasses must allocate the storage they require.
Return the number of input and output state variables. Theseoperations return zero by default.

TF_2PORTPROTECTEDOPERATIONS

The constructor is protected to prevent instantiation.
Enforce the subclass-specific dependencies between the TF_2Port'sstate variables. This operation does nothing by default.
Return whether the output state variable with the given index haschanged its value since the last call to Transfer. Subclassesredefine this operation according to the semantics of their Transferoperation.

TF_DIRECTPUBLICOPERATIONS

Instantiate a new object, optionally specifying the input statevariable and its dependent output state variable.
Retrieve and assign the TF_Direct's input and output state variables.Specifying an index greater than zero does nothing, since TF_Directdefines a dependency between one input and one output state variable.
Return the number of input and output state variables. Theseoperations return zero by default.
These operations return 1.

TF_DIRECTPROTECTEDOPERATIONS

Assign the input state variable to the output state variable, settinga flag indicating that the output value has changed.
Return the status of the flag set by Transfer. The flag is reset as aside-effect of this operation.

SEEALSO

TransferFunct(3U)

6 August 1990 Unidraw