Compounds | |
| struct | gray_to_bin_helper |
| struct | gray_to_bin_helper< T, shift_count, true > |
| struct | signed_tester |
| struct | signed_tester< T, false > |
Functions | |
| template<typename T> T | bin_to_gray (const T &i_value) |
| template<typename T> T | gray_to_bin (T value) |
|
||||||||||
|
bin_to_gray converts any integer POD type from a binary (2s complement for signed numbers) to the run-of-the mill gray code commonly found. |
|
||||||||||
|
gray_to_bin computes the gray binary code given the gray code value. Even though this function exists, it is far more appropriate to use class gray_code below as this will render code more readable and far less prone to error.
|
Generated for Austria by
and
MakeXS at Sun Oct 24 17:35:34 PDT 2004