.. index:: subject
.. _subject/0:

.. rst-class:: right

**category**

``subject``
===========

Smalltalk dependent handling predicates.

| **Availability:** 
|    ``logtalk_load(dependents(loader))``

| **Author:** Paulo Moura
| **Version:** 1:0:0
| **Date:** 2003-02-09

| **Compilation flags:**
|    ``static``


| **Dependencies:**
|   (none)


| **Remarks:**
|    (none)

| **Inherited public predicates:**
|    (none)

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

.. index:: changed/0
.. _subject/0::changed/0:

``changed/0``
^^^^^^^^^^^^^

Receiver changed in some way. Notify all dependents.

| **Compilation flags:**
|    ``static``

| **Mode and number of proofs:**
|    ``changed`` - ``one``


------------

.. index:: changed/1
.. _subject/0::changed/1:

``changed/1``
^^^^^^^^^^^^^

Receiver changed as specified in the argument. Notify all dependents.

| **Compilation flags:**
|    ``static``

| **Template:**
|    ``changed(Change)``
| **Mode and number of proofs:**
|    ``changed(?nonvar)`` - ``one``


------------

.. index:: dependents/1
.. _subject/0::dependents/1:

``dependents/1``
^^^^^^^^^^^^^^^^

Returns a list of all dependent objects.

| **Compilation flags:**
|    ``static``

| **Template:**
|    ``dependents(Dependents)``
| **Mode and number of proofs:**
|    ``dependents(-list)`` - ``one``


------------

.. index:: addDependent/1
.. _subject/0::addDependent/1:

``addDependent/1``
^^^^^^^^^^^^^^^^^^

Adds a new dependent object.

| **Compilation flags:**
|    ``static``

| **Template:**
|    ``addDependent(Dependent)``
| **Mode and number of proofs:**
|    ``addDependent(@object)`` - ``one``


------------

.. index:: removeDependent/1
.. _subject/0::removeDependent/1:

``removeDependent/1``
^^^^^^^^^^^^^^^^^^^^^

Removes a dependent object.

| **Compilation flags:**
|    ``static``

| **Template:**
|    ``removeDependent(Dependent)``
| **Mode and number of proofs:**
|    ``removeDependent(?object)`` - ``zero_or_more``


------------

Protected predicates
--------------------

(none)

Private predicates
------------------

.. index:: dependent_/1
.. _subject/0::dependent_/1:

``dependent_/1``
^^^^^^^^^^^^^^^^

Table of dependent objects.

| **Compilation flags:**
|    ``dynamic``

| **Template:**
|    ``dependent_(Dependent)``
| **Mode and number of proofs:**
|    ``dependent_(?object)`` - ``zero_or_more``


------------

Operators
---------

(none)

.. seealso::

   :ref:`observer <observer/0>`

