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::Ptr cap_ptr)
 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 @118::usetInsert ( CapabilityImpl::Ptr  cap_ptr  )  [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::filesystemEvalCap(), zypp::CapFactory::fromImpl(), zypp::CapFactory::halEvalCap(), zypp::CapFactory::modaliasEvalCap(), and zypp::CapFactory::parse().


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 Sep 25 19:23:11 2007 for libzypp by  doxygen 1.5.3