当前位置: 首页>>代码示例>>C++>>正文


C++ delete_data函数代码示例

本文整理汇总了C++中delete_data函数的典型用法代码示例。如果您正苦于以下问题:C++ delete_data函数的具体用法?C++ delete_data怎么用?C++ delete_data使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了delete_data函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1:

CUICellItem::~CUICellItem()
{
	if(m_b_destroy_childs)
		delete_data	(m_childs);

	delete_data		(m_custom_draw);
}
开发者ID:Karlan88,项目名称:xray,代码行数:7,代码来源:UICellItem.cpp

示例2: while

void CUIGameCustom::OnFrame() 
{
	CDialogHolder::OnFrame();
	st_vec_it it = m_custom_statics.begin();
	st_vec_it it_e = m_custom_statics.end();
	for(;it!=it_e;++it)
		(*it)->Update();

	std::sort(	it, it_e, predicate_sort_stat );

	
	while(!m_custom_statics.empty() && !m_custom_statics.back()->IsActual())
	{
		delete_data					(m_custom_statics.back());
		m_custom_statics.pop_back	();
	}
	
	if(g_b_ClearGameCaptions)
	{
		delete_data				(m_custom_statics);
		g_b_ClearGameCaptions	= false;
	}
	m_window->Update();

	//update windows
	if( GameIndicatorsShown() && psHUD_Flags.is(HUD_DRAW|HUD_DRAW_RT) )
		UIMainIngameWnd->Update	();

	m_pMessagesWnd->Update();
}
开发者ID:BeaconDev,项目名称:xray-16,代码行数:30,代码来源:UIGameCustom.cpp

示例3:

CGameSpawnConstructor::~CGameSpawnConstructor	()
{
	delete_data						(m_level_spawns);
	delete_data						(m_spawn_graph);
	xr_delete						(m_game_graph);
	xr_delete						(m_game_info);
	xr_delete						(m_patrol_path_storage);
}
开发者ID:AntonioModer,项目名称:xray-16,代码行数:8,代码来源:game_spawn_constructor.cpp

示例4: delete_data

CExtraContentFilter::~CExtraContentFilter()
{
	for (u32 i=0; i<aDataPacks.size(); i++)
	{
		delete_data(aDataPacks[i]);
	}
	delete_data(aDataPacks);
}
开发者ID:AntonioModer,项目名称:xray-16,代码行数:8,代码来源:CExtraContentFilter.cpp

示例5: delete_data

CUIGameSP::~CUIGameSP() 
{
	delete_data(InventoryMenu);
	delete_data(PdaMenu);	
	delete_data(TalkMenu);
	delete_data(UICarBodyMenu);
	delete_data(UIChangeLevelWnd);
}
开发者ID:OLR-xray,项目名称:OLR-3.0,代码行数:8,代码来源:UIGameSP.cpp

示例6:

CUIGameCTA::~CUIGameCTA()
{
    delete_data	(m_pUITeamSelectWnd);
    delete_data	(m_pBuySpawnMsgBox);
    xr_delete	(m_voteStatusWnd);
    xr_delete	(m_pCurBuyMenu);
    xr_delete	(m_pCurSkinMenu);
}
开发者ID:Frankie-666,项目名称:xray-16,代码行数:8,代码来源:UIGameCTA.cpp

示例7: Destroy

void CUISequencer::Destroy()
{
	Device.seqFrame.Remove		(this);
	Device.seqRender.Remove		(this);
	delete_data					(m_items);
	delete_data					(m_UIWindow);
	IR_Release					();
	m_bActive					= false;
	m_pStoredInputReceiver		= NULL;
}
开发者ID:OLR-xray,项目名称:XRay-NEW,代码行数:10,代码来源:UIGameTutorial.cpp

示例8: xr_delete

CUIMMShniaga::~CUIMMShniaga()
{
	xr_delete(m_magnifier);
	xr_delete(m_shniaga);
	xr_delete(m_view);
	xr_delete(m_sound);

	delete_data(m_buttons);
	delete_data(m_buttons_new);
}
开发者ID:2asoft,项目名称:xray,代码行数:10,代码来源:UIMMShniaga.cpp

示例9: delete_data

CGameSpy_Full::~CGameSpy_Full()
{
	delete_data(m_pGSA);
	delete_data(m_pGS_Patching);
	delete_data(m_pGS_HTTP);
	delete_data(m_pGS_SB);

	if (m_hGameSpyDLL)
	{
		FreeLibrary(m_hGameSpyDLL);
		m_hGameSpyDLL = NULL;
	}
}
开发者ID:OLR-xray,项目名称:OLR-3.0,代码行数:13,代码来源:GameSpy_Full.cpp

示例10: start_transaction

		std::string SqliteDao::save()
		{
			int ret = 0;

			start_transaction();

            int table_num = table_manager_->get_schema_manager()->get_table_num();

            for (int i = 0; i < table_num; i++)
            {
			    db_mm::TableIndex* table_index = table_manager_->get_table_index(i);
			    db_mm::TableIndex::RowIndexIter row_iter = table_index->iter();

                if (!table_index->has_data())
                {
                    continue;
                }

			    db_mm::RowIndex* row_index = NULL;

			    while (0 == row_iter.get_next(row_index) && 0 == ret)
			    {
			    	if (db_mm::DELETE_ROW == row_index->get_row_stat())
			    	{
			    		ret = delete_data(row_index);
			    	}

			    	else if (db_mm::UPDATE_ROW == row_index->get_row_stat())
			    	{
			    		if (0 == ret && 0 == (ret = delete_data(row_index)))
			    		{
			    			ret = insert_data(row_index);
			    		}
			    	}
			    }
            }

			if (0 == ret)
			{
				commit();
			}

			else
			{
				error_msg_ = sqlite3_errmsg(sqlite_);
				roll_back();
			}

			return error_msg_;
		}
开发者ID:littlersmall,项目名称:db-memory-model,代码行数:50,代码来源:sqlite_dao.cpp

示例11:

CUIPdaWnd::~CUIPdaWnd()
{
	delete_data		(UIMapWnd);
	delete_data		(UIPdaContactsWnd);
	delete_data		(UIEncyclopediaWnd);
	delete_data		(UIDiaryWnd);
	delete_data		(UIActorInfo);
	delete_data		(UIStalkersRanking);
	delete_data		(UIEventsWnd);
	delete_data		(m_updatedSectionImage);
	delete_data		(m_oldSectionImage);
}
开发者ID:OLR-xray,项目名称:XRay-NEW,代码行数:12,代码来源:UIPdaWnd.cpp

示例12: nghash_empty

void nghash_empty(NGHASHPTR hashtable, void (*delete_data) (void *),
                  void (*delete_key) (void *))
{
    NGTABLEPTR *table, hptr , zapptr ;

    nghash_reset_stat(hashtable);

    table = hashtable->hash_table ;
    if( table ) {
        for( hptr = hashtable->thread ; hptr ; ) {
            zapptr = hptr ;
            hptr = hptr->thread_next ;

            /* execute user define delete function if requested */
            if( delete_data ) {
                delete_data (zapptr->data);
            }
            if( hashtable->hash_func == NGHASH_DEF_HASH(NGHASH_FUNC_STR) ) {
                /* we allocated this ourselves we can delete it */
                NGFREE( zapptr->key ) ;
            } else if( delete_key ) {
                delete_key (zapptr->key);
            }
            NGFREE( zapptr ) ;
        }
        memset(table, 0, (size_t) hashtable->size*sizeof(NGTABLEPTR)) ;
    }
    /* free decks associated with tree if they exist */
    hashtable->thread = NULL ; /* initialize list */
    hashtable->last_entry = NULL ; /* initialize list */
    hashtable->num_entries = 0 ;
} /* end nghash_empty() */
开发者ID:imr,项目名称:ngspice,代码行数:32,代码来源:hash.c

示例13: delete_tokenizer

void delete_tokenizer(tokenizer_t *tokenizer)
{
    delete_data(tokenizer);
    free(tokenizer->comment_lines);
    free(tokenizer->buf);
    free(tokenizer);
}
开发者ID:Cadair,项目名称:astropy,代码行数:7,代码来源:tokenizer.c

示例14: clear

 /// free memory and set number of elements to zero
 void clear(void)
 {   length_ = 0;
     // check if there is old memory to be freed
     if( capacity_ > 0 )
         delete_data(data_);
     capacity_ = 0;
 }
开发者ID:barak,项目名称:cppad,代码行数:8,代码来源:vector.hpp

示例15:

void CSpaceRestrictionManager::clear						()
{
	m_clients->clear				();
	delete_data						(m_space_restrictions);

	CSpaceRestrictionHolder::clear	();
}
开发者ID:OLR-xray,项目名称:OLR-3.0,代码行数:7,代码来源:space_restriction_manager.cpp


注:本文中的delete_data函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。