當前位置: 首頁>>代碼示例>>C++>>正文


C++ ForEachItemIn函數代碼示例

本文整理匯總了C++中ForEachItemIn函數的典型用法代碼示例。如果您正苦於以下問題:C++ ForEachItemIn函數的具體用法?C++ ForEachItemIn怎麽用?C++ ForEachItemIn使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了ForEachItemIn函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: ForEachItemIn

void CSteppedConjunctionOptimizer::finishCandidates()
{
    rootActivity->resetEOF();
    ForEachItemIn(i1, inputs)
        inputs.item(i1).setRestriction(NULL, 0);
    ForEachItemIn(i2, joins)
        joins.item(i2).stopRestrictedJoin();
    ForEachItemIn(i3, pseudoInputs)
        pseudoInputs.item(i3).clearPending();
    if (prevEqualityRow)
        inputAllocator->releaseRow(prevEqualityRow);
    prevEqualityRow = equalityRow;
    equalityRow = NULL;
}
開發者ID:aa0,項目名稱:HPCC-Platform,代碼行數:14,代碼來源:thorstep2.cpp

示例2: ForEachItemIn

void CHThorNaryActivity::done()
{
    ForEachItemIn(i, expandedInputs)
        expandedInputs.item(i)->done();
    expandedInputs.kill();
    CHThorMultiInputActivity::done();
}
開發者ID:EwokVillage,項目名稱:HPCC-Platform,代碼行數:7,代碼來源:hthorstep.cpp

示例3: flushTraceSummary

    virtual void flushTraceSummary()
    {
        StringBuffer logstr;
        logstr.appendf("activeReqs=").append(m_active).append(';');
        logstr.append("user=").append(queryUserId());
        if (m_peer.length())
            logstr.append('@').append(m_peer.get());
        logstr.append(';');

        if (m_hasException)
        {
            logstr.appendf("[email protected]%dms=%d;", m_exceptionTime, m_exceptionCode);
        }

        StringBuffer value;
        value.append("total=").appendulong(m_processingTime).append("ms");
        if (m_hasException || (getEspLogLevel() > LogNormal))
        {
            m_traceValues.append(value.str());

            if (m_traceValues.length())
            {
                ForEachItemIn(idx, m_traceValues)
                    logstr.append(m_traceValues.item(idx)).append(";");
                m_traceValues.kill();
            }
        }
        else
        {
            logstr.appendf("%s;", value.str());
        }

        DBGLOG("TxSummary[%s]", logstr.str());
    }
開發者ID:mokerjoke,項目名稱:HPCC-Platform,代碼行數:34,代碼來源:espcontext.cpp

示例4: waitForStrands

 virtual void waitForStrands()
 {
     producerStopSem.signal(threads.ordinality());
     ForEachItemIn(i, threads)
         threads.item(i).join();
     threads.kill();
 }
開發者ID:kenrowland,項目名稱:HPCC-Platform,代碼行數:7,代碼來源:thorstrand.cpp

示例5: ForEachItemIn

void CachedPasswordProvider::serialize(MemoryBuffer & out)
{
    unsigned num = passwords.ordinality();
    out.append(num);
    ForEachItemIn(idx, passwords)
        passwords.item(idx).serialize(out);
}
開發者ID:EwokVillage,項目名稱:HPCC-Platform,代碼行數:7,代碼來源:rmtpass.cpp

示例6: processCMD

    virtual int processCMD()
    {
        Owned<IClientWsPackageProcess> packageProcessClient = createCmdClient(WsPackageProcess, *this);
        StringBuffer pkgInfo;
        pkgInfo.loadFile(optFileName);

        fprintf(stdout, "\n ... adding package map %s now\n\n", optFileName.sget());

        Owned<IClientAddPackageRequest> request = packageProcessClient->createAddPackageRequest();
        request->setActivate(optActivate);
        request->setInfo(pkgInfo);
        request->setTarget(optTarget);
        request->setPackageMap(optPackageMapId);
        request->setProcess(optProcess);
        request->setDaliIp(optDaliIP);
        request->setOverWrite(optOverWrite);
        request->setGlobalScope(optGlobalScope);
        request->setSourceProcess(optSourceProcess);

        Owned<IClientAddPackageResponse> resp = packageProcessClient->AddPackage(request);
        if (resp->getExceptions().ordinality())
            outputMultiExceptions(resp->getExceptions());

        StringArray &notFound = resp->getFilesNotFound();
        if (notFound.length())
        {
            fputs("\nFiles defined in package but not found in DFS:\n", stderr);
            ForEachItemIn(i, notFound)
                fprintf(stderr, "  %s\n", notFound.item(i));
            fputs("\n", stderr);
        }

        return 0;
    }
開發者ID:AlexLuya,項目名稱:HPCC-Platform,代碼行數:34,代碼來源:ecl-package.cpp

示例7: waitForProducers

 //Wait for all active producers to complete - including calling stop on their inputs
 void waitForProducers()
 {
     producerStopSem.signal(numProducers);
     ForEachItemIn(i, threads)
         threads.item(i).join();
     threads.kill();
 }
開發者ID:kenrowland,項目名稱:HPCC-Platform,代碼行數:8,代碼來源:thorstrand.cpp

示例8: stopActiveProducers

 //Stop producers that have already been started()
 virtual void stopActiveProducers()
 {
     producerStopSem.signal(numProducers);
     ForEachItemIn(i, threads)
         threads.item(i).join();
     threads.kill();
 }
開發者ID:AvijitGhosh82,項目名稱:HPCC-Platform,代碼行數:8,代碼來源:thorstrand.cpp

示例9: getNumUniqueExpressions

unsigned getNumUniqueExpressions(const HqlExprArray & exprs)
{
    TransformMutexBlock block;
    ExpressionStatsInfo info;
    ForEachItemIn(i, exprs)
        calcNumUniqueExpressions(&exprs.item(i),info);
    return info.count;
}
開發者ID:aa0,項目名稱:HPCC-Platform,代碼行數:8,代碼來源:hqlusage.cpp

示例10: ForEachItemIn

void CCassandraLogAgent::createTable(const char *dbName, const char *tableName, StringArray& columnNames, StringArray& columnTypes, const char* keys)
{
    StringBuffer fields;
    ForEachItemIn(i, columnNames)
    fields.appendf("%s %s,", columnNames.item(i), columnTypes.item(i));

    VStringBuffer createTableSt("CREATE TABLE IF NOT EXISTS %s.%s (%s PRIMARY KEY (%s));", dbName, tableName, fields.str(), keys);
    executeSimpleStatement(createTableSt.str());
}
開發者ID:Michael-Gardner,項目名稱:HPCC-Platform,代碼行數:9,代碼來源:cassandralogagent.cpp

示例11: ForEachItemIn

void ScopeConsistencyChecker::checkConsistent(IHqlExpression * root, const HqlExprArray & _activeTables)
{
    ForEachItemIn(i, _activeTables)
        activeTables.append(OLINK(_activeTables.item(i)));
    if (root->isDataset())
        pushScope();
    analyse(root, 0);
    if (root->isDataset())
        popScope();
}
開發者ID:aa0,項目名稱:HPCC-Platform,代碼行數:10,代碼來源:hqlscope.cpp

示例12: ForEachItemIn

void CSlavePartMapping::getParts(unsigned i, IArrayOf<IPartDescriptor> &parts)
{
    if (local)
        i = 0;
    if (i>=maps.ordinality()) return;

    CSlaveMap &map = maps.item(i);
    ForEachItemIn(m, map)
        parts.append(*LINK(&map.item(m)));
}
開發者ID:LlsDimple,項目名稱:HPCC-Platform,代碼行數:10,代碼來源:thactivitymaster.cpp

示例13: ForEachItemIn

void LogicalGraphCreator::createLogicalGraph(HqlExprArray & exprs)
{
    graph.setown(createPTree("graph"));

//  beginSubGraph(NULL, false);
    ForEachItemIn(i, exprs)
        createRootGraphActivity(&exprs.item(i));
//  endSubGraph();
    wu->createGraph("Logical", NULL, GraphTypeEcl, graph.getClear(), 0);
}
開發者ID:HPCCSmoketest,項目名稱:HPCC-Platform,代碼行數:10,代碼來源:hqlgraph.cpp

示例14: ForEachItemIn

void LogicalGraphCreator::createLogicalGraph(HqlExprArray & exprs)
{
    graph.setown(createPTree("graph"));

//  beginSubGraph(NULL, false);
    ForEachItemIn(i, exprs)
        createRootGraphActivity(&exprs.item(i));
//  endSubGraph();

    Owned<IWUGraph> wug = wu->updateGraph("Logical");
    wug->setXGMMLTree(graph.getClear());
    wug->setType(GraphTypeEcl);
}
開發者ID:AlexLuya,項目名稱:HPCC-Platform,代碼行數:13,代碼來源:hqlgraph.cpp

示例15: queryHelper

void CDiskReadMasterBase::serializeSlaveData(MemoryBuffer &dst, unsigned slave)
{
    IHThorDiskReadBaseArg *helper = (IHThorDiskReadBaseArg *) queryHelper();
    dst.append(helper->getFileName());
    dst.append(subfileLogicalFilenames.ordinality());
    if (subfileLogicalFilenames.ordinality())
    {
        ForEachItemIn(s, subfileLogicalFilenames)
            dst.append(subfileLogicalFilenames.item(s));
    }
    if (mapping)
        mapping->serializeMap(slave, dst);
    else
        CSlavePartMapping::serializeNullMap(dst);
}
開發者ID:hszander,項目名稱:HPCC-Platform,代碼行數:15,代碼來源:thdiskbase.cpp


注:本文中的ForEachItemIn函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。