Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
UtilFloorwrap_test Class Reference

Description

Test:
Verify a custom built integer scale division and wrapping function. This function is relevant for decimating values into a given scale, like splitting time measurements in hours, minutes, seconds etc. Basically, in Lumiera the quantisation into a scale is always done with the same orientation, irrespective of the zero point on the given scale. Contrast this to the built-in integer division and modulo operators working symmetrical to zero.
See also
lib/util.hpp
TimeFormats_test

Definition at line 52 of file util-floorwrap-test.cpp.

Private Member Functions

virtual void run (Arg arg)
 
template<typename I >
void checkWrap (I range, I scale)
 
template<typename I >
void showWrap (I val, I scale)
 

Member Function Documentation

◆ run()

virtual void run ( Arg  arg)
inlineprivatevirtual

Definition at line 56 of file util-floorwrap-test.cpp.

References UtilFloorwrap_test::checkWrap().

+ Here is the call graph for this function:

◆ checkWrap()

template<typename I >
void checkWrap ( range,
scale 
)
inlineprivate

Definition at line 70 of file util-floorwrap-test.cpp.

References UtilFloorwrap_test::showWrap().

Referenced by UtilFloorwrap_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showWrap()

template<typename I >
void showWrap ( val,
scale 
)
inlineprivate

Definition at line 80 of file util-floorwrap-test.cpp.

References util::floorwrap(), IDiv< I >::quot, and IDiv< I >::rem.

Referenced by UtilFloorwrap_test::checkWrap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Inheritance diagram for UtilFloorwrap_test:
+ Collaboration diagram for UtilFloorwrap_test:

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