src/Resource/smart_ptr.h File Reference

This file contains the SmartPtr definition. More...

#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.


Detailed Description

This file contains the SmartPtr definition.

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.

See also:
SmartPtr

Definition in file smart_ptr.h.


Define Documentation

#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 (  ) 

Statement is not executed because debug mode is disabled.

Definition at line 19 of file smart_ptr.h.

#define DEB2 (  ) 

Statement is not executed because debug mode is disabled.

Definition at line 26 of file smart_ptr.h.

#define SmartPtr   boost::shared_ptr

Define SmartPtr as the type to use for smart pointers.

Definition at line 37 of file smart_ptr.h.

#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.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo