template<typename type, class allocator>
QMemArray<type, allocator>& FX::QMemArray< type, allocator >::setRawData ( const type *  a,
FXuval  n,
bool  _noDeleteExtArray = false 
) [inline]

Sets QMemArray<> to use an external array. Note that not all methods are implemented for this (see the header file). Note also that like Qt's version, you must not resize or reassign the array when in this state. Failure to call resetRawData() before destruction causes delete on the data unless you set _noDeleteExtArray.

Definition at line 161 of file qmemarray.h.

Referenced by FX::QMemArray< FX::FXCodeToPythonCode::CodeItem >::assign(), FX::QMemArray< FX::FXCodeToPythonCode::CodeItem >::duplicate(), and FX::TnFXSQLDBImpl::GetImpl< true, QByteArray, QByteArray >::GetImpl().

00162     {
00163         extArray=const_cast<type *>(a); extArrayLen=n;
00164         noDeleteExtArray=_noDeleteExtArray;
00165         return *this;
00166     }


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