1 #ifndef _SPTRWRAPPER_H_INCLUDED
2 #define _SPTRWRAPPER_H_INCLUDED
4 #include <boost/shared_ptr.hpp>
14 sptrWrapper(
const T& inner)
23 sptrWrapper(
const sptrWrapper<T>& original)
25 if (original.sptr !=0)
26 DataPtr = original.DataPtr->clone();
30 Wrapper& operator=(
const Wrapper<T>& original)
32 if (
this != &original)
36 DataPtr = (original.DataPtr !=0) ?
37 original.DataPtr->clone() : 0;
45 const T& operator*()
const
49 const T*
const operator->()
const