Lists
======
Breathe has support for lists in the doxygen documentation. They are output as
follows.
.. cpp:namespace:: @ex_lists_plus
For unordered lists with list items prefixed with **+**:
.. code-block:: rst
.. doxygenclass:: SimpleList_1
:project: lists
It renders as:
----
.. doxygenclass:: SimpleList_1
:project: lists
----
.. cpp:namespace:: @ex_lists_dash
Unordered lists with list items prefixed with **-** render as:
----
.. doxygenclass:: SimpleList_2
:project: lists
----
.. cpp:namespace:: @ex_lists_star
Unordered lists with list items prefixed with **\*** render as:
----
.. doxygenclass:: SimpleList_3
:project: lists
----
.. cpp:namespace:: @ex_lists_html
Unordered lists defined using HTML tags **
- ** render as:
----
.. doxygenclass:: SimpleList_6
:project: lists
----
.. cpp:namespace:: @ex_lists_auto
Auto-numbered lists with list items prefixed with **-#** render as:
----
.. doxygenclass:: SimpleList_4
:project: lists
----
.. cpp:namespace:: @ex_lists_arabic
Numbered lists with list items prefixed with Arabic numerals **1. 2. ...** render as:
----
.. doxygenclass:: SimpleList_5
:project: lists
----
.. note::
Numbered lists support for the moment only Arabic numerals.
Nested lists are supported in all combinations, as long as they are valid doxygen markup.
Below are a couple of examples of different nested lists documentation and their corresponding
breathe output.
.. cpp:namespace:: @ex_lists_nested_1
Documentation looking like this:
.. literalinclude:: code/nested_list_1.h
:language: cpp
renders as:
----
.. doxygenclass:: NestedLists_1
:project: lists
----
.. cpp:namespace:: @ex_lists_nested_2
Documentation looking like this:
.. literalinclude:: code/nested_list_2.h
:language: cpp
renders as:
----
.. doxygenclass:: NestedLists_2
:project: lists
----
.. cpp:namespace:: @ex_lists_nested_3
Documentation looking like this:
.. literalinclude:: code/nested_list_3.h
:language: cpp
renders as:
----
.. doxygenclass:: NestedLists_3
:project: lists
----
.. cpp:namespace:: @ex_lists_nested_4
Documentation looking like this:
.. literalinclude:: code/nested_list_4.h
:language: cpp
renders as:
----
.. doxygenclass:: NestedLists_4
:project: lists
----
.. cpp:namespace:: @ex_lists_nested_5
Documentation looking like this:
.. literalinclude:: code/nested_list_5.h
:language: cpp
renders as:
----
.. doxygenclass:: NestedLists_5
:project: lists