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


C++ details函数代码示例

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


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

示例1: ilInjector

void
SimplifierFoldAndTest::compileTestMethods()
   {
   int32_t rc = 0;

   TR::TypeDictionary types;

   TR::IlType* Int32 = types.PrimitiveType(TR::Int32);
   TR::IlType* Int64 = types.PrimitiveType(TR::Int64);

   int32_t numberOfArguments = 1;

   TR::IlType** argTypes = new TR::IlType*[numberOfArguments]
   {
      Int32
   };

   SimplifierFoldAndIlInjector ilInjector(&types, this);

   TR::ResolvedMethod compilee(__FILE__, LINETOSTR(__LINE__), "simplifierFoldAnd", numberOfArguments, argTypes, Int64, 0, &ilInjector);

   TR::IlGeneratorMethodDetails details(&compilee);

   testCompiledMethod = reinterpret_cast<SimplifierFoldAndTest::TestCompiledMethodType>(compileMethod(details, warm, rc));
   }
开发者ID:TianyuZuo,项目名称:omr,代码行数:25,代码来源:SimplifierFoldAndTest.cpp

示例2: CORAL_THROW

void Requestor::requestSynchCall( MemberOwner& owner, co::IMethod* method, 
                                           co::Slice<co::Any> args, const co::Any& ret )
{
    if( !_connected )
        CORAL_THROW( RemotingException, "Trying to request with the node stopped");
    
    InvocationDetails details( owner.instanceID, owner.facetID, method->getIndex(), 
                              owner.inheritanceDepth, true );
    ParameterPusher& pusher = _marshaller.beginInvocation( _publicEndpoint, details );
    
    pushParameters( method, args, pusher );
    
    std::string msg;
    _marshaller.marshalInvocation( msg );

    _handler->handleSynchRequest( msg, msg );

	MessageType msgType = _demarshaller.demarshal( msg );
    
    if( msgType == EXCEPTION )
        raiseReturnedException( _demarshaller );
    
	ParameterPuller& puller = _demarshaller.getOutput();

	if( method->getReturnType() )
		getReturn( puller, method->getReturnType(), ret );

	co::TSlice<co::IParameter*> params = method->getParameters();
	for( int i = 0; i < params.getSize(); i++ )
	{
		if( params[i]->getIsOut() )
			getReturn( puller, params[i]->getType(), args[i] );
	}
}
开发者ID:coral-framework,项目名称:coral-reef,代码行数:34,代码来源:Requestor.cpp

示例3: main

int main(void)
{
    printf("This program finds the number of spaces, newline characters"
           "\n and other characters in a given input");
    printf("Please enter the input line to be analyzed:\n");
    char ch; int n_space = 0; int nn_line = 0; int n_ch = 0;

    while((ch = getchar()) != '#')
    {

        if(ch == SPACE)
        {
            n_space++;
        }
        else if(ch == NEWLINE)
        {
            nn_line++;
        }
        else
        {
            n_ch++;
        }

    }
    printf("Spaces = %d, Newlines = %d, Other Characters = %d\n",
            n_space, nn_line, n_ch);

    details();
    return 0;
}
开发者ID:manishthatte,项目名称:c,代码行数:30,代码来源:p7.1.c

示例4: main

int main(void)
{
    printf("This program analyzes a file into uppercase, lowercase "
           "and other characters.\n");
    printf("Please input the file name:\n");
    int i_u = 0; int i_l = 0; int i_o = 0; FILE *fp; char ch; char fname[80];
    scanf("%s", &fname);
    fp = fopen(fname, "r");
    if((ch = getc(fp)) == NULL)
    {
        printf("File not accessible.\n");
        exit(1);
    }
    while((ch = getc(fp)) != EOF)
    {
        if(isupper(ch))
            i_u++;
        else if(islower(ch))
            i_l++;
        else
            i_o++;
    }
    printf("Number of upper case letters is %d, number of"
           "\nlower case letters is %d and number of other characters is %d.", i_u, i_l, i_o);
    printf("\n");
    details();
    return 0;
}
开发者ID:manishthatte,项目名称:c,代码行数:28,代码来源:p8.3.c

示例5: GetMythMainWindow

bool ViewScheduled::keyPressEvent(QKeyEvent *event)
{
    // FIXME: Blackholes keypresses, not good
    if (m_inEvent)
        return true;

    m_inEvent = true;

    if (GetFocusWidget()->keyPressEvent(event))
    {
        m_inEvent = false;
        return true;
    }

    bool handled = false;
    QStringList actions;
    handled = GetMythMainWindow()->TranslateKeyPress("TV Frontend", event,
                                                     actions);

    for (int i = 0; i < actions.size() && !handled; i++)
    {
        QString action = actions[i];
        handled = true;

        if (action == "EDIT")
            edit();
        else if (action == "CUSTOMEDIT")
            customEdit();
        else if (action == "DELETE")
            deleteRule();
        else if (action == "UPCOMING")
            upcoming();
        else if (action == "VIEWSCHEDULED")
            upcomingScheduled();
        else if (action == "DETAILS" || action == "INFO")
            details();
        else if (action == "1")
            setShowAll(true);
        else if (action == "2")
            setShowAll(false);
        else if (action == "PREVVIEW" || action == "NEXTVIEW")
            setShowAll(!m_showAll);
        else if (action == "VIEWCARD")
            viewCards();
        else if (action == "VIEWINPUT")
            viewInputs();
        else
            handled = false;
    }

    if (m_needFill)
        LoadList();

    if (!handled && MythScreenType::keyPressEvent(event))
        handled = true;

    m_inEvent = false;

    return handled;
}
开发者ID:stunami,项目名称:mythtv,代码行数:60,代码来源:viewscheduled.cpp

示例6: show_weather

void show_weather()
{
	int i;
	for(i = 0; i < 8; i++)
	{
		put_line(1);
		put_line(6);
		footer();

		details(DAYS[i].day, DAYS[i].temp, DAYS[i].wind_f, DAYS[i].wind_d, DAYS[i].state, i);

		if(strcmp(DAYS[i].state, "SLONECZNIE"))
			put_image(slo1, slo2);
		else
		if(strcmp(DAYS[i].state, "PRZEWAZNIE SLONECZNIE"))
			put_image(prz_slo1, prz_slo2);
		else
		if(strcmp(DAYS[i].state, "ZMIENNE ZACHMURZENIE"))
			put_image(zach_zm1, zach_zm2);
		else
		if(strcmp(DAYS[i].state, "ZACHMURZENIE PELNE, SLABY DESZCZ"))
			put_image(sd1, sd2);

		ClearScreen();
	}
}
开发者ID:KoksuMichu,项目名称:GitHub,代码行数:26,代码来源:display.c

示例7: DLTRACEIN

void CNcdProtocolDefaultObserver::ClientConfigurationL( 
    MNcdConfigurationProtocolClientConfiguration* aConfiguration ) 
    {
    DLTRACEIN((""));
    CleanupDeletePushL( aConfiguration );

    // Should interpret details to grab master server validity information, 
    // for example

    // pass cookies to cookie handler
    TInt cookieCount = aConfiguration->CookieCount();
    DLINFO(("cookie count=%d",cookieCount));
    
    // Get SSID
    const TDesC8& ssid( iConfigurationManager.SsidL( iContext ) );
    
    MNcdServerDetails& details( 
        iConfigurationManager.ServerDetailsL( iContext, 
        *iServerUri,
        NcdProviderDefines::KConfigNamespace ));

    
    for ( TInt i = 0; i < cookieCount; ++i ) 
        {
        const MNcdConfigurationProtocolCookie& cookie( 
            aConfiguration->CookieL( i ) );
        details.AddCookieL( cookie, ssid );
        }

    CleanupStack::PopAndDestroy( aConfiguration );
    DLTRACEOUT((""));
    }
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:32,代码来源:ncdprotocoldefaultobserverimpl.cpp

示例8: result

ScriptValue PaymentResponse::toJSONForBinding(ScriptState* scriptState) const {
  V8ObjectBuilder result(scriptState);
  result.addString("methodName", methodName());
  result.add("details", details(scriptState, ASSERT_NO_EXCEPTION));

  if (shippingAddress())
    result.add("shippingAddress",
               shippingAddress()->toJSONForBinding(scriptState));
  else
    result.addNull("shippingAddress");

  if (shippingOption().isNull())
    result.addNull("shippingOption");
  else
    result.addString("shippingOption", shippingOption());

  if (payerEmail().isNull())
    result.addNull("payerEmail");
  else
    result.addString("payerEmail", payerEmail());

  if (payerPhone().isNull())
    result.addNull("payerPhone");
  else
    result.addString("payerPhone", payerPhone());

  return result.scriptValue();
}
开发者ID:ollie314,项目名称:chromium,代码行数:28,代码来源:PaymentResponse.cpp

示例9: main

int main(void)
{
    printf("This program takes 2 floating-point numbers and prints "
           "the value of their difference divided by their product.\n");
    printf("Please enter first and second numbers (Enter q to quit):\n");
    float x; float y;
    while(scanf("%f %f", &x, &y) == 2)
    {
        if (x > y)
        {
            printf("The result is %f\n", (x-y) / (x*y));
        }
        else
        {
            printf("The result is %f\n", (y-x) / (x*y));
        }
        printf("Please enter first and second numbers if you wish to calculate some more (Enter q to quit):\n");
        scanf("%f %f", &x, &y);

    }


    details();
    return 0;
}
开发者ID:manishthatte,项目名称:c,代码行数:25,代码来源:p6.8.c

示例10: scriptingEnv

/**
 * Open a file
 * @param newtab :: If true, a new tab will be created
 * @param filename :: An optional file name
 */
void MultiTabScriptInterpreter::open(bool newtab, const QString & filename)
{
  QString fileToOpen = filename;
  if( fileToOpen.isEmpty() )
  {
    QString filter = scriptingEnv()->fileFilter();
    filter += tr("Text") + " (*.txt *.TXT);;";
    filter += tr("All Files")+" (*)";
    fileToOpen = QFileDialog::getOpenFileName(this, tr("MantidPlot - Open a script from a file"),
        m_last_dir, filter);
    if( fileToOpen.isEmpty() )
    {
      return;
    }
  }
  else
  {
    QFileInfo details(fileToOpen);
    fileToOpen = details.absoluteFilePath();
  }

  //Save last directory
  m_last_dir = QFileInfo(fileToOpen).absolutePath();

  int index(-1);
  if( !newtab ) index = closeCurrentTab();
  newTab(index, fileToOpen);

  //update the recent scripts menu 
  updateRecentScriptList(fileToOpen);

}
开发者ID:jkrueger1,项目名称:mantid,代码行数:37,代码来源:MultiTabScriptInterpreter.cpp

示例11: dialog

void NewGameTab::editImageProperties()
{
	QListWidgetItem* item = m_images->currentItem();
	if (!item || item->isHidden()) {
		return;
	}

	QString filename = item->data(ImageRole).toString();
	ImagePropertiesDialog dialog(item->icon(), item->text(), m_image_tags, filename, window());
	if (dialog.exec() == QDialog::Accepted) {
		// Update name
		item->setText(dialog.name());
		if (item->text() != item->data(NameRole).toString()) {
			item->setData(NameRole, item->text());

			QSettings details(Path::image("details"), QSettings::IniFormat);
			details.setValue(filename + "/Name", item->text());
			emit imageRenamed(filename, item->text());

			m_images->sortItems();
			m_images->scrollToItem(item);
		}

		// Update tags
		item->setData(TagsRole, m_image_tags->tags(item->data(ImageRole).toString()));
		updateToolTip(item);

	}
}
开发者ID:gottcode,项目名称:tetzle,代码行数:29,代码来源:new_game_tab.cpp

示例12: details

/**
 * @brief Compiles the method.
 *
 * This is called by Verify() and VerifiyAndInvoke().
 * The default implementation gets a #ResolvedMethod from #MethodInfo,
 * adds the IlVerifier, then compiles the method.
 */
void TestCompiler::OptTestDriver::compileTestMethods()
   {
   TR::ResolvedMethod resolvedMethod = _methodInfo->ResolvedMethod();
   TR::IlGeneratorMethodDetails details(&resolvedMethod);
   details.setIlVerifier(_ilVer);

   int32_t rc = 0;
   _compiledMethod = compileMethod(details, warm, rc);
   }
开发者ID:rwy0717,项目名称:omr,代码行数:16,代码来源:OptTestDriver.cpp

示例13: kspio_handshake

void kspio_handshake() {
	sbi(KSPIO_LED_DATA_PORT, KSPIO_GLED);

	kspio_hPacket.id = 0;
	kspio_hPacket.M1 = 3;
	kspio_hPacket.M2 = 1;
	kspio_hPacket.M3 = 4;

	kspio_boardSendData(details(kspio_hPacket));
}
开发者ID:madlemur,项目名称:avr_KSPIO,代码行数:10,代码来源:kspio.c

示例14: resolvedMethod

int32_t
TestDriver::compileMethodBuilder(TR::MethodBuilder *m, uint8_t ** entry)
   {
   TR::ResolvedMethod resolvedMethod(m);
   TR::IlGeneratorMethodDetails details(&resolvedMethod);

   int32_t rc=0;
   *entry = (uint8_t *) compileMethod(details, warm, rc);
   return rc;
   }
开发者ID:TianyuZuo,项目名称:omr,代码行数:10,代码来源:TestDriver.cpp

示例15: compileMethod

uint8_t *
compileMethod(
      OMR_VMThread *omrVMThread,
      TR_ResolvedMethod &compilee,
      TR_Hotness hotness,
      int32_t &rc)
   {
   TR::IlGeneratorMethodDetails details(&compilee);
   return compileMethodFromDetails(omrVMThread, details, hotness, rc);
   }
开发者ID:lmaisons,项目名称:omr,代码行数:10,代码来源:CompileMethod.cpp


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