CapFactory.cc File Reference

#include <iostream>
#include <functional>
#include <set>
#include <map>
#include "zypp/base/Logger.h"
#include "zypp/base/Exception.h"
#include "zypp/base/String.h"
#include "zypp/base/Counter.h"
#include "zypp/CapFactory.h"
#include "zypp/capability/Capabilities.h"

Go to the source code of this file.

Namespaces

namespace  zypp

Classes

struct  zypp::CapFactory::Impl
 CapFactory implementation. More...

Typedefs

typedef std::set< CapabilityImpl::Ptr,
CapImplOrder > 
USet
 Set of unique CapabilityImpl.
typedef ::zypp::Counter< unsigned > Counter

Functions

CapabilityImpl::Ptr usetInsert (CapabilityImpl *allocated_r)
 Each CapabilityImpl created in CapFactory must be wrapped.
std::ostream & zypp::operator<< (std::ostream &str, const CapFactory &obj)

Variables

USet _uset
 Set to unify created capabilities.
Counter _caps
std::map< CapabilityImpl::Kind,
Counter
_capKind
std::map< Resolvable::Kind,
Counter
_capRefers


Detailed Description

Definition in file CapFactory.cc.


Typedef Documentation

typedef std::set<CapabilityImpl::Ptr,CapImplOrder> USet [static]
 

Set of unique CapabilityImpl.

Definition at line 35 of file CapFactory.cc.

typedef ::zypp::Counter<unsigned> Counter
 

Definition at line 64 of file CapFactory.cc.


Function Documentation

CapabilityImpl::Ptr @0::usetInsert CapabilityImpl *  allocated_r  )  [static]
 

Each CapabilityImpl created in CapFactory must be wrapped.

Immediately wrap allocated_r, and unified by inserting it into _uset. Each CapabilityImpl created by CapFactory, must be inserted into _uset, by calling usetInsert.

Returns:
CapabilityImpl_Ptr referencing allocated_r (or an eqal representation, allocated is deleted then).

Definition at line 54 of file CapFactory.cc.

Referenced by zypp::CapFactory::Impl::buildHal(), zypp::CapFactory::Impl::buildModalias(), and zypp::CapFactory::Impl::buildVersioned().


Variable Documentation

USet _uset [static]
 

Set to unify created capabilities.

This is to unify capabilities. Each CapabilityImpl created by CapFactory, must be inserted into _uset, and the returned CapabilityImpl::Ptr has to be uset to create the Capability.

Definition at line 43 of file CapFactory.cc.

Counter _caps
 

Definition at line 66 of file CapFactory.cc.

std::map<CapabilityImpl::Kind,Counter> _capKind
 

Definition at line 67 of file CapFactory.cc.

std::map<Resolvable::Kind,Counter> _capRefers
 

Definition at line 68 of file CapFactory.cc.


Generated on Thu Jul 6 00:07:29 2006 for zypp by  doxygen 1.4.6