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


C++ delete2函数代码示例

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


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


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