DSC Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DSC::MeasureValue Class Reference

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
 
MeasureValuecut ()
 specifies to use the lower integer bound for non-integer value conversion
 
MeasureValuefit ()
 specifies to use the upper integer bound for non-integer value conversion
 
MeasureValueblocks (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
 

Detailed Description

Wrapper around int to convert units.

Member Function Documentation

◆ kilobytes()

int DSC::MeasureValue::kilobytes ( ) const

converts the value of the measure in kilobytes. Roughly equivalent to MeasureValue::blocks(1024).

Returns
resulted value in kilobytes
Examples
D:/Users/NotImpLife/Projects/DS-Creator-Dev/DSCEngine/include/DSCEngine/video/measure.hpp.

◆ value()

int DSC::MeasureValue::value ( ) const

gets the value of the measure, after applying the value modifier

Returns
resulted value
Examples
D:/Users/NotImpLife/Projects/DS-Creator-Dev/DSCEngine/include/DSCEngine/video/measure.hpp.

The documentation for this class was generated from the following file: