template<typename type, template< class > class ownershipPolicy = FX::Pol::destructiveCopy>
void PtrReset ( ptr< type, ownershipPolicy > &  p,
type *  data 
) [friend]

Resets the pointer (deletes the old contents, sets to new contents).

Definition at line 532 of file FXGenericTools.h.

Referenced by FX::Generic::ptr< type, FX::FXRefingObjectImpl::refedObject >::operator=().

00533     {
00534         p=ptr(data);
00535     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:57 2009 for TnFOX by doxygen v1.4.7