File: example.hpp

package info (click to toggle)
rocm-docs-core 1.23.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,632 kB
  • sloc: python: 1,960; sh: 160; javascript: 152; cpp: 29; makefile: 27
file content (80 lines) | stat: -rw-r--r-- 1,444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
///
/// \file
/// \author Jon Doe (jon@example.com)
/// \brief Example doxygen header
/// \version 0.1
/// \date 2023-03-23
///
/// \copyright Copyright (c) 2023 Advanced Micro Devices Inc.

#include "example1.hpp"

///
/// \brief A namespace
namespace example {

///
/// \brief Example class
class Example {
public:
    ///
    /// \brief This is a method taking no arguments
    void method();

    ///
    /// \brief Example method taking parameters
    /// \param param The parameter
    /// \return description of the return value
    int method2(int param);
protected:
    ///
    /// \brief This is a protected static member
    static int static_member;
private:
    ///
    /// \brief This is a private static method
    static void static_method();
};

///
/// \brief Example class 2 to showcase class hierarchies
class Example2 : public Example {};

///
/// \brief Example of a template function
///
/// \tparam T Template parameter
/// \param a parameter
template <typename T>
void template_fun(T a);

} // namespace example

///
/// \brief A function in the global scope
///
void freestanding_function();

///
/// \defgroup group1 First Group
/// @{

///
/// \brief A struct
///
struct struct_in_group_1 {};

///
/// @}

///
/// \defgroup group2 Second Group

///
/// \brief An enumeration
/// \ingroup group2
enum Enum {
    Value1 = 1,  ///< First Enumerator
    Value2 = 17, ///< Second Enum
    Undocumented // Undocumented
};