zypp::solver::detail::ContextPool Class Reference

Save the last resolver results in a list. More...

#include <ContextPool.h>

Inheritance diagram for zypp::solver::detail::ContextPool:
[legend]

List of all members.

Public Member Functions

 ContextPool ()
 ContextPool (const int maxCount)
 Constructor.
virtual ~ContextPool ()
int contextListSize () const
 Count of sucessful solver runs.
void addContext (ResolverContext_Ptr context, const PoolItemList &installItems, const PoolItemList &deleteItems, const PoolItemList &lockUninstalledItems, const PoolItemList &keepItems)
 Add an additional sucessful solver run.
ResolverContext_Ptr findContext (PoolItemList &installItems, PoolItemList &deleteItems, const PoolItemList &lockUninstalledItems, const PoolItemList &keepItems)
 Find a solver result in order to use it for the next solver run.
void reset ()
 Delete all sucessful solver run.

Private Attributes

unsigned maxContext
 maximum stored solver results
ResolverContextList contextList
 List of sucessful solver runs.

Friends

std::ostream & operator<< (std::ostream &, const ContextPool &contextPool)


Detailed Description

Save the last resolver results in a list.

The next sovler run can search an already existing rusult with which he can continue.

Definition at line 61 of file ContextPool.h.


Constructor & Destructor Documentation

zypp::solver::detail::ContextPool::ContextPool (  ) 

Definition at line 69 of file ContextPool.cc.

References _XDEBUG, and MAXCONTEXT.

zypp::solver::detail::ContextPool::ContextPool ( const int  maxCount  ) 

Constructor.

Parameters:
maxCount maximum stored solver results

Definition at line 62 of file ContextPool.cc.

References _XDEBUG, and maxContext.

zypp::solver::detail::ContextPool::~ContextPool (  )  [virtual]

Definition at line 75 of file ContextPool.cc.


Member Function Documentation

int zypp::solver::detail::ContextPool::contextListSize (  )  const [inline]

Count of sucessful solver runs.

Definition at line 89 of file ContextPool.h.

References contextList.

Referenced by zypp::solver::detail::operator<<().

void zypp::solver::detail::ContextPool::addContext ( ResolverContext_Ptr  context,
const PoolItemList installItems,
const PoolItemList deleteItems,
const PoolItemList lockUninstalledItems,
const PoolItemList keepItems 
)

Add an additional sucessful solver run.

Parameters:
context Solver context
installItems List of items which are selected by the user
deleteItems List of items which are selected by the user
lockUninstalledItems List of items which are selected by the user
keepItems List of items which are selected by the user

Definition at line 80 of file ContextPool.cc.

References _XDEBUG, contextList, zypp::solver::detail::dumpTaskList(), and maxContext.

ResolverContext_Ptr zypp::solver::detail::ContextPool::findContext ( PoolItemList installItems,
PoolItemList deleteItems,
const PoolItemList lockUninstalledItems,
const PoolItemList keepItems 
)

Find a solver result in order to use it for the next solver run.

Parameters:
context Solver context
installItems List of items which are selected by the user
deleteItems List of items which are selected by the user
lockUninstalledItems List of items which are selected by the user
keepItems List of items which are selected by the user
Returns:
solver context

Definition at line 229 of file ContextPool.cc.

References _XDEBUG, contextList, and zypp::solver::detail::dumpTaskList().

void zypp::solver::detail::ContextPool::reset (  )  [inline]

Delete all sucessful solver run.

Definition at line 124 of file ContextPool.h.

References contextList.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const ContextPool contextPool 
) [friend]


Member Data Documentation

unsigned zypp::solver::detail::ContextPool::maxContext [private]

maximum stored solver results

Definition at line 65 of file ContextPool.h.

Referenced by addContext(), and ContextPool().

ResolverContextList zypp::solver::detail::ContextPool::contextList [private]

List of sucessful solver runs.

Definition at line 67 of file ContextPool.h.

Referenced by addContext(), contextListSize(), findContext(), and reset().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:26 2007 for libzypp by  doxygen 1.5.3