1234567891011121314151617181920212223 |
- #ifndef YASERVER_ALGORITHM_FOR_CELL_H_
- #define YASERVER_ALGORITHM_FOR_CELL_H_
- #include "cell_struct.h"
- #include "../structdef.h"
- #include "../../classdef.h"
- using namespace std;
- // 格子相关算法流程, 所有函数均非线程安全
- class YaAlgorithmForCell
- {
- public:
- static int do_algorithm(Card* card, int n);// 开始执行算法流程
- private:
- enum GenerateBYLinearFitting
- {
- GENERATE_SUCCESS, // 生成成功
- GENERATE_FAIL_BY_DIRECTION, // 生成数据方向错误, 失败
- GENERATE_FAIL_DATA // 生成失败, 因为拟合输入值有误
- };
- };
- #endif
|