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