您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ terminated函数代码示例

51自学网 2021-06-03 08:44:09
  C++
这篇教程C++ terminated函数代码示例写得很实用,希望能帮到您。

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

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

示例1: QString

void GameWidget::nextMove(){    _gameController->nextMove();    bool gameFinished = _gameController->gameOver();    this->updateActor();    _lblMovementGhostCounter->setText(QString::number(_gameController->getGhostMovementCounter()));    if(gameFinished)    {        QMessageBox msgBox;        msgBox.setText("Le Pacman a été attrapé !");        QString text = "Les ghosts ont mis ";        text += QString("%1").arg( _gameController->getGhostMovementCounter() );        text += " coups pour attraper le Pacman./n";        msgBox.setDetailedText(text);        QPushButton *btnRestart = msgBox.addButton(tr("&Recommener"), QMessageBox::AcceptRole);        QPushButton *btnMenu = msgBox.addButton(tr("Revenir au &menu"), QMessageBox::RejectRole);        msgBox.exec();        if (msgBox.clickedButton() == btnRestart)        {            emit restarted();        }        else if (msgBox.clickedButton() == btnMenu)        {            emit terminated();        }    }}
开发者ID:pierre-binauld,项目名称:Omicron,代码行数:32,


示例2: terminated

void QgsTask::cancel(){  if ( mOverallStatus == Complete || mOverallStatus == Terminated )    return;  mShouldTerminate = true;#if QT_VERSION >= 0x050500  //can't cancel queued tasks with qt < 5.5  if ( mStatus == Queued || mStatus == OnHold )  {    // immediately terminate unstarted jobs    terminated();  }#endif  if ( mStatus == Terminated )  {    processSubTasksForTermination();  }  Q_FOREACH ( const SubTask& subTask, mSubTasks )  {    subTask.task->cancel();  }}
开发者ID:spono,项目名称:QGIS,代码行数:26,


示例3: switch

void KviHttpRequest::slotSocketDisconnected(){	switch(m_eProcessingType)	{		case WholeFile:			// happens always			emit binaryData(*m_p->pBuffer);		break;		case Blocks:			// an unprocessed block ?.. should never happened.. but well :D			if(m_p->pBuffer->size() > 0)				emit binaryData(*m_p->pBuffer);		break;		case Lines:			if(m_p->pBuffer->size() > 0)			{				// something left in the buffer and has no trailing LF				KviCString tmp((const char *)(m_p->pBuffer->data()),m_p->pBuffer->size());				emit data(tmp);			}		break;		case StoreToFile:			// same as above... should never happen.. but well :D			if(m_p->pFile && m_p->pBuffer->size() > 0)				m_p->pFile->write((const char *)(m_p->pBuffer->data()),m_p->pBuffer->size());		break;		default:			// nothing... just make gcc happy		break;	}	resetInternalStatus();	m_szLastError = __tr2qs("Success");	emit terminated(true);}
开发者ID:kartagis,项目名称:KVIrc,代码行数:34,


示例4: Q_ASSERT

void QgsTask::start(){  mStartCount++;  Q_ASSERT( mStartCount == 1 );  if ( mStatus != Queued )    return;  mStatus = Running;  mOverallStatus = Running;  emit statusChanged( Running );  emit begun();  // force initial emission of progressChanged, but respect if task has had initial progress manually set  setProgress( mProgress );  if ( run() )  {    completed();  }  else  {    terminated();  }}
开发者ID:spono,项目名称:QGIS,代码行数:25,


示例5: connect

//---------------------------------------------------------------------- void aucDialog::connect_slots(void) {  connect(mp_ui->browseButton, SIGNAL(clicked()), this, SLOT(select_file()));  connect(mp_ui->installerMenu,  SIGNAL(currentIndexChanged(int)), this, SLOT(set_installer_pict()));  connect(mp_ui->installerMenu,  SIGNAL(currentIndexChanged(int)), this, SLOT(set_installer_options()));  connect(mp_ui->installMenu_2,  SIGNAL(currentIndexChanged(int)), this, SLOT(update_options2()));  connect(mp_ui->installMenu_3,  SIGNAL(currentIndexChanged(int)), this, SLOT(update_options3()));  connect(mp_ui->installCheckbox,  SIGNAL(stateChanged(int)), this, SLOT(update_options3_fromcheckbox()));  connect(mp_ui->deviceRefreshButton, SIGNAL(clicked()), this, SLOT(populate_devices()));  connect(mp_ui->startButton,  SIGNAL(clicked()), this, SLOT(build_installer()));  connect(&m_thread,  SIGNAL(status(QString)), this, SLOT(status(QString)));  connect(&m_thread,  SIGNAL(finished()), this, SLOT(enable_widgets()));  connect(&m_thread,  SIGNAL(terminated()), this, SLOT(enable_widgets()));  connect(&m_thread,  SIGNAL(progress(int)), this, SLOT(progress(int)));  connect(&m_thread,  SIGNAL(maxprogress(int)), this, SLOT(maxprogress(int)));  connect(mp_creator,  SIGNAL(status(QString)), this, SLOT(status(QString)));  connect(mp_creator,  SIGNAL(progress(int)), this, SLOT(progress(int)));  connect(mp_creator,  SIGNAL(maxprogress(int)), this, SLOT(maxprogress(int)));  connect(&m_progress_thread, SIGNAL(progress(int)), this, SLOT(progress(int)));  connect(&m_progress_thread, SIGNAL(maxprogress(int)), this, SLOT(maxprogress(int)));  connect(&m_release_downloader, SIGNAL(progress(int)), this, SLOT(progress(int)));  connect(&m_release_downloader, SIGNAL(maxprogress(int)), this, SLOT(maxprogress(int)));  connect(&m_release_downloader, SIGNAL(downloadComplete(QString)), this, SLOT(download_complete(QString)));  connect(&m_release_downloader, SIGNAL(status(QString)), this, SLOT(status(QString)));  }
开发者ID:alfa1111,项目名称:atvusb-creator,代码行数:26,


示例6: QDialog

BackupDialog::BackupDialog(QWidget* parent) : QDialog(parent){    ui.setupUi(this);    m_thread = new BackupSizeThread();    connect(m_thread, SIGNAL(finished()), this, SLOT(updateSizeInfo()));    connect(m_thread, SIGNAL(terminated()), this, SLOT(updateSizeInfo()));    connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close()));    connect(ui.buttonCancel, SIGNAL(clicked()), m_thread, SLOT(quit()));    connect(ui.buttonChange, SIGNAL(clicked()), this, SLOT(changeBackupPath()));    connect(ui.buttonBackup, SIGNAL(clicked()), this, SLOT(backup()));    ui.backupSize->setText(tr("Installation size: calculating ..."));    m_mountpoint = RbSettings::value(RbSettings::Mountpoint).toString();    m_backupName = RbSettings::value(RbSettings::BackupPath).toString();    if(m_backupName.isEmpty()) {        m_backupName = m_mountpoint;    }    RockboxInfo info(m_mountpoint);    m_backupName += "/.backup/rockbox-backup-" + info.version() + ".zip";    ui.backupLocation->setText(QDir::toNativeSeparators(m_backupName));    m_thread->setPath(m_mountpoint + "/.rockbox");    m_thread->start();}
开发者ID:CoreDumpling,项目名称:rockbox,代码行数:27,


示例7: Ps

voidGerenciadorLancamento::startProcessoNativo( const QString& _processo_nome,                                            const QStringList& _argumentos ){    ProcessoNativoPai*    processo_nativo;    if ( _processo_nome == "ps")    {        processo_nativo = new Ps(_argumentos, 0);    }    else if ( _processo_nome == "kill")    {        processo_nativo = new Kill(_argumentos, 0);    }    else if ( _processo_nome == "exit" )    {        exit(0);    }    QObject::connect( processo_nativo, SIGNAL(finished()),                      this,SLOT(processoNativoTerminado()));    QObject::connect( processo_nativo, SIGNAL(terminated()),                      this,SLOT(processoNativoTerminado()));    processo_nativo->start();}
开发者ID:CZALTRAN,项目名称:networkchargebalancer,代码行数:28,


示例8: disconnect

void Widget::dozvilNaclose(){    disconnect(myUPS, SIGNAL(terminated()), &myThreadTimer, SLOT(start()));    dozvilNaVyhid=1;    myUPS->terminate();    close();}
开发者ID:HelloZB,项目名称:UPSMon,代码行数:7,


示例9: CExecutThread

void CWindowMain::on_execut(const QList<CExecutObject *> &lstObj){    if (!lstObj.isEmpty() && m_executThread == NULL) {        m_executThread = new CExecutThread(this,lstObj);        connect(m_executThread,SIGNAL(executOperation(QString)),                m_widgetConsol,SLOT(executingOperation(QString)));        connect(m_executThread,SIGNAL(message(QString)),                m_widgetConsol,SLOT(messageAppend(QString)));        connect(m_executThread,SIGNAL(started()),                this,SIGNAL(locked()));        connect(m_executThread,SIGNAL(timerWork(uint)),                this,SLOT(on_timerWork(uint)));        connect(this,SIGNAL(terminated()),                m_executThread,SLOT(on_terminated()));        connect(m_executThread,SIGNAL(finished()),                this,SIGNAL(unlocked()));        connect(m_executThread,SIGNAL(finished()),                this,SLOT(on_finished()));        m_executThread->start();    }}
开发者ID:cdandrey,项目名称:BFMaster,代码行数:30,


示例10: EVENT_CASE

void HumanClientFSM::unconsumed_event(const boost::statechart::event_base &event) {    std::string most_derived_message_type_str = "[ERROR: Unknown Event]";    const boost::statechart::event_base* event_ptr = &event;    if (dynamic_cast<const Disconnection*>(event_ptr))        most_derived_message_type_str = "Disconnection";#define EVENT_CASE(r, data, name)                                       /    else if (dynamic_cast<const name*>(event_ptr))                      /        most_derived_message_type_str = BOOST_PP_STRINGIZE(name);    BOOST_PP_SEQ_FOR_EACH(EVENT_CASE, _, HUMAN_CLIENT_FSM_EVENTS)    BOOST_PP_SEQ_FOR_EACH(EVENT_CASE, _, MESSAGE_EVENTS)#undef EVENT_CASE    if (terminated()) {        ErrorLogger(FSM) << "A " << most_derived_message_type_str << " event was passed to "            "the HumanClientFSM.  The FSM has terminated.  The event is being ignored.";        return;    }    std::stringstream ss;    ss << "[";    for (auto leaf_state_it = state_begin(); leaf_state_it != state_end();) {        // The following use of typeid assumes that        // BOOST_STATECHART_USE_NATIVE_RTTI is defined        const auto& leaf_state = *leaf_state_it;        ss << typeid(leaf_state).name();        ++leaf_state_it;        if (leaf_state_it != state_end())            ss << ", ";    }    ss << "]";    ErrorLogger(FSM) << "A " << most_derived_message_type_str                     << " event was not handled by any of these states : "                     << ss.str() << ".  It is being ignored.";}
开发者ID:matt474,项目名称:freeorion,代码行数:35,


示例11: QWidget

Widget::Widget(QWidget *parent) :    QWidget(parent),    ui(new Ui::Widget){    ui->setupUi(this);    QTextCodec *utfcodec = QTextCodec::codecForName("UTF-8"); //qt4    QTextCodec::setCodecForTr(utfcodec);    QTextCodec::setCodecForCStrings(utfcodec);dozvilNaVyhid=0;    m_tray_icon = new QSystemTrayIcon(QIcon(":/new/emulator.png"), this);     QAction *another_action = new QAction( "Показати/Сховати", m_tray_icon );     another_action->setIcon(QIcon(":/new/emulator.png"));     connect( another_action, SIGNAL(triggered()), this, SLOT(showHide()) );     QAction *set_action = new QAction( "Налаштування", m_tray_icon );     set_action->setIcon(QIcon(":/new/sett.png"));     connect( set_action, SIGNAL(triggered()), this, SLOT(settigsDialog()) );     QAction *quit_action = new QAction( "Вих
C++ test函数代码示例
C++ term_word函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。