zypp::parser::susetags::FileReaderBase::BaseImpl::CapImplCache Struct Reference

Parsing Capabilities from string is quite expensive. More...

#include <FileReaderBaseImpl.h>

List of all members.

Public Member Functions

template<class _Res>
capability::CapabilityImpl::Ptr get (const std::string &line_r)
capability::CapabilityImpl::Ptr get (const std::string &line_r, ResolvableTraits::KindType refers_r)

Private Attributes

std::map
< ResolvableTraits::KindType,
std::map
< std::string,
capability::CapabilityImpl::Ptr > > 
_cache


Detailed Description

Parsing Capabilities from string is quite expensive.

So we maintain a little chache to check whether we already parsed some raw string. If so, we can reuse the result.

Definition at line 71 of file FileReaderBaseImpl.h.


Member Function Documentation

template<class _Res>
capability::CapabilityImpl::Ptr zypp::parser::susetags::FileReaderBase::BaseImpl::CapImplCache::get ( const std::string &  line_r  )  [inline]

Definition at line 74 of file FileReaderBaseImpl.h.

Referenced by zypp::parser::susetags::FileReaderBase::BaseImpl::depAddLine().

capability::CapabilityImpl::Ptr zypp::parser::susetags::FileReaderBase::BaseImpl::CapImplCache::get ( const std::string &  line_r,
ResolvableTraits::KindType  refers_r 
) [inline]

Definition at line 79 of file FileReaderBaseImpl.h.

References _cache, and zypp::parse().


Member Data Documentation

std::map<ResolvableTraits::KindType, std::map<std::string, capability::CapabilityImpl::Ptr> > zypp::parser::susetags::FileReaderBase::BaseImpl::CapImplCache::_cache [private]

Definition at line 91 of file FileReaderBaseImpl.h.

Referenced by get().


The documentation for this struct was generated from the following file:
Generated on Tue Sep 25 19:23:22 2007 for libzypp by  doxygen 1.5.3