Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <selector.h>
Of course, "real" nature isn't so kind; just because you're the biggest stag in the forest doesn't mean you won't get shot! In fact, that may say something about the "best" -- maybe the "best" stag is the one that is too ugly for anyone to hunt?
OrganismType | - The type of organism being selected |
virtual libevocosm::selector< OrganismType >::~selector | ( | ) | [inline, virtual] |
A virtual destructor. By default, it does nothing; this is a placeholder that identifies this class as a potential base, ensuring that objects of a derived class will have their destructors called if they are destroyed through a base-class pointer.
virtual vector<OrganismType> libevocosm::selector< OrganismType >::select_survivors | ( | vector< OrganismType > & | a_population | ) | [pure virtual] |
Produces a vector containing copies of the organisms selected for survival.
a_population | - A population of organisms |
Implemented in libevocosm::null_selector< OrganismType >, and libevocosm::elitism_selector< OrganismType >.
Referenced by libevocosm::evocosm< OrganismType, LandscapeType >::run_generation().
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.