⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vecpopulation.h

📁 一个用c++编写的多目标遗传算法程序
💻 H
字号:
/*******************************************************************************	VecPopulation.h		last change: 01/11/1999		version: 0.0.0		design:	Eckart Zitzler			Paul E. Sevinc		implementation:	Paul E. Sevinc		(c) 1998-1999:	Computer Engineering and Networks Laboratory				Swiss Federal Institute of Technology Zurich				description:			See also Population.h			VecPopulation is a concrete subclass of Population			that overwrites the latter's abstract methods and			uses a vector<> to manage the Inidvidual*s.*******************************************************************************/#ifndef VEC_POPULATION_H#define VEC_POPULATION_H#include <cstddef>#include <vector>#include "Individual.h"#include "Population.h"#include "RandomNr.h"#include "TIKEAFExceptions.h"using std::size_t;using std::vector;class VecPopulation : public Population{	private:			vector< Individual* >	individuals;	protected:			void			switchAt( size_t, size_t );			void			deleteAt( vector< size_t >& );						void			deleteAll();				public:						VecPopulation( RandomNr& );												VecPopulation( RandomNr&, size_t );		virtual				~VecPopulation();						size_t			size();						Individual*		at( size_t )							throw ( LimitsException );						void			pushBack( Individual* )							throw ( NilException );			Individual*		popBack();			Individual*		removeAt( size_t )							throw ( LimitsException );			Population*		clone();};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -