TF++, Miscellaneous classes and modules in C++:

◆ Handle() [2/3]

template<class X>
tfxx::Handle< X >::Handle ( Tpointer  p)
inline

Constructor to handle virtual base classes

This constructor must be used in the following way:

#THandle<X> handle(new X);#

Note
Do not pass any other pointer, since the destructor will call the delete operator on p.

Definition at line 206 of file handle.h.

206 : Tbase(p) { }
ConstHandle< Tobject > Tbase
Definition: handle.h:178