Package mdp :: Package parallel :: Class ListResultContainer
[hide private]
[frames] | no frames]

Class ListResultContainer


Basic result container using simply a list.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
add_result(self, result, task_index)
Store a result in the container.
 
get_results(self)
Return the list of results and reset this container.

Inherited from unreachable.newobject: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

add_result(self, result, task_index)

 
Store a result in the container.

Overrides: ResultContainer.add_result

get_results(self)

 
Return the list of results and reset this container.

Note that the results are stored in the order that they come in, which
can be different from the orginal task order.

Overrides: ResultContainer.get_results