本文整理汇总了C++中Checker::addChecker方法的典型用法代码示例。如果您正苦于以下问题:C++ Checker::addChecker方法的具体用法?C++ Checker::addChecker怎么用?C++ Checker::addChecker使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Checker
的用法示例。
在下文中一共展示了Checker::addChecker方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getChecker
Checker* ThermalModelSimple::getChecker() const
{
Checker *check = ThermalModel::getChecker();
check->addBlock("updraft", new OneOrMore());
check->addChecker("updraft", Updraft::getChecker());
return check;
}
示例2: Checker
Checker *ControllerSimpleGlider::controllerFileChecker() const {
//! \Note Dummy
Checker *ret = new Checker();
ret->addProperty("speed", new NTimes(1));
ret->addProperty("min_wp_dist", new NTimes(1));
ret->addBlock("flight_plan", new NTimes(1));
FlightPlan fp;
ret->addChecker("flight_plan", fp.getFlightPlanChecker());
return ret;
}
示例3: getConfigChecker
Checker* CostConfig::getConfigChecker()
{
Checker *check = new Checker;
check->addProperty("population", new NTimes(1));
check->addProperty("generations", new NTimes(1));
check->addProperty("waypoint_dimension", new NTimes(1));
check->addProperty("intermediate_waypoints", new NTimes(1));
Checker *bound_checker = new Checker;
bound_checker->addProperty("upper", new NTimes(1));
bound_checker->addProperty("lower", new NTimes(1));
check->addBlock("bounds", new NTimes(1));
check->addChecker("bounds", bound_checker);
Checker *cost_check = new Checker;
cost_check->addProperty("distance", new NTimes(1));
cost_check->addProperty("collision_penalty", new NTimes(1));
check->addChecker("cost", cost_check);
check->addBlock("cost", new NTimes(1));
return check;
}