gaevaldata.h
来自「遗传算法工具箱C++」· C头文件 代码 · 共 28 行
H
28 行
// $Header$/* ---------------------------------------------------------------------------- eval.h mbwall 3dec95 Copyright (c) 1995 Massachusetts Institute of Technology all rights reserved DESCRIPTION: This is the basic interface for the object that contains evaluation data. Itcan be used with genomes and/or populations in combination with their respective evaluation methods.---------------------------------------------------------------------------- */#ifndef _ga_eval_h_#define _ga_eval_h_class GAEvalData {public: GAEvalData() {} GAEvalData(const GAEvalData&) {} virtual ~GAEvalData() {} GAEvalData& operator=(const GAEvalData& orig) { if(&orig != this) copy(orig); return *this; } virtual GAEvalData* clone() const =0; virtual void copy(const GAEvalData&) =0;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?