|
PStack
2.0
Stack trace printer for MSVC and GCC binaries
|
Allows safe modification of a managed handle container when accessed by the handle's address. More...
#include <managed_handle_proxy.hpp>


Construction / Destruction | |
| managed_handle_proxy (C &container) noexcept | |
| Construct an instance for handle management. More... | |
| ~managed_handle_proxy () noexcept | |
| Synchronize changes back to the container on destruction. | |
Operator Overloads | |
| operator T * () noexcept | |
| Access a pointer to the managed handle. More... | |
Member Data | |
| T | m_handle |
| A temporary handle for tracking changes while accessed as a pointer-to-handle type. | |
| C & | m_container |
| The container tracking the handle. | |
Additional Inherited Members | |
Static Public Member Functions inherited from psystem::stack_allocated | |
| static void | operator delete (void *)=delete |
| Individual object deletion. | |
| static void | operator delete[] (void *)=delete |
| Array of type object deletion. | |
| static void * | operator new (size_t)=delete |
| Individual object allocation. | |
| static void * | operator new[] (size_t)=delete |
| Array of type allocation. | |
Protected Member Functions inherited from psystem::not_assignable | |
| not_assignable & | operator= (not_assignable const &) const =delete |
| Delete the basic assignment operator. | |
| constexpr | not_assignable () noexcept |
| A simple CTOR suitable for noexcept and constexpr uses. | |
| ~not_assignable () noexcept | |
| A simple CTOR suitable for noexcept uses. | |
Allows safe modification of a managed handle container when accessed by the handle's address.
This class template works essentially by creating a temporary container for the handle type. Only when the instance is destroyed, is the change synchronized back to the container instance.
| T | The handle type that can be stored in the handle container. |
| C | The continer type. It should follow the interface of unique_handle, etc. |
|
inlineexplicitnoexcept |
Construct an instance for handle management.
| [in] | container | The container managing a handle. |
|
inlinenoexcept |
Access a pointer to the managed handle.