Пример #1
0
	void entry::destruct()
	{
		switch(m_type)
		{
		case int_t:
			call_destructor(reinterpret_cast<integer_type*>(data));
			break;
		case string_t:
			call_destructor(reinterpret_cast<string_type*>(data));
			break;
		case list_t:
			call_destructor(reinterpret_cast<list_type*>(data));
			break;
		case dictionary_t:
			call_destructor(reinterpret_cast<dictionary_type*>(data));
			break;
		default:
			LIBED2K_ASSERT(m_type == undefined_t);
			break;
		}
		m_type = undefined_t;
#ifdef LIBED2K_DEBUG
		m_type_queried = false;
#endif
	}
Пример #2
0
	void entry::destruct()
	{
		switch(m_type)
		{
		case int_t:
			call_destructor(reinterpret_cast<integer_type*>(&data));
			break;
		case string_t:
			call_destructor(reinterpret_cast<string_type*>(&data));
			break;
		case list_t:
			call_destructor(reinterpret_cast<list_type*>(&data));
			break;
		case dictionary_t:
			call_destructor(reinterpret_cast<dictionary_type*>(&data));
			break;
		case preformatted_t:
			call_destructor(reinterpret_cast<preformatted_type*>(&data));
			break;
		default:
			TORRENT_ASSERT(m_type == undefined_t);
			break;
		}
		m_type = undefined_t;
#if TORRENT_USE_ASSERTS
		m_type_queried = false;
#endif
	}
Пример #3
0
	void entry::destruct()
	{
		switch(m_type)
		{
		case int_t:
			call_destructor(reinterpret_cast<integer_type*>(data));
			break;
		case string_t:
			call_destructor(reinterpret_cast<string_type*>(data));
			break;
		case list_t:
			call_destructor(reinterpret_cast<list_type*>(data));
			break;
		case dictionary_t:
			call_destructor(reinterpret_cast<dictionary_type*>(data));
			break;
		default:
			assert(m_type == undefined_t);
			break;
		}
	}
Пример #4
0
QTD_EXTERN QTD_EXPORT void qtd_QXmlDeclHandler_destroy(void* nativeId)
{
    call_destructor((QXmlDeclHandler_QtDShell*)nativeId);
}
QTD_EXTERN QTD_EXPORT void qtd_QTableWidgetSelectionRange_destroy(void* nativeId)
{
    call_destructor((QTableWidgetSelectionRange*)nativeId);
}
Пример #6
0
QTD_EXTERN QTD_EXPORT void qtd_QDomCDATASection_destroy(void* nativeId)
{
    call_destructor((QDomCDATASection*)nativeId);
}
QTD_EXTERN QTD_EXPORT void qtd_QAbstractImageIOHandlerFactory_destroy(void* nativeId)
{
    call_destructor((QAbstractImageIOHandlerFactory_QtDShell*)nativeId);
}
Пример #8
0
QTD_EXTERN QTD_EXPORT void qtd_QFont_destroy(void* nativeId)
{
    call_destructor((QFont*)nativeId);
}
Пример #9
0
QTD_EXTERN QTD_EXPORT void qtd_QItemSelectionRange_destroy(void* nativeId)
{
    call_destructor((QItemSelectionRange*)nativeId);
}
Пример #10
0
QTD_EXTERN QTD_EXPORT void qtd_QPrinter_destroy(void* nativeId)
{
    call_destructor((QPrinter_QtDShell*)nativeId);
}
Пример #11
0
QTD_EXTERN QTD_EXPORT void qtd_QPolygonF_destroy(void* nativeId)
{
    call_destructor((QPolygonF*)nativeId);
}
Пример #12
0
QTD_EXTERN QTD_EXPORT void qtd_QPainterPath_destroy(void* nativeId)
{
    call_destructor((QPainterPath*)nativeId);
}
Пример #13
0
QTD_EXTERN QTD_EXPORT void qtd_QBrush_destroy(void* nativeId)
{
    call_destructor((QBrush*)nativeId);
}
Пример #14
0
QTD_EXTERN QTD_EXPORT void qtd_QGraphicsEllipseItem_destroy(void* nativeId)
{
    call_destructor((QGraphicsEllipseItem_QtDShell*)nativeId);
}
QTD_EXTERN QTD_EXPORT void qtd_QAbstractStyleFactory_destroy(void* nativeId)
{
    call_destructor((QAbstractStyleFactory_QtDShell*)nativeId);
}
QTD_EXTERN QTD_EXPORT void qtd_QAbstractFileEngine_MapExtensionReturn_destroy(void* nativeId)
{
    call_destructor((QAbstractFileEngine_MapExtensionReturn_QtDShell*)nativeId);
}
Пример #17
0
QTD_EXTERN QTD_EXPORT void qtd_QWidgetItem_destroy(void* nativeId)
{
    call_destructor((QWidgetItem_QtDShell*)nativeId);
}
Пример #18
0
QTD_EXTERN QTD_EXPORT void qtd_QStyleOptionMenuItem_destroy(void* nativeId)
{
    call_destructor((QStyleOptionMenuItem_QtDShell*)nativeId);
}
Пример #19
0
QTD_EXTERN QTD_EXPORT void qtd_QTextLine_destroy(void* nativeId)
{
    call_destructor((QTextLine*)nativeId);
}
Пример #20
0
QTD_EXTERN QTD_EXPORT void qtd_QTextCursor_destroy(void* nativeId)
{
    call_destructor((QTextCursor*)nativeId);
}
Пример #21
0
QTD_EXTERN QTD_EXPORT void qtd_QByteArray_destroy(void* nativeId)
{
    call_destructor((QByteArray*)nativeId);
}
Пример #22
0
QTD_EXTERN QTD_EXPORT void qtd_QSvgGenerator_destroy(void* nativeId)
{
    call_destructor((QSvgGenerator_QtDShell*)nativeId);
}
QTD_EXTERN QTD_EXPORT void qtd_QAbstractIconEngineFactoryV2_destroy(void* nativeId)
{
    call_destructor((QAbstractIconEngineFactoryV2_QtDShell*)nativeId);
}
Пример #24
0
QTD_EXTERN QTD_EXPORT void qtd_QMatrix_destroy(void* nativeId)
{
    call_destructor((QMatrix*)nativeId);
}
Пример #25
0
QTD_EXTERN QTD_EXPORT void qtd_QStyleOptionTitleBar_destroy(void* nativeId)
{
    call_destructor((QStyleOptionTitleBar_QtDShell*)nativeId);
}
QTD_EXTERN QTD_EXPORT void qtd_QStyleOptionDockWidgetV2_destroy(void* nativeId)
{
    call_destructor((QStyleOptionDockWidgetV2_QtDShell*)nativeId);
}
Пример #27
0
QTD_EXTERN QTD_EXPORT void qtd_QSslKey_destroy(void* nativeId)
{
    call_destructor((QSslKey*)nativeId);
}
QTD_EXTERN QTD_EXPORT void qtd_QTextDocumentFragment_destroy(void* nativeId)
{
    call_destructor((QTextDocumentFragment*)nativeId);
}
Пример #29
0
QTD_EXTERN QTD_EXPORT void qtd_QTextLayout_destroy(void* nativeId)
{
    call_destructor((QTextLayout_QtDShell*)nativeId);
}
Пример #30
0
QTD_EXTERN QTD_EXPORT void qtd_QStandardItem_destroy(void* nativeId)
{
    call_destructor((QStandardItem_QtDShell*)nativeId);
}