本文整理汇总了C++中Proc::endLine方法的典型用法代码示例。如果您正苦于以下问题:C++ Proc::endLine方法的具体用法?C++ Proc::endLine怎么用?C++ Proc::endLine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Proc
的用法示例。
在下文中一共展示了Proc::endLine方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MakeAttrStr
string
Alien::toXML(uint oFlags) const
{
string self = ANode::toXML(oFlags)
+ " f" + MakeAttrStr(m_filenm) + " n" + MakeAttrStr(m_displaynm);
self = self + " " + XMLLineRange(oFlags) + " " + XMLVMAIntervals(oFlags);
// add information on the function definition
// If the alien has an ancestor and the same procedure definition exists,
// we'll add an attribute 'ln' to point to the ID of the function definition.
// This is needed to inform hpcprof that the alien shouldn't be considered
// as different function.
// 1a: get the load module of the alien
LM *lm = ancestorLM();
// 1b: check if the alien has the file pointer to its definition
File *file = lm->findFile(m_filenm);
if (file) {
// 2: check if there's the same procedure name in the file
Proc *proc = file->findProc(m_displaynm);
if (proc) {
#if 0
// 3: check if alien's line range is within the function definition
bool inc = SrcFile::include(proc->begLine(), proc->endLine(), begLine(), endLine());
if (inc) {
// 4: add the link attribute to the function definition
self = self + " ln" + xml::MakeAttrStr(StrUtil::toStr(proc->id()));
}
#endif
self = self + " ln" + xml::MakeAttrStr(StrUtil::toStr(proc->id()));
}
}
return self;
}