Logo Search packages:      
Sourcecode: ardour version File versions  Download package

template<class T_CppObject>
template<class T_CastFrom>
Glib::RefPtr< T_CppObject >::RefPtr ( const RefPtr< T_CastFrom > &  src  )  [inline]

Copy constructor (from different, but castable type).

Increments the reference count.

Definition at line 193 of file refptr.h.

  // A different RefPtr<> will not allow us access to pCppObject_.  We need
  // to add a get_underlying() for this, but that would encourage incorrect
  // use, so we use the less well-known operator->() accessor:
  pCppObject_ (src.operator->())

Generated by  Doxygen 1.6.0   Back to index