ui-utilcpp
1.8.3
|
Base adapter class to hold a pointer that can't be freed using standard "delete". More...
#include <Misc.hpp>
Public Member Functions | |
auto_base (P *const p=0) | |
Construct from any pointer (may be 0). | |
void | set (P *const p) |
Set controlled pointer (must not be 0). | |
P * | get () const |
Get underlying pointer. | |
P * | operator-> () const |
Smart dereferencing. | |
Protected Attributes | |
P * | p_ |
Controlled pointer. | |
Base adapter class to hold a pointer that can't be freed using standard "delete".
Derived classes should overwrite the destructor accordingly (and add other tool methods at will).