本文整理汇总了C++中Mapping::set_is_reverse方法的典型用法代码示例。如果您正苦于以下问题:C++ Mapping::set_is_reverse方法的具体用法?C++ Mapping::set_is_reverse怎么用?C++ Mapping::set_is_reverse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mapping
的用法示例。
在下文中一共展示了Mapping::set_is_reverse方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: create_snp_path
void Caller::create_snp_path(int64_t snp_node, bool secondary_snp) {
// for now we don't write secdonary snp, so we have 1 path per *site*
// and counting paths will give us somethign comparable to snp count
// from bcftools
if (!secondary_snp) {
stringstream name;
name << "SNP_" << snp_node;
Mapping mapping;
Position* pos = mapping.mutable_position();
// make path that covers node forward with no edits. not super
// useful but will use to count snps...
pos->set_node_id(snp_node);
pos->set_offset(0);
mapping.set_is_reverse(false);
// note: create_path doesn't seem to work.. too rushed to look into
//list<Mapping>& mappings = _call_graph.paths.create_path(name.str());
list<Mapping> mappings;
mappings.push_back(mapping);
_call_graph.paths._paths.insert(make_pair(name.str(), mappings));
}
}