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

◆ ConstHandle() [2/3]

template<class X>
tfxx::ConstHandle< X >::ConstHandle ( Tmutableobject 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 113 of file handle.h.

113  :
114  Mrep(p), Mpcount(new int(1)) { }
Tmutableobject * Mrep
internal pointer to the handled object
Definition: handle.h:167
int * Mpcount
usage counter
Definition: handle.h:169