| 1 | |
| 2 | //! \brief first class inside of namespace |
| 3 | class TestClass |
| 4 | { |
| 5 | public: |
| 6 | |
| 7 | /*! |
| 8 | Inserting additional reStructuredText information. |
| 9 | |
| 10 | \rst |
| 11 | |
| 12 | This is some funky non-XML compliant text: <& !>< |
| 13 | |
| 14 | .. note:: |
| 15 | |
| 16 | This reStructuredText has been handled correctly. |
| 17 | \endrst |
| 18 | |
| 19 | This is just a standard verbatim block with code: |
| 20 | |
| 21 | \verbatim |
| 22 | child = 0; |
| 23 | while( child = parent->IterateChildren( child ) ) |
| 24 | \endverbatim |
| 25 | |
| 26 | */ |
| 27 | virtual void function() const = 0; |
| 28 | |
| 29 | /*! |
| 30 | Inserting additional reStructuredText information. |
| 31 | \verbatim embed:rst |
| 32 | .. note:: |
| 33 | |
| 34 | This reStructuredText has been handled correctly. |
| 35 | \endverbatim |
| 36 | */ |
| 37 | virtual void rawVerbatim() const = 0; |
| 38 | |
| 39 | /*! |
| 40 | * Inserting additional reStructuredText information. |
| 41 | * |
| 42 | * \verbatim embed:rst:leading-asterisk |
| 43 | * Some example code:: |
| 44 | * |
| 45 | * int example(int x) { |
| 46 | * return x * 2; |
| 47 | * } |
| 48 | * \endverbatim |
| 49 | */ |
| 50 | virtual void rawLeadingAsteriskVerbatim() const = 0; |
| 51 | |
| 52 | /// Some kind of method |
| 53 | /// |
| 54 | /// @param something a parameter |
| 55 | /// |
| 56 | /// @verbatim embed:rst:leading-slashes |
| 57 | /// .. code-block:: c |
| 58 | /// :linenos: |
| 59 | /// |
| 60 | /// bool foo(bool something) { |
| 61 | /// return something; |
| 62 | /// }; |
| 63 | /// |
| 64 | /// @endverbatim |
| 65 | /// @note Documentation using `///` should begin and end in a blank line. |
| 66 | |
| 67 | virtual void rawLeadingSlashesVerbatim(int something) const = 0; |
| 68 | |
| 69 | /*! |
| 70 | Inserting an inline reStructuredText snippet. |
| 71 | Linking to another function: \inlinerst :cpp:func:`TestClass::rawVerbatim` \endrst |
| 72 | */ |
| 73 | virtual void rawInlineVerbatim() const = 0; |
| 74 | |
| 75 | //! Brief description |
| 76 | virtual void testFunction() const {}; |
| 77 | }; |