本文整理汇总了C++中Segment::GetFeatureId方法的典型用法代码示例。如果您正苦于以下问题:C++ Segment::GetFeatureId方法的具体用法?C++ Segment::GetFeatureId怎么用?C++ Segment::GetFeatureId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Segment
的用法示例。
在下文中一共展示了Segment::GetFeatureId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DebugPrint
inline std::string DebugPrint(Segment const & segment)
{
std::ostringstream out;
out << std::boolalpha << "Segment(" << segment.GetMwmId() << ", " << segment.GetFeatureId() << ", "
<< segment.GetSegmentIdx() << ", " << segment.IsForward() << ")";
return out.str();
}
示例2: GetTwinFeature
void CrossMwmGraph::GetTwinFeature(Segment const & segment, bool isOutgoing, vector<Segment> & twins)
{
std::vector<uint32_t> const & transitSegmentIds =
m_crossMwmIndexGraph.GetTransitSegmentId(segment.GetMwmId(), segment.GetFeatureId());
for (auto transitSegmentId : transitSegmentIds)
{
Segment const transitSegment(segment.GetMwmId(), segment.GetFeatureId(),
transitSegmentId, segment.IsForward());
if (!IsTransition(transitSegment, isOutgoing))
continue;
GetTwins(transitSegment, isOutgoing, twins);
break;
}
}
示例3: IsRealSegment
// Can not check segment for fake or not with segment.IsRealSegment(), because all segments
// have got fake m_numMwmId during mwm generation.
bool IsRealSegment(Segment const & segment) const
{
return segment.GetFeatureId() != FakeFeatureIds::kIndexGraphStarterId;
}