DSC Engine
|
Wrapper around int to convert units. More...
#include <measure.hpp>
Public Member Functions | |
MeasureValue (int raw=0) | |
creates measure data from numeric value \raw numeric value | |
MeasureValue & | cut () |
specifies to use the lower integer bound for non-integer value conversion | |
MeasureValue & | fit () |
specifies to use the upper integer bound for non-integer value conversion | |
MeasureValue & | blocks (int quant) |
int | value () const |
gets the value of the measure, after applying the value modifier More... | |
int | kilobytes () const |
converts the value of the measure in kilobytes. Roughly equivalent to MeasureValue::blocks(1024). More... | |
operator int () const | |
Wrapper around int to convert units.
int DSC::MeasureValue::kilobytes | ( | ) | const |
converts the value of the measure in kilobytes. Roughly equivalent to MeasureValue::blocks(1024).
int DSC::MeasureValue::value | ( | ) | const |
gets the value of the measure, after applying the value modifier