📄 utility.hpp
字号:
#ifndef UTILITY_H #define UTILITY_H #include <iostream> using namespace std; #include <math.h> #include <boost/shared_ptr.hpp> typedef unsigned int t_uint; typedef unsigned long t_ulong; typedef unsigned char t_uchar; typedef boost::shared_ptr<ostream> ostreamPtr; inline double powerToDecibels(double powerValue) { assert(powerValue != 0.0); return (10.0 * log10(powerValue / 1.0)); } inline double decibelsToPower(double decibelValue) { return (1.0 * pow(10, (decibelValue / 10.0))); } const double SPEED_OF_LIGHT = 299792458.0; const double PI = 3.14159265; #endif // UTILITY_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -