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


C++ BlockModel::submodel方法代码示例

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


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

示例1: 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

示例2: 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

示例3: anisotropy

Horizon::Implementation::Implementation (const BlockModel& al)
  : dry_bulk_density (al.number ("dry_bulk_density", -42.42e42)),
    SOM_C_per_N (al.number_sequence ("SOM_C_per_N")),
    C_per_N (al.number ("C_per_N", -42.42e42)),
    SOM_fractions (al.check ("SOM_fractions") 
                   ? al.number_sequence ("SOM_fractions")
                   : std::vector<double> ()),
    turnover_factor (al.number ("turnover_factor")),
    anisotropy (al.number ("anisotropy")),
    attributes (get_attributes (al.submodel_sequence ("attributes"))),
    dimensions (get_dimensions (al.submodel_sequence ("attributes"))),
    nitrification (Librarian::build_item<Nitrification> (al, "Nitrification")),
    secondary (Librarian::build_item<Secondary> (al, "secondary_domain")),
    r_pore_min (al.number ("r_pore_min")),
    primary_sorption_fraction (NAN),
    hor_heat (al.submodel ("HorHeat")),
    CEC (al.number ("CEC", -42.42e42))
{ }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:18,代码来源:horizon.C

示例4: ConditionAfter

 ConditionAfter (const BlockModel& al)
   : Condition (al),
     time (al.submodel ("time"))
 { }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:4,代码来源:condition_time.C

示例5: ConditionBefore

 ConditionBefore (const BlockModel& al)
   : Condition (al),
     time (al.submodel ("time"))
 { }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:4,代码来源:condition_time.C

示例6: ActionRidge

 ActionRidge (const BlockModel& al)
   : Action (al),
     ridge (al.submodel ("ridge"))
   { }
开发者ID:pamoakoy,项目名称:daisy-model,代码行数:4,代码来源:action_ridge.C


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