diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-25 16:37:59 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-25 16:37:59 +0300 |
commit | 97b2aa5663e97079145fb494bf97e1b2997b4161 (patch) | |
tree | f8a68fa4ea40bb99c21cd26e7f02a27ddcc48187 /moses/Range.cpp | |
parent | 84b1c4b4c0c02362cdb35b55e08196d03b993baf (diff) |
WordsRange -> Range
Diffstat (limited to 'moses/Range.cpp')
-rw-r--r-- | moses/Range.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/moses/Range.cpp b/moses/Range.cpp new file mode 100644 index 000000000..434f0fcb5 --- /dev/null +++ b/moses/Range.cpp @@ -0,0 +1,34 @@ +/*********************************************************************** +Moses - factored phrase-based language decoder +Copyright (C) 2006 University of Edinburgh + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +***********************************************************************/ + +#include "Range.h" + +namespace Moses +{ + +TO_STRING_BODY(Range); + +std::ostream& operator << (std::ostream& out, const Range& range) +{ + out << "[" << range.m_startPos << ".." << range.m_endPos << "]"; + return out; +} + +} + |