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


C++ BlockModel类代码示例

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


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

示例1: Rootdens

Rootdens_G_P::Rootdens_G_P (const BlockModel& al)
    : Rootdens (al),
      DensRtTip (al.number ("DensRtTip")),
      MinDens (al.number ("MinDens")),
      a (-42.42e42),
      L0 (-42.42e42)
{ }
开发者ID:perabrahamsen,项目名称:daisy-model,代码行数:7,代码来源:rootdens_G_P.C

示例2: addInputBlock

BlockGraph::BlockGraph(Project *project)
{
    // First look for all input blocks
    QPtrList<BlockNode> inputBlocks;
    for (QPtrListIterator<AbstractModel> it(*project->blocks()); it != 0;
         ++it) {

        BlockModel* block = dynamic_cast<BlockModel*>(*it);
        if (block != 0)  {
            if (!block->hasInputPins() && !block->hasEpisodicPins()) {
                addInputBlock(block);
            }
        }
    }

    // iterate through all pins
    QValueList<PinNode*> pins = nodeByPin_.values();
    for (QValueList<PinNode*>::Iterator it2 = pins.begin(); it2 != pins.end();
         ++it2) {

        QPtrList<PinNode> neighbours = (*it2)->neighbours();
        for (QPtrListIterator<PinNode> it3(neighbours); it3 != 0;
             ++it3) {

            if ((*it2)->parent() != (*it3)->parent()) {
                QPtrList<PinNode> seen;
                addBlockNeighbour(*it2, *it3, seen);
            }
        }
    }
}
开发者ID:BackupTheBerlios,项目名称:poa,代码行数:31,代码来源:blockgraph.cpp

示例3: PetPM

 // Create & Destroy.
 PetPM (const BlockModel& al)
   : Pet (al),
     net_radiation (Librarian::build_stock<NetRadiation> (al.metalib (),
                                                          al.msg (),
                                                          "brunt", objid)),
     rb (al.number ("rb"))
   { }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:8,代码来源:pet_PM.C

示例4: ReactionBoundrel

 explicit ReactionBoundrel (const BlockModel& al)
   : Reaction (al),
     immobile (al.name ("immobile")),
     bound (al.name ("bound", Attribute::None ())),
     colloid (al.name ("colloid")),
     release (0.0)
 { }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:7,代码来源:reaction_boundrel.C

示例5: PhotoGL

 PhotoGL (const BlockModel& al)
   : Photo (al),
     Qeff (al.number ("Qeff")),
     Fm (al.number ("Fm")),
     TempEff (al.plf ("TempEff")),
     DSEff (al.plf ("DSEff")),
     DAPEff (al.plf ("DAPEff"))
 { }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:8,代码来源:photo_GL.C

示例6: NumberSource

 NumberSource (const BlockModel& al)
   : Number (al),
     source (Librarian::build_item<Source> (al, "source")),
     begin (al.check ("begin") ? new Time (al.submodel ("begin")) : NULL),
     end (al.check ("end") ? new Time (al.submodel ("end")) : NULL),
     state (uninitialized),
     val (-42.42e42)
 { }
开发者ID:perabrahamsen,项目名称:daisy-model,代码行数:8,代码来源:number_source.C

示例7: Rootdens

Rootdens_AP::Rootdens_AP (const BlockModel& al)
  : Rootdens (al),
    a_DS (al.plf ("a_DS")),
    q (al.number ("q")),
    a (-42.42e42),
    L0 (-42.42e42)
  
{ }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:8,代码来源:rootdens_AP.C

示例8: Photo

PhotoFarquhar::PhotoFarquhar (const BlockModel& al)
  : Photo (al),
    Xn (al.number ("Xn")),
    Gamma25 (al.number ("Gamma25")),
    Ea_Gamma (al.number ("Ea_Gamma")),
    rubiscoNdist (Librarian::build_item<RubiscoNdist> (al, "N-dist")),
    Stomatacon (Librarian::build_item<StomataCon> (al, "Stomatacon"))
{ }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:8,代码来源:photo_Farquhar.C

示例9: ConditionMMDD

 ConditionMMDD (const BlockModel& al)
   : Condition (al),
     month (al.integer ("month")),
     day (al.integer ("day")),
     hour (al.integer ("hour")),
     minute (al.integer ("minute")),
     second (al.integer ("second"))
 { }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:8,代码来源:condition_time.C

示例10: EquilibriumGoal_A

 EquilibriumGoal_A (const BlockModel& al)
   : Equilibrium (al),
     goal_A_expr (Librarian::build_item<Number> (al, "goal_A")),
     min_B_expr (Librarian::build_item<Number> (al, "min_B")),
     A_solute (al.flag ("A_solute")),
     B_solute (al.flag ("B_solute")),
     debug_cell (al.integer ("debug_cell"))
 { }
开发者ID:perabrahamsen,项目名称:daisy-model,代码行数:8,代码来源:equil_goal.C

示例11: Chemistry

ChemistryMulti::ChemistryMulti (const BlockModel& al)
  : Chemistry (al),
    combine (Librarian::build_vector<Chemistry> (al, "combine")),
    ignore (al.name_sequence ("ignore")),
    max_sink_total (al.number ("max_sink_total")),
    max_sink_solute (al.number ("max_sink_solute")),
    max_sink_secondary (al.number ("max_sink_secondary")),
    min_sink_total (al.number ("min_sink_total")),
    chemicals (find_chemicals (combine))
{ }
开发者ID:perabrahamsen,项目名称:daisy-model,代码行数:10,代码来源:chemistry_multi.C

示例12: ActionWaitDays

 ActionWaitDays (const BlockModel& al)
   : Action (al),
     days (al.integer ("days")),
     hours (al.integer ("hours")),
     activated (al.check ("end_time")),
     end_time (1, 1, 1, 1)
 { 
   if (activated)
     end_time = Time (al.submodel ("end_time"));
 }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:10,代码来源:action_wait.C

示例13: Hydraulic

HydraulicM_vGp::HydraulicM_vGp (const BlockModel& al)
  : Hydraulic (al),
    alpha (al.number ("alpha")),
    a (-alpha),
    n (al.number ("n")),
    m (1 - 1 / n),
    l (al.number ("l")),
    M_ (),
    h_m (al.number ("h_m")),
    f (al.number ("f")),
    p_m_matrix (pow (1.0 / (-h_m * 1.0 + 1.0), f))
{ }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:12,代码来源:hydraulic_M_vGp.C

示例14: ActionRepeat

 ActionRepeat (const BlockModel& al)
   : Action (al),
     metalib (al.metalib ()),
     modified_frame (Action::frame (), FrameModel::parent_link),
     repeat (&al.model ("repeat").clone ()),
     action (al.check ("do") 
             ? Librarian::build_item<Action> (al, "do")
             : Librarian::build_item<Action> (al, "repeat"))
 { 
   if (!modified_frame.check ("do"))
     modified_frame.set ("do", *repeat);
 }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:12,代码来源:action_repeat.C

示例15: ProgramRS2WG

 ProgramRS2WG (const BlockModel& al)
   : Program (al),
     path (al.path ()),
     rshourly_origin (al.integer ("rshourly_origin"), 1, 1, 0),
     wgcycle_begin (al.integer ("wgcycle_begin"), 1, 1, 0),
     wgcycle_end (al.integer ("wgcycle_begin") + al.integer ("wgcycle_length"),
                  1, 1, 0),
     rshourly_file (al.name ("rshourly_file")),
     rsdaily_file (al.name ("rsdaily_file")),
     dwfhourly_file (al.name ("dwfhourly_file")),
     hint_file (al.name ("hint_file")),
     hlim (al.number_sequence ("hlim"))
 { }
开发者ID:perabrahamsen,项目名称:daisy-model,代码行数:13,代码来源:program_sbrdata.C


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