#include <GLInitialiserShuffleIntVector.h>
Public Member Functions | |
GLInitialiserShuffleIntVector (int size) | |
virtual | ~GLInitialiserShuffleIntVector () |
int | getSize () const |
virtual GLBaseOrganism * | initialiseOrganism () |
void | setSize (int size) |
Definition at line 12 of file GLInitialiserShuffleIntVector.h.
GLInitialiserShuffleIntVector::GLInitialiserShuffleIntVector | ( | int | size | ) | [inline] |
Simple default constructor.
Definition at line 18 of file GLInitialiserShuffleIntVector.h.
virtual GLInitialiserShuffleIntVector::~GLInitialiserShuffleIntVector | ( | ) | [inline, virtual] |
Destructor, destroys everything.
Definition at line 23 of file GLInitialiserShuffleIntVector.h.
int GLInitialiserShuffleIntVector::getSize | ( | ) | const [inline] |
Return the current valut of size parameter.
Definition at line 29 of file GLInitialiserShuffleIntVector.h.
GLBaseOrganism * GLInitialiserShuffleIntVector::initialiseOrganism | ( | ) | [virtual] |
Creates and initialise GLOrganismVector<int> and initialises it with randomly shuffled vector of integer from 0 to getSize().
organism | organism to be initialised. |
Implements GLBaseOrganismInitialiser.
Definition at line 15 of file GLInitialiserShuffleIntVector.cpp.
void GLInitialiserShuffleIntVector::setSize | ( | int | size | ) |
Set the size for newly generated organisms.
size | new size. |
Definition at line 29 of file GLInitialiserShuffleIntVector.cpp.