Namespace in which a function template to customize the HandleMaker
class is defined.
More...
|
struct | NumHandle |
| A total number of handles that access the HBODY type can be obtained through the data member size of the size_t type static const. More...
|
|
Namespace in which a function template to customize the HandleMaker
class is defined.
template<class HBODY >
nn::nlib::handle_maker::DestroyHandleBody |
( |
HBODY * |
body | ) |
|
|
inlinenoexcept |
Called from the HandleMaker
object to destroy a handle instance.
- Template Parameters
-
HBODY | Handle instance type. |
- Parameters
-
- Description
- You can customize the destruction of handle instances by specializing this function template. By default,
deletes
body.
Definition at line 12 of file HandleMaker.h.
template<class HBODY >
nn::nlib::handle_maker::IsHandleBodyEnabled |
( |
HBODY * |
body | ) |
|
|
inlinenoexcept |
Returns if the handle instance is valid or not.
- Template Parameters
-
HBODY | Handle instance type. |
- Parameters
-
- Returns
- Returns
true
if the handle instance is valid (available for use).
- Description
- If the handle instance has been initialized and is available for use,
true
needs to be returned. If the handle instance has been finalized (before destruction) and is not available for use, false
needs to be returned. Called when a handle instance is being locked by LockHandleBody()
.
Definition at line 30 of file HandleMaker.h.
template<class HBODY >
nn::nlib::handle_maker::LockHandleBody |
( |
HBODY * |
body | ) |
|
|
inlinenoexcept |
Called when the HandleAccess<HBODY>
object is given by HandleMaker<HBODY>::GetHandleAccess()
.
- Template Parameters
-
HBODY | Handle instance type. |
- Parameters
-
- Description
- You can customize the lock behavior for using handle instances by specializing this function template. By default, body->Lock() is executed.
Definition at line 18 of file HandleMaker.h.
template<class HBODY >
nn::nlib::handle_maker::UnlockHandleBody |
( |
HBODY * |
body | ) |
|
|
inlinenoexcept |
Executed when the HandleAccess<HBODY>
object is destructed.
- Template Parameters
-
HBODY | Handle instance type. |
- Parameters
-
- Description
- You can customize the unlock behavior after using handle instances by specializing this function template. By default, body->Unlock() is executed.
Definition at line 24 of file HandleMaker.h.