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

C++ delete2函数代码示例

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

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



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

示例1: saveList

ShopWindow::~ShopWindow()
{
    saveList();

    delete2(mBuyShopItemList);
    delete2(mSellShopItemList);
    delete2(mBuyShopItems);
    delete2(mSellShopItems);
    delete2(mTradeItem);

    instances.remove(this);
}
开发者ID:Action-Committee,项目名称:ManaPlus,代码行数:12,代码来源:shopwindow.cpp


示例2: main

void main()
{
int c;
do
{
printf("\n---MENU---");
printf("\n1.Push");
printf("\n2.Pop");
printf("\n3.Display");
printf("\n4.Exit");
printf("\nEnter your choice : ");
scanf("%d",&c);
switch(c)
{
case 1:
insert1();
break;
case 2:
delete2();
break;
case 3:
display();
break;
case 4:
exit(0);
default:
printf("\nEnter a valid choice");
}
}while(c!=4);
getch();
}
开发者ID:Ganeshrockz,项目名称:C,代码行数:31,代码来源:STACKWITHLIST.CPP


示例3: delete2

TextChunk::~TextChunk()
{
    delete2(img);
#ifdef UNITTESTS
    textChunkCnt --;
#endif
}
开发者ID:KaneHart,项目名称:Elmlor-Client,代码行数:7,代码来源:textchunk.cpp


示例4: delete2

CharCreateDialog::~CharCreateDialog()
{
    delete2(mPlayer);

    if (charServerHandler)
        charServerHandler->setCharCreateDialog(nullptr);
}
开发者ID:supermukmin,项目名称:ManaPlus,代码行数:7,代码来源:charcreatedialog.cpp


示例5: delete2

ProgressIndicator::~ProgressIndicator()
{
    if (gui != nullptr)
        gui->removeDragged(this);

    delete2(mIndicator);
}
开发者ID:mekolat,项目名称:ManaPlus,代码行数:7,代码来源:progressindicator.cpp


示例6: port

void IPC::start()
{
    if (ipc)
        return;

    unsigned short port(44007);
    if (getenv("IPC_PORT"))
        port = atoi(getenv("IPC_PORT"));

    logger->log("Starting IPC...");
    ipc = new IPC;
    for (int f = port; f < 65535; f ++)
    {
        ipc->setPort(f);
        logger->log("  -> trying port %d...", f);
        if (ipc->init())
        {
            logger->log("  -> Port %d selected", f);
            return;
        }
        else
        {
            port ++;
        }
    }
    delete2(ipc);
}
开发者ID:KaneHart,项目名称:Elmlor-Client,代码行数:27,代码来源:ipc.cpp


示例7: clear

Particle::~Particle()
{
    if (mActor != BeingId_zero &&
        (actorManager != nullptr))
    {
        ActorSprite *const actor = actorManager->findActor(mActor);
        if (actor != nullptr)
            actor->controlParticleDeleted(this);
    }
    // Delete child emitters and child particles
    clear();
    delete2(mAnimation);
    if (mImage != nullptr)
    {
        if (mType == ParticleType::Image)
        {
            const std::string &restrict name = mImage->mIdPath;
            StringIntMapIter it
                = ImageParticle::imageParticleCountByName.find(name);
            if (it != ImageParticle::imageParticleCountByName.end())
            {
                int &cnt = (*it).second;
                if (cnt > 0)
                    cnt --;
            }
            mImage->decRef();
        }
        mImage = nullptr;
    }

    ParticleEngine::particleCount--;
}
开发者ID:mekolat,项目名称:ManaPlus,代码行数:32,代码来源:particle.cpp


示例8: delete2

void IPC::stop()
{
    if (!ipc)
        return;

    logger->log("Stopping IPC...");
    delete2(ipc);
}
开发者ID:KaneHart,项目名称:Elmlor-Client,代码行数:8,代码来源:ipc.cpp


示例9: deleteMapImage

Minimap::~Minimap()
{
    config.setValue(getWindowName() + "Show", mShow);
    config.removeListeners(this);
    CHECKLISTENERS
    deleteMapImage();
    delete2(mTextPopup);
}
开发者ID:KaneHart,项目名称:Elmlor-Client,代码行数:8,代码来源:minimap.cpp


示例10: uninstallActionListeners

GuiTable::~GuiTable()
{
    if (gui)
        gui->removeDragged(this);

    uninstallActionListeners();
    delete2(mModel);
}
开发者ID:Action-Committee,项目名称:ManaPlus,代码行数:8,代码来源:guitable.cpp


示例11: delete2

ServerDialog::~ServerDialog()
{
    if (mDownload)
    {
        mDownload->cancel();
        delete2(mDownload)
    }
    delete2(mServersListModel);
}
开发者ID:nashley,项目名称:ManaPlus,代码行数:9,代码来源:serverdialog.cpp


示例12: delete2

SimpleAnimation::~SimpleAnimation()
{
    delete2(mAnimation);
    if (mImageSet)
    {
        mImageSet->decRef();
        mImageSet = nullptr;
    }
}
开发者ID:dreamsxin,项目名称:ManaPlus,代码行数:9,代码来源:simpleanimation.cpp


示例13: delete2

void Inventory::removeItemAt(const int index)
{
    delete2(mItems[index]);
    mUsed--;
    if (mUsed < 0)  // Already at 0, no need to distribute event
        mUsed = 0;
    else
        distributeSlotsChangedEvent();
}
开发者ID:yahersfa,项目名称:ManaPlus,代码行数:9,代码来源:inventory.cpp


示例14: delete2

MiniStatusWindow::~MiniStatusWindow()
{
    delete2(mTextPopup);
    delete2(mStatusPopup);
    delete_all(mIcons);
    mIcons.clear();

    Inventory *const inv = PlayerInfo::getInventory();
    if (inv)
        inv->removeInventoyListener(this);

    FOR_EACH (ProgressBarVectorCIter, it, mBars)
    {
        ProgressBar *bar = *it;
        if (!bar)
            continue;
        if (!bar->isVisibleLocal())
            delete bar;
    }
开发者ID:KaneHart,项目名称:Elmlor-Client,代码行数:19,代码来源:ministatuswindow.cpp


示例15: delete2

void rSdpaLib::Delete()
{
  delete2();
  #if 0
  // bLOCKsTRUCT cannot release successfully
  if (bLOCKsTRUCT) {
    delete[] bLOCKsTRUCT;
  }
  bLOCKsTRUCT = NULL;
  #endif
}
开发者ID:sourekj,项目名称:Packages,代码行数:11,代码来源:rsdpa_lib.cpp


示例16: delete2

MailViewWindow::~MailViewWindow()
{
    if (mIcon)
    {
        Image *const image = mIcon->getImage();
        if (image)
            image->decRef();
    }
    delete2(mMessage);
    mailViewWindow = nullptr;
}
开发者ID:supermukmin,项目名称:ManaPlus,代码行数:11,代码来源:mailviewwindow.cpp


示例17: delete2

InventoryWindow::~InventoryWindow()
{
    invInstances.remove(this);
    if (mInventory)
        mInventory->removeInventoyListener(this);
    if (!invInstances.empty())
        invInstances.front()->updateDropButton();

    mSortDropDown->hideDrop(false);
    delete2(mSortModel);
}
开发者ID:jamesp-,项目名称:ManaPlus,代码行数:11,代码来源:inventorywindow.cpp


示例18: delete2

SocialWindow::~SocialWindow()
{
    player_relations.removeListener(this);
    if (mGuildAcceptDialog)
    {
        mGuildAcceptDialog->close();
        mGuildAcceptDialog->scheduleDelete();
        mGuildAcceptDialog = nullptr;

        mGuildInvited = 0;
    }

    if (mPartyAcceptDialog)
    {
        mPartyAcceptDialog->close();
        mPartyAcceptDialog->scheduleDelete();
        mPartyAcceptDialog = nullptr;

        mPartyInviter.clear();
    }
    delete2(mCreatePopup);
    delete2(mPlayers);
    delete2(mNavigation);
    delete2(mAttackFilter);
    delete2(mPickupFilter);
    delete2(mFriends);
}
开发者ID:qpulsar,项目名称:ManaPlus,代码行数:27,代码来源:socialwindow.cpp


示例19: delete2

Slider::~Slider()
{
    if (gui)
        gui->removeDragged(this);

    delete2(mVertexes);
    mInstances--;
    if (mInstances == 0)
    {
        for (int mode = 0; mode < 2; mode ++)
            Theme::unloadRect(buttons[mode]);
    }
}
开发者ID:Rawng,项目名称:ManaPlus,代码行数:13,代码来源:slider.cpp


示例20: delete2

ShortcutContainer::~ShortcutContainer()
{
    if (mBackgroundImg)
    {
        mBackgroundImg->decRef();
        mBackgroundImg = nullptr;
    }

    if (gui)
        gui->removeDragged(this);

    delete2(mVertexes);
}
开发者ID:Rawng,项目名称:ManaPlus,代码行数:13,代码来源:shortcutcontainer.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ deleteAll函数代码示例发布时间:2022-05-30
下一篇:
C++ delete0函数代码示例发布时间: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