Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-30 08:05:11 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-30 08:05:11 +0300
commiteca582410006443d0b101a9ae188e302f34f8a03 (patch)
tree35212762fbe666330205e2a9ef09d16a918d077c /search/applied.hh
parent85acdc62b1548863a6db18bebb538406cfcfa038 (diff)
Remove trailing whitespace in C++ files.
Diffstat (limited to 'search/applied.hh')
-rw-r--r--search/applied.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/search/applied.hh b/search/applied.hh
index 88961775f..9464080cc 100644
--- a/search/applied.hh
+++ b/search/applied.hh
@@ -9,12 +9,12 @@
namespace search {
-// A full hypothesis: a score, arity of the rule, a pointer to the decoder's rule (Note), and pointers to non-terminals that were substituted.
+// A full hypothesis: a score, arity of the rule, a pointer to the decoder's rule (Note), and pointers to non-terminals that were substituted.
template <class Below> class GenericApplied : public Header {
public:
GenericApplied() {}
- GenericApplied(void *location, PartialEdge partial)
+ GenericApplied(void *location, PartialEdge partial)
: Header(location) {
memcpy(Base(), partial.Base(), kHeaderSize);
Below *child_out = Children();
@@ -23,7 +23,7 @@ template <class Below> class GenericApplied : public Header {
for (; part != part_end_loop; ++part, ++child_out)
*child_out = Below(part->End());
}
-
+
GenericApplied(void *location, Score score, Arity arity, Note note, Moses::WordsRange range) : Header(location, arity) {
SetScore(score);
SetNote(note);
@@ -46,7 +46,7 @@ template <class Below> class GenericApplied : public Header {
}
};
-// Applied rule that references itself.
+// Applied rule that references itself.
class Applied : public GenericApplied<Applied> {
private:
typedef GenericApplied<Applied> P;
@@ -57,7 +57,7 @@ class Applied : public GenericApplied<Applied> {
Applied(History from) : P(from) {}
};
-// How to build single-best hypotheses.
+// How to build single-best hypotheses.
class SingleBest {
public:
typedef PartialEdge Combine;
@@ -68,7 +68,7 @@ class SingleBest {
}
NBestComplete Complete(PartialEdge partial) {
- if (!partial.Valid())
+ if (!partial.Valid())
return NBestComplete(NULL, lm::ngram::ChartState(), -INFINITY);
void *place_final = pool_.Allocate(Applied::Size(partial.GetArity()));
Applied(place_final, partial);