xo-ratio: docs: + .rst files ratio-reference/functions/class
This commit is contained in:
parent
15b9162aa4
commit
6a8bfc39da
4 changed files with 76 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ Why ``ratio``?
|
||||||
:caption: xo-ratio contents:
|
:caption: xo-ratio contents:
|
||||||
|
|
||||||
install
|
install
|
||||||
|
ratio-reference
|
||||||
|
|
||||||
Indices and Tables
|
Indices and Tables
|
||||||
------------------
|
------------------
|
||||||
|
|
|
||||||
47
docs/ratio-class.rst
Normal file
47
docs/ratio-class.rst
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
.. _ratio-class:
|
||||||
|
|
||||||
|
Ratio
|
||||||
|
=====
|
||||||
|
|
||||||
|
.. code-block:: cpp
|
||||||
|
|
||||||
|
#include <xo/ratio/ratio.hpp>
|
||||||
|
|
||||||
|
A ``ratio`` represents an exact fraction of two integers.
|
||||||
|
|
||||||
|
.. doxygenclass:: xo::ratio::ratio
|
||||||
|
|
||||||
|
Instance Variables
|
||||||
|
------------------
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-instance-variables
|
||||||
|
|
||||||
|
Types
|
||||||
|
-----
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-types
|
||||||
|
|
||||||
|
Constructors
|
||||||
|
------------
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-ctor
|
||||||
|
|
||||||
|
Static Methods
|
||||||
|
--------------
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-static-methods
|
||||||
|
|
||||||
|
Access Methods
|
||||||
|
--------------
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-access
|
||||||
|
|
||||||
|
General Methods
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-methods
|
||||||
|
|
||||||
|
Conversion
|
||||||
|
----------
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-conversion
|
||||||
17
docs/ratio-functions.rst
Normal file
17
docs/ratio-functions.rst
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
.. _ratio_functions:
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
Ratio Functions
|
||||||
|
===============
|
||||||
|
|
||||||
|
.. code-block:: cpp
|
||||||
|
|
||||||
|
#include <xo/ratio/ratio.hpp>
|
||||||
|
|
||||||
|
.. doxygenfunction:: xo::ratio::make_ratio
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-arithmetic
|
||||||
|
|
||||||
|
.. doxygengroup:: ratio-3way-compare
|
||||||
11
docs/ratio-reference.rst
Normal file
11
docs/ratio-reference.rst
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
.. _ratio-reference:
|
||||||
|
|
||||||
|
Ratio Reference
|
||||||
|
===============
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
:caption: Ratio Reference
|
||||||
|
|
||||||
|
ratio-class
|
||||||
|
ratio-functions
|
||||||
Loading…
Add table
Add a link
Reference in a new issue