zypp::detail::ImplConnect Struct Reference

Connect to an implementation (internal). More...

#include <ImplConnect.h>

List of all members.

Static Public Member Functions

template<class _Res>
static ResImplTraits< typename
_Res::Impl >::Ptr 
resimpl (const intrusive_ptr< _Res > &obj)
template<class _Res>
static ResImplTraits< typename
_Res::Impl >::constPtr 
resimpl (const intrusive_ptr< const _Res > &obj)

Static Private Member Functions

static ResImplTraits< ResObject::Impl
>::Ptr 
getImpl (const ResObject::Ptr &obj)
static ResImplTraits< ResObject::Impl
>::constPtr 
getConstImpl (const ResObject::constPtr &obj)


Detailed Description

Connect to an implementation (internal).

Note:
This is not to be exposed in some public interface! ImplConnect::resimpl takes a _Ptr to a resolvable as argument, and returns a _Ptr to it's implementation class:
 // ResObject::Ptr      -> detail::ResImplTraits<ResObject::Impl>::Ptr
 // ResObject::constPtr -> detail::ResImplTraits<ResObject::Impl>::constPtr
 // Package::Ptr        -> detail::ResImplTraits<Package::Impl>::Ptr
 // Package::constPtr   -> detail::ResImplTraits<Package::Impl>::constPtr

 ResObject::constPtr ptr;
 detail::ResImplTraits<Package::Impl>::constPtr implPtr;

 implPtr = detail::ImplConnect::resimpl( asKind<Package>(ptr) );

 // implPtr will be NULL, if ptr is NULL or does not refer to a Package.
Basically makes a ResObjectImplIf

Definition at line 47 of file ImplConnect.h.


Member Function Documentation

template<class _Res>
static ResImplTraits<typename _Res::Impl>::Ptr zypp::detail::ImplConnect::resimpl const intrusive_ptr< _Res > &  obj  )  [inline, static]
 

Definition at line 50 of file ImplConnect.h.

References getImpl().

template<class _Res>
static ResImplTraits<typename _Res::Impl>::constPtr zypp::detail::ImplConnect::resimpl const intrusive_ptr< const _Res > &  obj  )  [inline, static]
 

Definition at line 54 of file ImplConnect.h.

References getConstImpl().

static ResImplTraits<ResObject::Impl>::Ptr zypp::detail::ImplConnect::getImpl const ResObject::Ptr obj  )  [inline, static, private]
 

Definition at line 58 of file ImplConnect.h.

Referenced by resimpl().

static ResImplTraits<ResObject::Impl>::constPtr zypp::detail::ImplConnect::getConstImpl const ResObject::constPtr obj  )  [inline, static, private]
 

Definition at line 61 of file ImplConnect.h.

Referenced by resimpl().


The documentation for this struct was generated from the following file:
Generated on Thu Jul 6 00:07:32 2006 for zypp by  doxygen 1.4.6