mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-30 23:42:30 +03:00
std::vector -> Vector
This commit is contained in:
parent
9cf2862a52
commit
00618430fa
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include "Vector.h"
|
||||
|
||||
namespace Moses2
|
||||
{
|
||||
@ -18,7 +19,7 @@ protected:
|
||||
size_t m_size; /**< number of words in sentence */
|
||||
bool *m_wall; /**< flag for each word if it is a wall */
|
||||
size_t *m_localWall; /**< flag for each word if it is a local wall */
|
||||
std::vector< std::pair<size_t,size_t> > m_zone; /** zones that limit reordering */
|
||||
Vector< std::pair<size_t,size_t> > m_zone; /** zones that limit reordering */
|
||||
bool m_active; /**< flag indicating, if there are any active constraints */
|
||||
int m_max_distortion;
|
||||
MemPool &m_pool;
|
||||
@ -33,6 +34,7 @@ public:
|
||||
, m_localWall(NULL)
|
||||
, m_active(false)
|
||||
, m_pool(pool)
|
||||
, m_zone(pool)
|
||||
{}
|
||||
|
||||
//! destructer
|
||||
@ -61,7 +63,7 @@ public:
|
||||
void SetZone( size_t startPos, size_t endPos );
|
||||
|
||||
//! returns the vector of zones
|
||||
std::vector< std::pair< size_t,size_t> > & GetZones() {
|
||||
Vector< std::pair< size_t,size_t> > & GetZones() {
|
||||
return m_zone;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user