Back to index

salome-kernel  6.5.0
Public Member Functions
df_shared_ptr< T > Class Template Reference

#include <DF_definitions.hxx>

List of all members.

Public Member Functions

 df_shared_ptr ()
template<class Y >
 df_shared_ptr (Y *p)
template<class Y >
 df_shared_ptr (df_shared_ptr< Y > const &r)
template<class Y >
df_shared_ptroperator= (df_shared_ptr< Y > const &r)
template<class Y >
df_shared_ptroperator() (Y *p)

Detailed Description

template<class T>
class df_shared_ptr< T >

Definition at line 37 of file DF_definitions.hxx.


Constructor & Destructor Documentation

template<class T>
df_shared_ptr< T >::df_shared_ptr ( ) [inline]

Definition at line 40 of file DF_definitions.hxx.

{}
template<class T>
template<class Y >
df_shared_ptr< T >::df_shared_ptr ( Y *  p) [inline, explicit]

Definition at line 43 of file DF_definitions.hxx.

      {
        boost::shared_ptr<T>::reset(p);
      }
template<class T>
template<class Y >
df_shared_ptr< T >::df_shared_ptr ( df_shared_ptr< Y > const &  r) [inline]

Definition at line 49 of file DF_definitions.hxx.

                                             :
      boost::shared_ptr<T>(r,boost::detail::dynamic_cast_tag())
        {}

Member Function Documentation

template<class T>
template<class Y >
df_shared_ptr& df_shared_ptr< T >::operator() ( Y *  p) [inline]

Definition at line 60 of file DF_definitions.hxx.

    {
      if(T* pt = dynamic_cast<T*>(p))
        boost::shared_ptr<T>::reset(pt);
      else
        boost::throw_exception(std::bad_cast());
      return *this;
    }
template<class T>
template<class Y >
df_shared_ptr& df_shared_ptr< T >::operator= ( df_shared_ptr< Y > const &  r) [inline]

Definition at line 54 of file DF_definitions.hxx.

      {
        df_shared_ptr<T>(r).swap(*this);
        return *this;
      }

The documentation for this class was generated from the following file: