nlib
HandleMaker.h File Reference

Defines HandlerMaker, HandleAccess, and the handle_maker namespace. More...

#include "nn/nlib/Config.h"

Go to the source code of this file.

Classes

struct  nn::nlib::handle_maker::NumHandle< HBODY >
 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...
 
struct  nn::nlib::HandleTable< HBODY >
 A table referencing handle instances used by the HandlerMaker class. More...
 
class  nn::nlib::HandleMaker< HBODY >
 A class supporting the implementation of handles with a 32-bit integer value. More...
 
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. More...
 
class  nn::nlib::HandleMaker< HBODY >
 A class supporting the implementation of handles with a 32-bit integer value. More...
 

Namespaces

 nn::nlib
 Implements stream-related classes usually commonly used, various containers, and other gadget classes. nlib_ns is an alias.
 
 nn::nlib::handle_maker
 Namespace in which a function template to customize the HandleMaker class is defined.
 

Functions

template<class HBODY >
void nn::nlib::handle_maker::DestroyHandleBody (HBODY *body) noexcept
 Called from the HandleMaker object to destroy a handle instance. More...
 
template<class HBODY >
void nn::nlib::handle_maker::LockHandleBody (HBODY *body) noexcept
 Called when the HandleAccess<HBODY> object is given by HandleMaker<HBODY>::GetHandleAccess(). More...
 
template<class HBODY >
void nn::nlib::handle_maker::UnlockHandleBody (HBODY *body) noexcept
 Called when the HandleAccess object is destroyed. More...
 
template<class HBODY >
bool nn::nlib::handle_maker::IsHandleBodyEnabled (HBODY *body) noexcept
 Returns if the handle instance is valid or not. More...
 

Detailed Description

Defines HandlerMaker, HandleAccess, and the handle_maker namespace.

Definition in file HandleMaker.h.