23 #ifndef MED_SharedPtr_HeaderFile
24 #define MED_SharedPtr_HeaderFile
26 #include <boost/shared_ptr.hpp>
36 template<
class T>
class SharedPtr:
public boost::shared_ptr<T>
45 boost::shared_ptr<T>(p)
51 boost::shared_ptr<T>(
boost::dynamic_pointer_cast<T,Y>(r))
80 operator const T& ()
const
82 return *(this->get());
88 return *(this->get());
To extend the boost::shared_ptr to support such features automatic dynamic cast.
Definition: MED_SharedPtr.hxx:37
SharedPtr(Y *p)
Construct the class by any type of a pointer.
Definition: MED_SharedPtr.hxx:44
SharedPtr & operator()(SharedPtr< Y > const &r)
Introduce a flexible way to reset the wrapped pointer.
Definition: MED_SharedPtr.hxx:74
SharedPtr & operator=(SharedPtr< Y > const &r)
Copy-constructor.
Definition: MED_SharedPtr.hxx:57
SharedPtr()
Default constructor.
Definition: MED_SharedPtr.hxx:40
SharedPtr(SharedPtr< Y > const &r)
Construct the class by any specialisation of the class.
Definition: MED_SharedPtr.hxx:50
SharedPtr & operator()(Y *p)
Introduce a flexible way to reset the wrapped pointer.
Definition: MED_SharedPtr.hxx:66
Definition: MED_Algorithm.cxx:28
Definition: SMESH_MAT2d.cxx:224