?? gaselectduplicatesparams.h
字號:
#ifndef __GA_SELECT_DUPLICATES_PARAMS_H__
#define __GA_SELECT_DUPLICATES_PARAMS_H__
#include "..\GaSelection.h"
using namespace Population;
namespace Population
{
namespace SelectionOperations
{
// Parameters for controling the duplicates in selection.
class GaSelectDuplicatesParams : public GaSelectionParams
{
private:
// If set to TRUE dupilcates in result set are allowed
bool _duplicates;
public:
// Initialization of the parameters
DLL_EXPORT
GaSelectDuplicatesParams(bool duplicates,
int selectionSize);
// Initialization of the parameters with default values
DLL_EXPORT
GaSelectDuplicatesParams();
// Virtual copy constructor
DLL_EXPORT
virtual GaParameters* GACALL Clone() const;
// Returns TRUE if dupilcates in result set are allowed
DLL_EXPORT
bool GACALL GetDuplicates() const;
// Set to TRUE if dupilcates in result set are allowed
DLL_EXPORT
void GACALL SetDuplicates(bool duplicates);
};// END CLASS DEFINITION GaSelectDuplicatesParams
} // SelectionOperations
} // Population
#endif // __GA_SELECT_DUPLICATES_PARAMS_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -