#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
Go to the source code of this file.
| Defines | |
| #define | DEB(x) | 
| Statement is not executed because debug mode is disabled. | |
| #define | DEB2(x) | 
| Statement is not executed because debug mode is disabled. | |
| #define | CONFIG_USE_BOOST_POINTERS | 
| When defined this enables the use of boost::shared_pointer instead of a homebrow SmartPtr. | |
| #define | SmartPtr boost::shared_ptr | 
| Define SmartPtr as the type to use for smart pointers. | |
| #define | SmartPtrDelete(target) void boost::checked_delete<target>(target* x); | 
| Define boost::checked_delete as the method used to delete objects. | |
Based on CONFIG_USE_BOOST_POINTERS we can alternate using a custom SmartPtr class and boost::shared_ptr. Currently we use boost::shared_ptr since the custom pointer doesn't provide static_cast.
Definition in file smart_ptr.h.
| #define CONFIG_USE_BOOST_POINTERS | 
When defined this enables the use of boost::shared_pointer instead of a homebrow SmartPtr.
Definition at line 30 of file smart_ptr.h.
| #define DEB | ( | x | ) | 
Statement is not executed because debug mode is disabled.
Definition at line 19 of file smart_ptr.h.
| #define DEB2 | ( | x | ) | 
Statement is not executed because debug mode is disabled.
Definition at line 26 of file smart_ptr.h.
| #define SmartPtr boost::shared_ptr | 
| #define SmartPtrDelete | ( | target | ) | void boost::checked_delete<target>(target* x); | 
Define boost::checked_delete as the method used to delete objects.
Definition at line 40 of file smart_ptr.h.
 1.5.3
 1.5.3