|
RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
|
#include <UDestroyer.h>
Public Member Functions | |
| UDestroyer (T *doomed=0) | |
| bool | setDoomed (T *doomed) |
This class is used to delete a dynamically created objects. It was mainly designed to remove dynamically created Singleton. Created on the stack of a Singleton, when the application is finished, his destructor make sure that the Singleton is deleted.
Definition at line 32 of file UDestroyer.h.
|
inline |
The constructor. Set the doomed object (take ownership of the object). The object is deleted when this object is deleted.
Definition at line 39 of file UDestroyer.h.
|
inline |
Definition at line 41 of file UDestroyer.h.
|
inline |
Set the doomed object. If a doomed object is already set, the function returns false.
| doomed | the doomed object |
Definition at line 55 of file UDestroyer.h.