Skip to main content
`Ctrl`+`K`

# example.hpp Source File

2026-01-04

2 min read time

ROCm Docs Core Demo Doxygen Docs: example.hpp Source File
example.hpp
Go to the documentation of this file.
1
9
10#include "example1.hpp"
11
14 namespace example {
15
18 class Example {
19 public:
22 void method();
23
28 int method2(int param);
29 protected:
32 static int static_member;
33 private:
36 static void static_method();
37};
38
41 class Example2 : public Example {};
42
48 template <typename T>
49 void template_fun(T a);
50
51} // namespace example
52
56 void freestanding_function();
57
61
65 struct struct_in_group_1 {};
66
69
72
76 enum Enum {
77 Value1 = 1,
78 Value2 = 17,
79 Undocumented // Undocumented
80};
example::Example2
Example class 2 to showcase class hierarchies.
Definition example.hpp:41
example::Example
Example class.
Definition example.hpp:18
example::Example::method
void method()
This is a method taking no arguments.
example::Example::static_member
static int static_member
This is a protected static member.
Definition example.hpp:32
example::Example::method2
int method2(int param)
Example method taking parameters.
example1.hpp
This file is here to showcase include hierarchies.
freestanding_function
void freestanding_function()
A function in the global scope.
Enum
Enum
An enumeration.
Definition example.hpp:76
Value1
@ Value1
First Enumerator.
Definition example.hpp:77
Value2
@ Value2
Second Enum.
Definition example.hpp:78
example
A namespace.
Definition example.hpp:14
example::template_fun
void template_fun(T a)
Example of a template function.
struct_in_group_1
A struct.
Definition example.hpp:65