Evocosm - A C++ Framework for Evolutionary Computing

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.

Public Member Functions

libevocosm::random_pool_migrator< OrganismType > Class Template Reference

A pool-based migrator. More...

#include <migrator.h>

Inheritance diagram for libevocosm::random_pool_migrator< OrganismType >:
libevocosm::migrator< OrganismType > libevocosm::globals

List of all members.

Public Member Functions

Detailed Description

template<class OrganismType>
class libevocosm::random_pool_migrator< OrganismType >

The pool_migrator maintains a pool of organisms taken from one or more populations, which are then available for immigration to other populations.

Constructor & Destructor Documentation

template<class OrganismType >
libevocosm::random_pool_migrator< OrganismType >::random_pool_migrator ( size_t  a_how_many) [inline]

Creates a new pool_migrator.

Member Function Documentation

template<class OrganismType >
virtual void libevocosm::random_pool_migrator< OrganismType >::migrate ( vector< population< OrganismType > > &  a_populations) [inline, virtual]

Copies organisms from the target population based on the constructor setting.

a_populations- Set of organism populations between which members will "migrate"

Implements libevocosm::migrator< OrganismType >.

References libevocosm::globals::rand_index().

The documentation for this class was generated from the following file:

© 2011 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.