paradiseo/branches/newMo/src/memory/moMemory.h
jhumeau e6e21d345e memory fot TS added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1682 331e1502-861f-0410-8da2-ba01fb791d7f
2010-02-04 10:55:30 +00:00

40 lines
724 B
C++

#ifndef _moMemory_h
#define _moMemory_h
/**
* Abstract class for different memory
*/
template< class Neighbor >
class moMemory //: public eoObject
{
public:
typedef typename Neighbor::EOT EOT;
/**
* Init the memory
* @param _sol the current solution
*/
virtual void init(EOT & _sol) = 0;
/**
* Add data in the memory
* @param _sol the current solution
* @param _neighbor the current neighbor
*/
virtual void add(EOT & _sol, Neighbor & _neighbor) = 0;
/**
* update the memory
* @param _sol the current solution
* @param _neighbor the current neighbor
*/
virtual void update(EOT & _sol, Neighbor & _neighbor) = 0;
/**
* clear the memory
*/
virtual void clearMemory() = 0;
};
#endif