MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / Predicate

Class Predicate

include/thundersvm/util/log.h:2148–2163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2146 }
2147
2148 class Predicate {
2149 public:
2150 Predicate(const char* filename, base::type::LineNumber lineNumber)
2151 : m_filename(filename),
2152 m_lineNumber(lineNumber) {
2153 }
2154 inline bool operator()(const HitCounter* counter) {
2155 return ((counter != nullptr) &&
2156 (strcmp(counter->m_filename, m_filename) == 0) &&
2157 (counter->m_lineNumber == m_lineNumber));
2158 }
2159
2160 private:
2161 const char* m_filename;
2162 base::type::LineNumber m_lineNumber;
2163 };
2164
2165 private:
2166 const char* m_filename;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected