From ec8dbdb94a46e70969490ecc6c4e22fb3a7f9802 Mon Sep 17 00:00:00 2001 From: MosesAdmin Date: Tue, 27 Oct 2015 00:00:59 +0000 Subject: daily automatic beautifier --- moses/Syntax/F2S/Manager-inl.h | 4 ++-- moses/Syntax/S2T/Manager-inl.h | 4 ++-- moses/Syntax/SVertexRecombinationEqualityPred.h | 2 +- moses/Syntax/SVertexRecombinationHasher.h | 2 +- moses/Syntax/T2S/Manager-inl.h | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'moses/Syntax') diff --git a/moses/Syntax/F2S/Manager-inl.h b/moses/Syntax/F2S/Manager-inl.h index db4d2858e..7d5368f94 100644 --- a/moses/Syntax/F2S/Manager-inl.h +++ b/moses/Syntax/F2S/Manager-inl.h @@ -287,8 +287,8 @@ void Manager::RecombineAndSort( // any 'duplicate' vertices are deleted. // TODO Set? typedef boost::unordered_map Map; + SVertexRecombinationHasher, + SVertexRecombinationEqualityPred> Map; Map map; for (std::vector::const_iterator p = buffer.begin(); p != buffer.end(); ++p) { diff --git a/moses/Syntax/S2T/Manager-inl.h b/moses/Syntax/S2T/Manager-inl.h index 57a52703b..522174219 100644 --- a/moses/Syntax/S2T/Manager-inl.h +++ b/moses/Syntax/S2T/Manager-inl.h @@ -351,8 +351,8 @@ void Manager::RecombineAndSort(const std::vector &buffer, // any 'duplicate' vertices are deleted. // TODO Set? typedef boost::unordered_map Map; + SVertexRecombinationHasher, + SVertexRecombinationEqualityPred> Map; Map map; for (std::vector::const_iterator p = buffer.begin(); p != buffer.end(); ++p) { diff --git a/moses/Syntax/SVertexRecombinationEqualityPred.h b/moses/Syntax/SVertexRecombinationEqualityPred.h index 3461e4fa2..36131d6ca 100644 --- a/moses/Syntax/SVertexRecombinationEqualityPred.h +++ b/moses/Syntax/SVertexRecombinationEqualityPred.h @@ -11,7 +11,7 @@ namespace Syntax class SVertexRecombinationEqualityPred { - public: +public: bool operator()(const SVertex *v1, const SVertex *v2) const { assert(v1->states.size() == v2->states.size()); for (std::size_t i = 0; i < v1->states.size(); ++i) { diff --git a/moses/Syntax/SVertexRecombinationHasher.h b/moses/Syntax/SVertexRecombinationHasher.h index e0cbc06ba..a64cbee44 100644 --- a/moses/Syntax/SVertexRecombinationHasher.h +++ b/moses/Syntax/SVertexRecombinationHasher.h @@ -11,7 +11,7 @@ namespace Syntax class SVertexRecombinationHasher { - public: +public: std::size_t operator()(const SVertex *v) const { std::size_t seed = 0; for (std::vector::const_iterator p = v->states.begin(); diff --git a/moses/Syntax/T2S/Manager-inl.h b/moses/Syntax/T2S/Manager-inl.h index e9d6cd82d..6f64233ec 100644 --- a/moses/Syntax/T2S/Manager-inl.h +++ b/moses/Syntax/T2S/Manager-inl.h @@ -247,8 +247,8 @@ void Manager::RecombineAndSort( // any 'duplicate' vertices are deleted. // TODO Set? typedef boost::unordered_map Map; + SVertexRecombinationHasher, + SVertexRecombinationEqualityPred> Map; Map map; for (std::vector::const_iterator p = buffer.begin(); p != buffer.end(); ++p) { -- cgit v1.2.3