To extend the boost::shared_ptr to support such features automatic dynamic cast. More...
#include <MED_SharedPtr.hxx>
Public Member Functions | |
SharedPtr () | |
Default constructor. More... | |
template<class Y > | |
SharedPtr (Y *p) | |
Construct the class by any type of a pointer. More... | |
template<class Y > | |
SharedPtr (SharedPtr< Y > const &r) | |
Construct the class by any specialisation of the class. More... | |
template<class Y > | |
SharedPtr & | operator= (SharedPtr< Y > const &r) |
Copy-constructor. More... | |
template<class Y > | |
SharedPtr & | operator() (Y *p) |
Introduce a flexible way to reset the wrapped pointer. More... | |
template<class Y > | |
SharedPtr & | operator() (SharedPtr< Y > const &r) |
Introduce a flexible way to reset the wrapped pointer. More... | |
operator const T & () const | |
To provide a flexible way to use reference to the wrapped pointer (const version) More... | |
operator T & () | |
To provide a flexible way to use reference to the wrapped pointer. More... | |
To extend the boost::shared_ptr to support such features automatic dynamic cast.
All entities of the MEDWrapper package are handled as pointer. This class was introduced to provide correct and flexible memory management for all of the MEDWrapper objects.
MED::SharedPtr< T >::SharedPtr | ( | ) |
Default constructor.
Construct the class by any type of a pointer.
Construct the class by any specialisation of the class.
MED::SharedPtr< T >::operator const T & | ( | ) | const |
To provide a flexible way to use reference to the wrapped pointer (const version)
MED::SharedPtr< T >::operator T & | ( | ) |
To provide a flexible way to use reference to the wrapped pointer.
Introduce a flexible way to reset the wrapped pointer.
SharedPtr& MED::SharedPtr< T >::operator() | ( | SharedPtr< Y > const & | r | ) |
Introduce a flexible way to reset the wrapped pointer.
SharedPtr& MED::SharedPtr< T >::operator= | ( | SharedPtr< Y > const & | r | ) |
Copy-constructor.