.. index:: proto_hierarchyp
.. _proto_hierarchyp/0:

.. rst-class:: right

**protocol**

``proto_hierarchyp``
====================

Prototype hierarchy protocol.

| **Author:** Paulo Moura
| **Version:** 1:1:0
| **Date:** 2006-02-20

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


| **Extends:**
|    ``public`` :ref:`hierarchyp <hierarchyp/0>`

| **Remarks:**
|    (none)

| **Inherited public predicates:**
|     :ref:`hierarchyp/0::ancestor/1`  :ref:`hierarchyp/0::ancestors/1`  :ref:`hierarchyp/0::descendant/1`  :ref:`hierarchyp/0::descendants/1`  :ref:`hierarchyp/0::leaf/1`  :ref:`hierarchyp/0::leaves/1`  

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

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

.. raw:: html

   <div id="parent/1"> </div>

.. index:: parent/1
.. _proto_hierarchyp/0::parent/1:

``parent/1``
^^^^^^^^^^^^

Returns, by backtracking, all object parents.

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

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


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

.. raw:: html

   <div id="parents/1"> </div>

.. index:: parents/1
.. _proto_hierarchyp/0::parents/1:

``parents/1``
^^^^^^^^^^^^^

List of all object parents.

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

| **Template:**
|    ``parents(Parents)``
| **Mode and number of proofs:**
|    ``parents(-list)`` - ``one``


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

.. raw:: html

   <div id="extension/1"> </div>

.. index:: extension/1
.. _proto_hierarchyp/0::extension/1:

``extension/1``
^^^^^^^^^^^^^^^

Returns, by backtracking, all object direct descendants.

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

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


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

.. raw:: html

   <div id="extensions/1"> </div>

.. index:: extensions/1
.. _proto_hierarchyp/0::extensions/1:

``extensions/1``
^^^^^^^^^^^^^^^^

List of all object direct descendants.

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

| **Template:**
|    ``extensions(Extensions)``
| **Mode and number of proofs:**
|    ``extensions(-list)`` - ``one``


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

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

(no local declarations; see entity ancestors if any)

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

(no local declarations; see entity ancestors if any)

Operators
---------

(none)

.. seealso::

   :ref:`proto_hierarchy <proto_hierarchy/0>`

