example.hpp Source File

example.hpp Source File#

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