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


C++ Sink::noOutput方法代码示例

本文整理汇总了C++中Sink::noOutput方法的典型用法代码示例。如果您正苦于以下问题:C++ Sink::noOutput方法的具体用法?C++ Sink::noOutput怎么用?C++ Sink::noOutput使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sink的用法示例。


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

示例1: _UnixDo

void _UnixDo(Source & so,Sink & si) {
  stringGB s;
  so >> s;
  so.shouldBeEnd();
  si.noOutput();
  system(s.value().chars());
};
开发者ID:lolmid,项目名称:2015-2016,代码行数:7,代码来源:General.cpp

示例2: _GroebnerCutOffSum

void _GroebnerCutOffSum(Source & so,Sink & si) {
  int n;
  so >> n;
  so.shouldBeEnd();
  si.noOutput();
  run->setSumNumberCutOff(n);
};
开发者ID:mcdeoliveira,项目名称:NC,代码行数:7,代码来源:p7aux.cpp

示例3: _GroebnerCutOffFlag

void _GroebnerCutOffFlag(Source & so,Sink & si) {
  int n;
  so >> n;
  so.shouldBeEnd();
  run->setCutOffFlag(n!=0);
  si.noOutput();
};
开发者ID:mcdeoliveira,项目名称:NC,代码行数:7,代码来源:p7aux.cpp

示例4: _SetWreathOrder

void _SetWreathOrder(Source & so,Sink & si) {
  stringGB name;
  list<stringGB> L;
  so >> name;
  GBInputSpecial(L,so);
  T * p = Name2Instance<AdmissibleOrder>::s_find(name);
  if(!p) {
    vector<vector<Variable> > VARS;
    vector<AdmissibleOrder *> ORDS;
    typedef list<stringGB>::const_iterator LI;
    LI w = L.begin(), e = L.end();
    AdmissibleOrder * q;
    while(w!=e) {
      q = Name2Instance<AdmissibleOrder>::s_find((*w).value());
      ORDS.push_back(q);
      ++w;
    };
    DBG();
    p = new WreathOrder(VARS,ORDS);
    Name2Instance<AdmissibleOrder>::s_add(name,p);
  };
  GBInput(*p,so);
  so.shouldBeEnd();
  si.noOutput();
};
开发者ID:lolmid,项目名称:2015-2016,代码行数:25,代码来源:p20aux.c

示例5: _RunGBAlg

void _RunGBAlg(Source & source,Sink & sink) {
  asStringGB name;
  source >> name;
  source.shouldBeEnd();
  sink.noOutput();
  GBALG_STORAGE::const_iterator w = gbalg_storage.find(name.value());
  if(w==gbalg_storage.end()) DBG();
  (*w).second->perform();
};
开发者ID:mcdeoliveira,项目名称:NC,代码行数:9,代码来源:ProgrammableSymbol.c

示例6: _CppTeXTheFile

void _CppTeXTheFile(Source & so,Sink & si) {
  stringGB format;
  so >> format;
  StringAccumulator x;
  x.add(PlatformSpecific::s_latex_command());
  x.add(format.value().chars());
  so.shouldBeEnd();
  si.noOutput();
  system(x.chars());
};
开发者ID:lolmid,项目名称:2015-2016,代码行数:10,代码来源:ConstructSheets.c

示例7: _ShowTeX

void _ShowTeX(Source & so,Sink & si) {
  stringGB format;
  so >> format;
  StringAccumulator x;
  x.add(PlatformSpecific::s_dvi_viewer());
  x.add(format.value().chars());
  x.add(PlatformSpecific::s_background());
  so.shouldBeEnd();
  si.noOutput();
  system(x.chars());
};
开发者ID:lolmid,项目名称:2015-2016,代码行数:11,代码来源:ConstructSheets.c

示例8: _registerStartingRelations

void _registerStartingRelations(Source & so,Sink & si) {
  int m;
  so >> m;
  so.shouldBeEnd();
  int id = BaRoutineFactory::s_getCurrent().ID();
  if(false) {
  }
#ifdef WANT_MNGRSUPER
  else if(id==PDRoutineFactory::s_ID) {
    ((MngrSuper *)run)->RegisterStartingRelations(m);
  }
#endif
  si.noOutput();
} /* _registerStartingRelations */
开发者ID:mcdeoliveira,项目名称:NC,代码行数:14,代码来源:p7aux.cpp

示例9: _namedRegisterStartingRelations

void _namedRegisterStartingRelations(Source & so,Sink & si) {
  stringGB item_name;
  so >> item_name;
  so.shouldBeEnd();
  si.noOutput();
  GBList<Polynomial>*  p =
     Pools<GBList<Polynomial> >::s_lookup_error(GBStream,item_name.value());
  if(p) {
    registerStartingRelationsHelper(*p);
  } else {
    GBStream << "There is no GBList of polynomials called \""
             << item_name << "\"\n";
  };
};
开发者ID:lolmid,项目名称:2015-2016,代码行数:14,代码来源:namedStarting.c

示例10: _DeclareProgrammableVariableNotDefault

void _DeclareProgrammableVariableNotDefault(Source & so,Sink & sink) {
  asStringGB type, name;
  so >> type >> name;
  TYPEINFO::const_iterator w = d_type_info.find(type.value());
  if(w==d_type_info.end()) {
    GBStream << "Cannot find the type " << type.value() << "\n";
    DBG();
  };
  d_name_to_type[name.value()] = type.value();
  void (*func)(const simpleString &,Source & so) = (*w).second.d_construct_not_default;
  if(!func) DBG();
  func(name.value(),so);
  so.shouldBeEnd();
  sink.noOutput();
};
开发者ID:mcdeoliveira,项目名称:NC,代码行数:15,代码来源:ProgrammableSymbol.c

示例11: _PrintProgrammableVariable

void _PrintProgrammableVariable(Source & so,Sink & si) {
  asStringGB name;
  so >> name;
  NAME2TYPE::const_iterator w = d_name_to_type.find(name.value());
  if(w==d_name_to_type.end()) {
    GBStream << name.value() << " is not a programmable variable"
             << " and, therefore, cannot be printed.\n";
  } else {
    TYPEINFO::const_iterator ww = d_type_info.find((*w).second);
    void (*func)(const simpleString &,MyOstream &) = (*ww).second.d_print;
    if(!func) DBG();
    func(name.value(),GBStream);
  };
  so.shouldBeEnd();
  si.noOutput();
};
开发者ID:mcdeoliveira,项目名称:NC,代码行数:16,代码来源:ProgrammableSymbol.c

示例12: _ConstructSheets

void _ConstructSheets(Source & so,Sink & si) {
  simpleString filename("build_output.tex");
  ofstream output(filename.chars());
  MyOstream output2(output);
#ifdef WANT_MNGRADAPTER
  PartialGB & pgb = (PartialGB &) ((ManagerAdapter *)run)->PARTIALGB();
  Spreadsheet x(pgb,AdmissibleOrder::s_getCurrent());
#endif
#ifdef WANT_MNGRSUPER
    FactControl & fc = 
        (FactControl &) ((MngrSuper *)run)->GetFactBase();
//    GBStream << fc;
#if 1
    const GBList<int> VEC(fc.indicesOfPermanentFacts());
    GBList<int>::const_iterator VECB = VEC.begin();
    vector<GroebnerRule> vec;
    const int VECSZ = VEC.size();
    vec.reserve(VECSZ);
    for(int iii=1;iii<=VECSZ;++iii,++VECB) {
      vec.push_back(fc.fact(*VECB));
    };
    Sheet1 x(vec,AdmissibleOrder::s_getCurrent());
#else
    Spreadsheet x(fc,AdmissibleOrder::s_getCurrent());
    x.uglyprint(GBStream);
#endif
    TeXSink tex_sink(output2);
#if 0
    TeX1Display tester(tex_sink,x,AdmissibleOrder::s_getCurrent());
#endif
#if 0
    list<GroebnerRule> L;
    copy(x.d_rules.begin(),x.d_rules.end(),back_inserter(L));
    TeX2Display tester(tex_sink,L,AdmissibleOrder::s_getCurrent());
#endif
#if 1
    TeX3Display tester(tex_sink,x,AdmissibleOrder::s_getCurrent());
#endif
    tester.perform();
#endif
  GBStream << '\n';
  so.shouldBeEnd();
  si.noOutput();
  os.flush();
  output.close();
};
开发者ID:lolmid,项目名称:2015-2016,代码行数:46,代码来源:ConstructSheets.c

示例13: _SetUpProgrammableSymbols

void _SetUpProgrammableSymbols(Source &so,Sink & si) {
  so.shouldBeEnd();
  si.noOutput();
  { 
    AuxilaryProgrammableSymbolData x(construct_int,remove_int,print_int,
        input_int,output_int);
    simpleString I("int");
    d_type_info.insert(make_pair(I,x));
  }
  {
    AuxilaryProgrammableSymbolData x(construct_mlex,remove_order,
            print_mlex,do_nothing,do_nothing);
    simpleString I("mlex");
    d_type_info.insert(make_pair(I,x));
  }
  {
    AuxilaryProgrammableSymbolData x(construct_reduce_adm,remove_reduce,
        print_reduce,do_nothing,do_nothing);
    simpleString I("admreduction");
    d_type_info.insert(make_pair(I,x));
  }
  {
    AuxilaryProgrammableSymbolData x(construct_ruleset_adm,
       remove_ruleset,print_ruleset,do_nothing,do_nothing);
    simpleString I("admruleset");
    d_type_info.insert(make_pair(I,x));
  }
  {
    AuxilaryProgrammableSymbolData x(construct_polyset_adm,remove_polyset,
          print_polyset_adm,do_nothing,do_nothing);
    simpleString I("admpolyset");
    d_type_info.insert(make_pair(I,x));
  }
  {
    AuxilaryProgrammableSymbolData x(construct_stdgbalg,remove_gbalg,
         print_gbalg,do_nothing,do_nothing);
    simpleString I("standardgbalgorithm");
    d_type_info.insert(make_pair(I,x));
  }
};
开发者ID:mcdeoliveira,项目名称:NC,代码行数:40,代码来源:ProgrammableSymbol.c

示例14: _TestMarker

void _TestMarker(Source & so,Sink & si) {
  so.shouldBeEnd();
  si.noOutput();
};
开发者ID:mcdeoliveira,项目名称:NC,代码行数:4,代码来源:TestMarker.cpp

示例15: _setNumbersForHistory

void _setNumbersForHistory(Source & so,Sink & si) {
  numbersForHistory.clear();
  GBInput(numbersForHistory,so);
  so.shouldBeEnd();
  si.noOutput();
};
开发者ID:mcdeoliveira,项目名称:NC,代码行数:6,代码来源:p7aux.cpp


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