GLInitialiserShuffleIntVector Class Reference

#include <GLInitialiserShuffleIntVector.h>

Inheritance diagram for GLInitialiserShuffleIntVector:

GLBaseOrganismInitialiser

List of all members.

Public Member Functions

 GLInitialiserShuffleIntVector (int size)
virtual ~GLInitialiserShuffleIntVector ()
int getSize () const
virtual GLBaseOrganisminitialiseOrganism ()
void setSize (int size)


Detailed Description

Class for creating GLOrganismVector<int> initialised with vector of shuffled integer. The size of the organisms determined by the parameter 'size' of this class.

Definition at line 12 of file GLInitialiserShuffleIntVector.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

int GLInitialiserShuffleIntVector::getSize (  )  const [inline]

Return the current valut of size parameter.

Returns:
the current value 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().

Returns:
pointer to the organism initialised with some initial value.
Initialise organism. Organism must be of type GLOrganismVector<int> and will be initialised with the vector of integers of size organism->getSize() from 0 to size randomy shuffled.
Parameters:
organism organism to be initialised.
Returns:
pointer to the same organism which was passed as a parameter, but now it is initialised.

Implements GLBaseOrganismInitialiser.

Definition at line 15 of file GLInitialiserShuffleIntVector.cpp.

void GLInitialiserShuffleIntVector::setSize ( int  size  ) 

Set the size for newly generated organisms.

Parameters:
size new size.

Definition at line 29 of file GLInitialiserShuffleIntVector.cpp.


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

Generated on Sat Jun 13 13:58:09 2009 for GenLib by  doxygen 1.5.9