Differential Evolution C++ library
de::individual_queue Class Reference

#include <individual.hpp>

List of all members.

Public Member Functions

void push_back (individual_ptr ind)
individual_ptr pop ()

Detailed Description

A thread safe queue of individuals

Used to queue Individuals containing the arguments to be passed by different processors to the objective function

Author:
adrian (12/1/2011)

Member Function Documentation

individual_ptr de::individual_queue::pop ( ) [inline]

removes the individual from the top of the queue (if any) and returns it

is thread safe

Author:
adrian (12/4/2011)
Returns:
individual_ptr the individual at the top of the queue or null individual if the queue is empty

Here is the caller graph for this function:

void de::individual_queue::push_back ( individual_ptr  ind) [inline]

adds a new individual at the bottom of the queue

is thread safe

Author:
adrian (12/4/2011)
Parameters:
indthe individual to insert into the queue

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