nlib
nn::nlib::HandleAccess< HBODY > Class Template Reference

An accessor class that can access the handle instance as if it is a pointer. It becomes available after it is specified by the HandlerMaker class. More...

#include "nn/nlib/HandleMaker.h"

Public Member Functions

 HandleAccess () noexcept
 Instantiates the object with default parameters (default constructor).
 
void DetachHandleBody () noexcept
 Detaches a handle from the handle instance. More...
 

Detailed Description

template<class HBODY>
class nn::nlib::HandleAccess< HBODY >

An accessor class that can access the handle instance as if it is a pointer. It becomes available after it is specified by the HandlerMaker class.

Template Parameters
HBODYHandle instance type.

Definition at line 77 of file HandleMaker.h.

Member Function Documentation

§ DetachHandleBody()

template<class HBODY >
nn::nlib::HandleAccess< HBODY >::DetachHandleBody ( )
noexcept

Detaches a handle from the handle instance.

Description
Running this function releases entries in HandleTable. Once they have been released, no handle will be able to access the handle instance. For this reason, this function should be used only immediately before closing handle instances.
When this function is run, all the HandleAccess objects for the relevant handle are destructed and then handle_maker::DestroyHandleBody() is called to release the handle instances.

Definition at line 114 of file HandleMaker.h.


The documentation for this class was generated from the following files: