mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
anonymous objects
This commit is contained in:
parent
d0951cde0a
commit
844e8a16c4
@ -20,8 +20,7 @@ namespace Moses2
|
||||
namespace NSCubePruning
|
||||
{
|
||||
MiniStack::MiniStack(const Manager &mgr)
|
||||
:m_alloc(mgr.GetPool())
|
||||
,m_coll(m_alloc)
|
||||
:m_coll(MemPoolAllocator<const Hypothesis*>(mgr.GetPool()))
|
||||
,m_sortedHypos(NULL)
|
||||
{}
|
||||
|
||||
@ -88,8 +87,7 @@ void MiniStack::SortAndPruneHypos(const Manager &mgr) const
|
||||
///////////////////////////////////////////////////////////////
|
||||
Stack::Stack(const Manager &mgr)
|
||||
:m_mgr(mgr)
|
||||
,m_alloc(mgr.GetPool())
|
||||
,m_coll(m_alloc)
|
||||
,m_coll(MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> >(mgr.GetPool()))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,6 @@ public:
|
||||
CubeEdge::Hypotheses &GetSortedAndPruneHypos(const Manager &mgr) const;
|
||||
|
||||
protected:
|
||||
MemPoolAllocator<const Hypothesis*> m_alloc;
|
||||
_HCType m_coll;
|
||||
mutable CubeEdge::Hypotheses *m_sortedHypos;
|
||||
|
||||
@ -85,7 +84,6 @@ public:
|
||||
|
||||
protected:
|
||||
const Manager &m_mgr;
|
||||
MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> > m_alloc;
|
||||
Coll m_coll;
|
||||
|
||||
StackAdd Add(const Hypothesis *hypo);
|
||||
|
Loading…
Reference in New Issue
Block a user