• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ delete_data函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: object

CInventoryItem::~CInventoryItem() 
{
	delete_data			(m_net_updateData);	
	static int destr_no = 0;
	u16 id = 0;
	if (m_object)
		id = m_object->ID();

	destr_no++;
	// Msg("* [%3d] destroying CInventoryItem 0x%08p #%5d '%s', m_object = %p ", destr_no, this, id, m_name.c_str(), m_object);			

#ifdef INV_NEW_SLOTS_SYSTEM
	R_ASSERT2((int)m_slots.size() >= 0, "m_slots.size() returned negative value inside destructor!"); // alpet: для детекта повреждения объекта
#endif


	bool B_GOOD			= (	!m_pCurrentInventory || 
							(std::find(	m_pCurrentInventory->m_all.begin(),m_pCurrentInventory->m_all.end(), this)==m_pCurrentInventory->m_all.end()) );
	if(!B_GOOD)
	{
		CObject* p	= object().H_Parent();
		Msg("inventory ptr is [%s]",m_pCurrentInventory?"not-null":"null");
		if(p)
			Msg("parent name is [%s]",p->Name_script());

			Msg("! ERROR item_id[%d] H_Parent=[%s][%d] [%d]",
				object().ID(),
				p ? p->Name_script() : "none",
				p ? p->ID() : -1,
				Device.dwFrame
				);
	}
}
开发者ID:OLR-xray,项目名称:OLR-3.0,代码行数:33,代码来源:inventory_item.cpp


示例17: delete_test

double delete_test(OSyncEngine *engine, OSyncMember *member, int num, const char *objtype)
{
	printf("Test \"Delete %i\" starting", num);
	fflush(stdout);

	empty_all(engine);

	printf(".");
	fflush(stdout);
	int i = 0;
	for (i = 0; i < num; i++)
		add_data(member, objtype);
	printf(".");
	fflush(stdout);

	check_sync(engine, "None", num);

	printf(".");
	fflush(stdout);
	delete_data(member, objtype);
	printf(".");
	fflush(stdout);

	return check_sync(engine, "Delete", num);
}
开发者ID:luizluca,项目名称:opensync-luizluca,代码行数:25,代码来源:osynctest.c


示例18: UnLoad

void CUIGameTDM::UnLoad()
{
	inherited::UnLoad	();
	xr_delete			(m_team1_icon);
	xr_delete			(m_team2_icon);
	delete_data			(m_pUITeamSelectWnd);
}
开发者ID:AntonioModer,项目名称:xray-16,代码行数:7,代码来源:UIGameTDM.cpp


示例19: put_template

void put_template(char *template_name, int x, int y)
{
	printf("Placing \"%s\" template at (%d, %d)\n", template_name, x, y);
	int i = 0;
	int j = 0;
	Template *t = get_template(template_name);

	if (t->width > width || t->height > height)
	{
		printf("The game field is too small to put the \"%s\" template.\n", template_name);
		delete_data();
		exit(3);
	}

	for (i = 0; i < t->height; i++)
	{
		for (j = 0; j < t->width; j++)
		{
			if (t->picture[i][j])
			{
				field[(y + i) % height][(x + j) % width] = 1;
			}
		}
	}

	delete_template(t);
}
开发者ID:auduchinok,项目名称:homework,代码行数:27,代码来源:game.c


示例20: test_delete

void test_delete(splay_tree* t, int data){
  print_tree(*t);
  printf("\n");
  *t =delete_data(*t, data);
  print_tree(*t);
  printf("\n");
}
开发者ID:pouwapouwa,项目名称:L3_Algo,代码行数:7,代码来源:splay_tree.c



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ delete_element函数代码示例发布时间:2022-05-30
下一篇:
C++ delete_area函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap