mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
25 lines
332 B
C++
25 lines
332 B
C++
/*
|
|
* Stack.cpp
|
|
*
|
|
* Created on: 24 Oct 2015
|
|
* Author: hieu
|
|
*/
|
|
|
|
#include "Stack.h"
|
|
|
|
Stack::Stack() {
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
|
|
|
Stack::~Stack() {
|
|
// TODO Auto-generated destructor stub
|
|
}
|
|
|
|
bool Stack::Add(Hypothesis *hypo)
|
|
{
|
|
std::pair<iterator, bool> ret = m_hypos.insert(hypo);
|
|
return ret.second;
|
|
}
|
|
|