本文整理汇总了C++中BlockModel::metalib方法的典型用法代码示例。如果您正苦于以下问题:C++ BlockModel::metalib方法的具体用法?C++ BlockModel::metalib怎么用?C++ BlockModel::metalib使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlockModel
的用法示例。
在下文中一共展示了BlockModel::metalib方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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"))
{ }
示例2: ActionSow
ActionSow (const BlockModel& al)
: Action (al),
metalib (al.metalib ()),
crop (&al.model ("crop").clone ()),
// Use 'plant_distance' if set, otherwise use 'row_width'.
row_width (al.number ("plant_distance", al.number ("row_width"))),
// Use 'plant_distance' if set, otherwise use 'row_width'.
row_pos (al.number ("plant_position", al.number ("row_position"))),
seed (al.number ("seed", -42.42e42))
{ }
示例3: 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);
}
示例4: Program
ProgramGP2D (const BlockModel& al)
: Program (al),
metalib (al.metalib ()),
geo (submodel<GeometryRect> (al, "Geometry")),
row_width (al.number ("row_width")),
row_position (al.number ("row_position")),
soil_depth (al.number ("soil_depth")),
crop_depth (al.number ("crop_depth")),
crop_width (al.number ("crop_width")),
WRoot (al.number ("WRoot")),
DS (al.number ("DS"))
{ }