docs: downcasting documentation added

This commit is contained in:
Mateusz Pusz
2020-09-14 08:34:45 +02:00
parent 92c575cb1d
commit 63d288636f
3 changed files with 20 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ add_custom_command(OUTPUT "${SPHINX_INDEX_FILE}"
"${CMAKE_CURRENT_SOURCE_DIR}/reference/core.rst"
"${CMAKE_CURRENT_SOURCE_DIR}/reference/core/concepts.rst"
"${CMAKE_CURRENT_SOURCE_DIR}/reference/core/customization_points.rst"
"${CMAKE_CURRENT_SOURCE_DIR}/reference/core/downcasting.rst"
# "${CMAKE_CURRENT_SOURCE_DIR}/reference/core/functions.rst"
"${CMAKE_CURRENT_SOURCE_DIR}/reference/core/metafunctions.rst"
"${CMAKE_CURRENT_SOURCE_DIR}/reference/core/types.rst"

View File

@@ -9,3 +9,4 @@ Core Library
core/functions
core/metafunctions
core/customization_points
core/downcasting

View File

@@ -0,0 +1,18 @@
The Downcasting Facility
========================
.. concept:: template<typename T> Downcastable
.. doxygenstruct:: units::downcast_base
:members:
.. doxygenstruct:: units::downcast_child
:members:
.. doxygenstruct:: units::downcast_poison
:members:
.. doxygenstruct:: units::downcast_dispatch
:members:
.. doxygentypedef:: units::downcast