Change function names
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
80bef9de09
commit
b4cba3844d
|
|
@ -71,8 +71,8 @@ public:
|
|||
bool unlink() const { return m_unlink; }
|
||||
string writeFile() const { return m_writeFile; }
|
||||
string writeInfoFile() const { return m_writeInfoFile; }
|
||||
bool isTypeOk(const char* name) const {
|
||||
return m_filterType == "" || m_filterType == VlcPoint::type(name);
|
||||
bool isTypeMatch(const char* name) const {
|
||||
return m_filterType == "" || m_filterType == VlcPoint::typeExtract(name);
|
||||
}
|
||||
|
||||
// METHODS (from main)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public:
|
|||
string filename() const { return keyExtract(VL_CIK_FILENAME, m_name.c_str()); }
|
||||
string comment() const { return keyExtract(VL_CIK_COMMENT, m_name.c_str()); }
|
||||
string hier() const { return keyExtract(VL_CIK_HIER, m_name.c_str()); }
|
||||
string type() const { return type(m_name.c_str()); }
|
||||
string type() const { return typeExtract(m_name.c_str()); }
|
||||
string thresh() const {
|
||||
// string as maybe ""
|
||||
return keyExtract(VL_CIK_THRESH, m_name.c_str());
|
||||
|
|
@ -79,7 +79,7 @@ public:
|
|||
return std::atoi(columnStr.c_str());
|
||||
}
|
||||
// METHODS
|
||||
static string type(const char* name) { return keyExtract(VL_CIK_TYPE, name); }
|
||||
static string typeExtract(const char* name) { return keyExtract(VL_CIK_TYPE, name); }
|
||||
static string keyExtract(const char* shortKey, const char* name) {
|
||||
// Hot function
|
||||
const size_t shortLen = std::strlen(shortKey);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ void VlcTop::readCoverage(const string& filename, bool nonfatal) {
|
|||
if (line[secspace] == '\'' && line[secspace + 1] == ' ') break;
|
||||
}
|
||||
const string point = line.substr(3, secspace - 3);
|
||||
if (!opt.isTypeOk(point.c_str())) continue;
|
||||
if (!opt.isTypeMatch(point.c_str())) continue;
|
||||
|
||||
const uint64_t hits = std::atoll(line.c_str() + secspace + 1);
|
||||
// UINFO(9," point '"<<point<<"'"<<" "<<hits<<endl);
|
||||
|
|
|
|||
Loading…
Reference in New Issue