mammut::energy::Counter Class Referenceabstract
Inheritance diagram for mammut::energy::Counter:
Public Member Functions | |
virtual Joules | getJoules ()=0 |
virtual void | reset ()=0 |
virtual bool | init ()=0 |
virtual CounterType | getType ()=0 |
Member Function Documentation
|
pure virtual |
Returns the joules consumed up to this moment.
- Returns
- The joules consumed up to this moment.
Implemented in mammut::energy::CounterCpus, and mammut::energy::CounterPlug.
|
pure virtual |
Returns the type of this counter.
- Returns
- The type of this counter.
Implemented in mammut::energy::CounterCpus, and mammut::energy::CounterPlug.
|
pure virtual |
Initializes the counter.
- Returns
- True if the counter is present, false otherwise.
Implemented in mammut::energy::CounterCpus, and mammut::energy::CounterPlug.
|
pure virtual |
Resets the value of the counter.
Implemented in mammut::energy::CounterCpus, and mammut::energy::CounterPlug.
The documentation for this class was generated from the following file:
- /home/daniele/Code/Mammut/mammut/energy/energy.hpp