CapFactory.cc File Reference

#include <iostream>
#include <functional>
#include <set>
#include <map>
#include <ext/hash_set>
#include <ext/hash_fun.h>
#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 __gnu_cxx::hash_set<
CapabilityImpl::Ptr, CapImplHashFun,
CapImplHashEqual > 
USet
 Set of unique CapabilityImpl.

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.


Detailed Description

Definition in file CapFactory.cc.


Typedef Documentation

typedef __gnu_cxx::hash_set<CapabilityImpl::Ptr, CapImplHashFun, CapImplHashEqual> USet [static]

Set of unique CapabilityImpl.

Definition at line 57 of file CapFactory.cc.


Function Documentation

CapabilityImpl::Ptr @77::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 77 of file CapFactory.cc.

Referenced by zypp::CapFactory::Impl::buildFile(), zypp::CapFactory::Impl::buildHal(), zypp::CapFactory::Impl::buildModalias(), zypp::CapFactory::Impl::buildNamed(), 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 66 of file CapFactory.cc.

Counter _caps

Definition at line 89 of file CapFactory.cc.

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

Definition at line 90 of file CapFactory.cc.

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

Definition at line 91 of file CapFactory.cc.


Generated on Tue Nov 28 16:49:35 2006 for zypp by  doxygen 1.5.0