Product Documentation
Cadence SKILL++ Object System Reference
Product Version IC23.1, June 2023

updateDependent

updateDependent(
u_class
g_dependent
s_notifType
u_classObj
)
=> t

Description

Updates the dependents of a SKILL object, which could be a class or a generic function, when the SKILL object is modified. The SKILL engine calls this method for each g_dependent at different times. For example, if g_dependent is a method, the SKILL engine calls updateDependent at the time of adding or removing the method; whereas, for dependent classes the SKILL engine calls the updateDependent method at the end of class creation.

Your applications can implement methods on this generic function.

Arguments

u_class

Specifies a SKILL object, which could be a generic function or a class, for which the dependents need to be updated. Depending on the SKILL object specified, different arguments are passed. For example, in case the specified SKILL object is a generic function then the dependent object could be a generic function object or a proxy object and in case of the SKILL object is a class, then class:class can be specified as the dependent object.

g_dependent

Specifies a dependent object that you want to update.

s_notifType

Specifies the type of update that has occurred using the following qualifiers: add_method, remove_method, add_class, redef_class, add_generic, and redef_generic.

u_classObj

Specifies the class object when a new class is defined. This argument is nil when a class is redefined.

Value Returned

The return value is ignored.

Examples

defmethod( ilUpdateDependent((proxy class) obj dep type)
  printf("updateDependent called for CLASS -- %L" classOf(proxy))
  printf(" obj : %L type : %L\n" obj type)
  printf("Dependents : %L\n" get(className(proxy) '\*dependents\*))
  printf("Dependent : %L\n" dep)
  t
)

Related Topics

Dependency Maintenance Protocol Functions

addDependent

getDependents

removeDependent


Return to top
 ⠀
X