本文整理汇总了C++中OrderedTaskPointVector类的典型用法代码示例。如果您正苦于以下问题:C++ OrderedTaskPointVector类的具体用法?C++ OrderedTaskPointVector怎么用?C++ OrderedTaskPointVector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OrderedTaskPointVector类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Replace
void
OrderedTask::CheckDuplicateWaypoints(Waypoints& waypoints,
OrderedTaskPointVector& points,
const bool is_task)
{
for (auto begin = points.cbegin(), end = points.cend(), i = begin;
i != end; ++i) {
auto wp = waypoints.CheckExistsOrAppend((*i)->GetWaypointPtr());
const OrderedTaskPoint *new_tp =
(*i)->Clone(task_behaviour, ordered_settings, std::move(wp));
if (is_task)
Replace(*new_tp, std::distance(begin, i));
else
ReplaceOptionalStart(*new_tp, std::distance(begin, i));
delete new_tp;
}
}
示例2: assert
gcc_pure
OrderedTaskPoint &GetPoint(const unsigned i) {
assert(i < task_points.size());
assert(task_points[i] != nullptr);
return *task_points[i];
}
示例3: assert
gcc_pure
const OrderedTaskPoint &GetPoint(const unsigned i) const {
assert(i < task_points.size());
assert(task_points[i] != NULL);
return *task_points[i];
}
示例4: TaskSize
/* virtual methods from class TaskInterface */
virtual unsigned TaskSize() const override {
return task_points.size();
}
示例5: GetOptionalStartPointCount
/**
* @return number of optional start poitns
*/
gcc_pure
unsigned GetOptionalStartPointCount() const {
return optional_start_points.size();
}
示例6: IsValidIndex
/**
* Check whether the task point with the specified index exists.
*/
gcc_pure
bool IsValidIndex(unsigned i) const {
return i < task_points.size();
}
示例7: HasOptionalStarts
/**
* Returns true if there are optional start points.
*/
gcc_pure
bool HasOptionalStarts() const {
return !optional_start_points.empty();
}
示例8: optional_start_points_size
/**
* @return number of optional start poitns
*/
gcc_pure
unsigned optional_start_points_size() { return optional_start_points.size(); }