CatapultServer  v0.5.0.1 (Elephant)
DiagnosticCounter.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "DiagnosticCounterId.h"
23 #include "catapult/functions.h"
24 
25 namespace catapult { namespace utils {
26 
29  public:
32  : m_id(id)
34  {}
35 
36  public:
38  const DiagnosticCounterId& id() const {
39  return m_id;
40  }
41 
43  uint64_t value() const {
44  return m_supplier();
45  }
46 
47  private:
50  };
51 }}
DepsChecker.DepsChecker.match
def match(self, path, srcIncludeDir, destIncludeDir, fullInclude)
Definition: DepsChecker.py:129
DepsChecker.DepsChecker.processDefines
def processDefines(self)
Definition: DepsChecker.py:64
catapult::utils::DiagnosticCounterId
A diagnostic counter id.
Definition: DiagnosticCounterId.h:27
DepsChecker.Rule.dest
dest
Definition: DepsChecker.py:9
DepsChecker.DepsChecker.readConfig
def readConfig(self)
Definition: DepsChecker.py:26
DepsChecker.Rule.src
src
Definition: DepsChecker.py:8
DepsChecker.DepsChecker.processRules
def processRules(self, expandedRules)
Definition: DepsChecker.py:94
DepsChecker.DepsChecker.addRules
def addRules(rules, name, deps)
Definition: DepsChecker.py:85
DepsChecker.DepsChecker.expandDefine
def expandDefine(self, expanded, ruleSrc, ruleDest, level=1)
Definition: DepsChecker.py:51
DepsChecker.DepsChecker.createRules
def createRules(self)
Definition: DepsChecker.py:125
DepsChecker.DepsChecker
Definition: DepsChecker.py:15
DepsChecker.DepsChecker.rules
rules
Definition: DepsChecker.py:22
functions.h
DepsChecker.DepsChecker.verbose
verbose
Definition: DepsChecker.py:19
catapult::supplier
std::function< T()> supplier
A (stateless) supplier function.
Definition: functions.h:39
DepsChecker.DepsChecker.addRule
def addRule(rules, name, dep)
Definition: DepsChecker.py:77
DiagnosticCounterId.h
DepsChecker.DepsChecker.__init__
def __init__(self, configPath, errors, verbose=False)
Definition: DepsChecker.py:16
DepsChecker.DepsChecker.configPath
configPath
Definition: DepsChecker.py:17
DepsChecker.Rule.__init__
def __init__(self, src, dest)
Definition: DepsChecker.py:7
DepsChecker.Rule
Definition: DepsChecker.py:6
DepsChecker.DepsChecker.defines
defines
Definition: DepsChecker.py:21
DepsChecker.DepsChecker.parse
def parse(self, fin)
Definition: DepsChecker.py:32
catapult::utils::DiagnosticCounter::m_id
DiagnosticCounterId m_id
Definition: DiagnosticCounter.h:48
catapult::utils::DiagnosticCounter::value
uint64_t value() const
Gets the current value.
Definition: DiagnosticCounter.h:43
catapult::utils::DiagnosticCounter::m_supplier
supplier< uint64_t > m_supplier
Definition: DiagnosticCounter.h:49
DepsChecker.DepsChecker.createRule
def createRule(self, ruleSrc, ruleDest)
Definition: DepsChecker.py:89
catapult::utils::DiagnosticCounter
A diagnostic counter.
Definition: DiagnosticCounter.h:28
DepsChecker.DepsChecker.errors
errors
Definition: DepsChecker.py:18
DepsChecker.DepsChecker.isSelfContained
def isSelfContained(rules, name, deps)
Definition: DepsChecker.py:72
catapult::utils::DiagnosticCounter::DiagnosticCounter
DiagnosticCounter(const DiagnosticCounterId &id, const supplier< uint64_t > &supplier)
Creates a counter around id and supplier.
Definition: DiagnosticCounter.h:31
catapult
Definition: AddressExtractionExtension.cpp:28
DepsChecker.Rule.__repr__
def __repr__(self)
Definition: DepsChecker.py:11
catapult::utils::DiagnosticCounter::id
const DiagnosticCounterId & id() const
Gets the id.
Definition: DiagnosticCounter.h:38
DepsChecker.DepsChecker.lines
lines
Definition: DepsChecker.py:20