Synchronizer_Helper Class Reference

A helper class for the synchronizer. More...

#include <Synchronizer_Helper.h>

Inheritance diagram for Synchronizer_Helper:
Unigram_Model_Synchronizer_Helper

List of all members.

Public Member Functions

virtual void initialize ()=0
virtual void synchronize ()=0
virtual bool has_to_synchronize ()=0
virtual void reset_to_synchronize ()=0
virtual void end_putNget (const std::string &word, const std::string &counts)=0

Detailed Description

A helper class for the synchronizer.

Each helper object implements synchronization algorithms for maintaining the data structures in sync

The Synchronizer class depends on this interface to enable synchronization of a multi-machine LDA set-up


Member Function Documentation

virtual void Synchronizer_Helper::end_putNget ( const std::string &  word,
const std::string &  counts 
) [pure virtual]

This is a callback from the Client when an async_putNget is used on the Client So when a Client is instantiated, you need to pass a reference of (*this)

Implemented in Unigram_Model_Synchronizer_Helper.

virtual bool Synchronizer_Helper::has_to_synchronize (  )  [pure virtual]

Returns true as long as all items to be synchronized are not synchronized

Implemented in Unigram_Model_Synchronizer_Helper.

virtual void Synchronizer_Helper::initialize (  )  [pure virtual]
virtual void Synchronizer_Helper::reset_to_synchronize (  )  [pure virtual]

After this call, has_to_synchronize() should return true

Implemented in Unigram_Model_Synchronizer_Helper.

virtual void Synchronizer_Helper::synchronize (  )  [pure virtual]

The documentation for this class was generated from the following file:
Generated on Tue Jul 19 11:45:28 2011 for Y!LDA by  doxygen 1.6.3