qpid::SharedObject< T > Class Template Reference
Template to enforce shared object conventions.
More...
#include <SharedObject.h>
List of all members.
|
Public Types |
typedef boost::shared_ptr< T > | shared_ptr |
Detailed Description
template<class T>
class qpid::SharedObject< T >
Template to enforce shared object conventions.
Shared object classes should inherit : public qpid::SharedObject That ensures Foo:
- has typedef boost::shared_ptr<T> shared_ptr
- has virtual destructor
- is boost::noncopyable (no default copy or assign)
- has a protected default constructor.
Shared objects should not have public constructors. Make constructors protected and provide public statc create() functions that return a shared_ptr.
The documentation for this class was generated from the following file: