From e207b43bf179277d53b3adc767372469bd8a2ad2 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 15 Jul 2014 18:19:00 +0200 Subject: before msgpack --- fast/hypergraph.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fast/hypergraph.hh') diff --git a/fast/hypergraph.hh b/fast/hypergraph.hh index 6e53045..24e63f5 100644 --- a/fast/hypergraph.hh +++ b/fast/hypergraph.hh @@ -11,6 +11,8 @@ #include #include +#include + using namespace std; typedef double score_t; @@ -35,6 +37,7 @@ class Hyperedge { bool is_marked(); string s(); + MSGPACK_DEFINE(head, tails, score, f, mark, arity_); }; @@ -49,6 +52,8 @@ class Node { vector incoming; string s(); + + MSGPACK_DEFINE(id, symbol, left, right, score, outgoing, incoming); }; @@ -64,6 +69,8 @@ class Hypergraph { void reset(); string s(); string json_s(); + + MSGPACK_DEFINE(nodes, edges, arity_, nodes_by_id); }; vector topological_sort(vector& nodes); -- cgit v1.2.3