File size: 322 Bytes
158b61b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#pragma once
#include "Forest.h"
namespace Moses
{
namespace Syntax
{
namespace F2S
{
// Base class for rule matchers.
template<typename Callback>
class RuleMatcher
{
public:
virtual ~RuleMatcher() {}
virtual void EnumerateHyperedges(const Forest::Vertex &, Callback &) = 0;
};
} // F2S
} // Syntax
} // Moses
|