example.hpp Source File

example.hpp Source File#

Applies to Linux and Windows

2023

3 min read time

ROCm Docs Core Demo Doxygen Docs: example.hpp Source File
example.hpp
Go to the documentation of this file.
1 
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 
57 
61 
66 
69 
72 
76 enum 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