@@ -22,155 +22,155 @@ class Domain
2222{
2323public:
2424 explicit Domain (std::string_view name)
25- : m_handle (detail::create_domain(std::string(name).c_str()))
25+ : m_domain (detail::create_domain(std::string(name).c_str()))
2626 {
2727 }
2828
2929#if ITT_PLATFORM == ITT_PLATFORM_WIN
3030 explicit Domain (std::wstring_view name)
31- : m_handle (detail::create_domain(std::wstring(name).c_str()))
31+ : m_domain (detail::create_domain(std::wstring(name).c_str()))
3232 {
3333 }
3434#endif
3535
3636 __itt_domain* native_handle () const noexcept
3737 {
38- return m_handle ;
38+ return m_domain ;
3939 }
4040
4141 bool valid () const noexcept
4242 {
43- return m_handle != nullptr ;
43+ return m_domain != nullptr ;
4444 }
4545
4646 Domain (const Domain&) = default ;
4747 Domain& operator =(const Domain&) = default ;
4848
4949 Domain (Domain&& other) noexcept
50- : m_handle (other.m_handle )
50+ : m_domain (other.m_domain )
5151 {
52- other.m_handle = nullptr ;
52+ other.m_domain = nullptr ;
5353 }
5454
5555 Domain& operator =(Domain&& other) noexcept
5656 {
57- m_handle = other.m_handle ;
58- other.m_handle = nullptr ;
57+ m_domain = other.m_domain ;
58+ other.m_domain = nullptr ;
5959 return *this ;
6060 }
6161
6262 [[nodiscard]] ScopedTask task (std::string_view name) const
6363 {
64- return ScopedTask (m_handle , name);
64+ return ScopedTask (m_domain , name);
6565 }
6666
6767 [[nodiscard]] ScopedTask task (std::string_view name, __itt_id taskid, __itt_id parentid) const
6868 {
69- return ScopedTask (m_handle , name, taskid, parentid);
69+ return ScopedTask (m_domain , name, taskid, parentid);
7070 }
7171
7272#if ITT_PLATFORM == ITT_PLATFORM_WIN
7373 [[nodiscard]] ScopedTask task (std::wstring_view name) const
7474 {
75- return ScopedTask (m_handle , name);
75+ return ScopedTask (m_domain , name);
7676 }
7777
7878 [[nodiscard]] ScopedTask task (std::wstring_view name, __itt_id taskid, __itt_id parentid) const
7979 {
80- return ScopedTask (m_handle , name, taskid, parentid);
80+ return ScopedTask (m_domain , name, taskid, parentid);
8181 }
8282#endif
8383
8484 [[nodiscard]] ScopedTask task (const StringHandle& name) const noexcept
8585 {
86- return ScopedTask (m_handle , name);
86+ return ScopedTask (m_domain , name);
8787 }
8888
8989 [[nodiscard]] ScopedTask task (const StringHandle& name, __itt_id taskid, __itt_id parentid) const noexcept
9090 {
91- return ScopedTask (m_handle , name, taskid, parentid);
91+ return ScopedTask (m_domain , name, taskid, parentid);
9292 }
9393
9494 void task_begin (std::string_view name) const
9595 {
9696 __itt_string_handle* h = detail::get_or_create_string_handle (name);
97- __itt_task_begin (m_handle , detail::make_null_id (), detail::make_null_id (), h);
97+ __itt_task_begin (m_domain , detail::make_null_id (), detail::make_null_id (), h);
9898 }
9999
100100 void task_begin (std::string_view name, __itt_id taskid, __itt_id parentid) const
101101 {
102102 __itt_string_handle* h = detail::get_or_create_string_handle (name);
103- __itt_task_begin (m_handle , taskid, parentid, h);
103+ __itt_task_begin (m_domain , taskid, parentid, h);
104104 }
105105
106106#if ITT_PLATFORM == ITT_PLATFORM_WIN
107107 void task_begin (std::wstring_view name) const
108108 {
109109 __itt_string_handle* h = detail::get_or_create_string_handle (name);
110- __itt_task_begin (m_handle , detail::make_null_id (), detail::make_null_id (), h);
110+ __itt_task_begin (m_domain , detail::make_null_id (), detail::make_null_id (), h);
111111 }
112112
113113 void task_begin (std::wstring_view name, __itt_id taskid, __itt_id parentid) const
114114 {
115115 __itt_string_handle* h = detail::get_or_create_string_handle (name);
116- __itt_task_begin (m_handle , taskid, parentid, h);
116+ __itt_task_begin (m_domain , taskid, parentid, h);
117117 }
118118#endif
119119
120120 void task_begin (const StringHandle& name) const noexcept
121121 {
122- __itt_task_begin (m_handle , detail::make_null_id (), detail::make_null_id (), name.native_handle ());
122+ __itt_task_begin (m_domain , detail::make_null_id (), detail::make_null_id (), name.native_handle ());
123123 }
124124
125125 void task_begin (const StringHandle& name, __itt_id taskid, __itt_id parentid) const noexcept
126126 {
127- __itt_task_begin (m_handle , taskid, parentid, name.native_handle ());
127+ __itt_task_begin (m_domain , taskid, parentid, name.native_handle ());
128128 }
129129
130130 void task_end () const noexcept
131131 {
132- __itt_task_end (m_handle );
132+ __itt_task_end (m_domain );
133133 }
134134
135135 [[nodiscard]] ScopedRegion region (std::string_view name) const
136136 {
137- return ScopedRegion (m_handle , name);
137+ return ScopedRegion (m_domain , name);
138138 }
139139
140140 [[nodiscard]] ScopedRegion region (std::string_view name, __itt_id id, __itt_id parentid) const
141141 {
142- return ScopedRegion (m_handle , name, id, parentid);
142+ return ScopedRegion (m_domain , name, id, parentid);
143143 }
144144
145145#if ITT_PLATFORM == ITT_PLATFORM_WIN
146146 [[nodiscard]] ScopedRegion region (std::wstring_view name) const
147147 {
148- return ScopedRegion (m_handle , name);
148+ return ScopedRegion (m_domain , name);
149149 }
150150
151151 [[nodiscard]] ScopedRegion region (std::wstring_view name, __itt_id id, __itt_id parentid) const
152152 {
153- return ScopedRegion (m_handle , name, id, parentid);
153+ return ScopedRegion (m_domain , name, id, parentid);
154154 }
155155#endif
156156
157157 [[nodiscard]] ScopedRegion region (const StringHandle& name) const noexcept
158158 {
159- return ScopedRegion (m_handle , name);
159+ return ScopedRegion (m_domain , name);
160160 }
161161
162162 [[nodiscard]] ScopedRegion region (const StringHandle& name, __itt_id id, __itt_id parentid) const noexcept
163163 {
164- return ScopedRegion (m_handle , name, id, parentid);
164+ return ScopedRegion (m_domain , name, id, parentid);
165165 }
166166
167167 [[nodiscard]] ScopedFrame frame () const noexcept
168168 {
169- return ScopedFrame (m_handle );
169+ return ScopedFrame (m_domain );
170170 }
171171
172172private:
173- __itt_domain* m_handle = nullptr ;
173+ __itt_domain* m_domain = nullptr ;
174174};
175175
176176} // namespace ittapi
0 commit comments