libzypp  11.13.5
zypp::sat::detail::DIWrap Class Reference

Wrapper around sat ::_Dataiterator. More...

#include <LookupAttr.h>

Inheritance diagram for zypp::sat::detail::DIWrap:

List of all members.

Public Member Functions

 DIWrap ()
 NULL ::_Dataiterator
 DIWrap (RepoIdType repoId_r, SolvableIdType solvId_r, IdType attrId_r, const std::string &mstring_r=std::string(), int flags_r=0)
 Initializes.
 DIWrap (RepoIdType repoId_r, SolvableIdType solvId_r, IdType attrId_r, const char *mstring_r, int flags_r=0)
 DIWrap (const DIWrap &rhs)
 ~DIWrap ()
void swap (DIWrap &rhs)
DIWrapoperator= (const DIWrap &rhs)
void reset ()
::_Dataiterator * operator-> () const
::_Dataiterator * get () const
const std::string & getstr () const

Private Member Functions

friend base::SafeBool () const
bool boolTest () const
- Private Member Functions inherited from zypp::base::SafeBool< DIWrap >
 operator bool_type () const
 ~SafeBool ()

Private Attributes

::_Dataiterator * _dip
std::string _mstring

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const DIWrap &obj)

Detailed Description

Wrapper around sat ::_Dataiterator.

Manages copy and assign, and release of allocated resources like datamatcher inside the dataiterator. Also maintains a copy of the matchstring in order to keep the char* passed to the dataiterator valid.

Definition at line 295 of file LookupAttr.h.


Constructor & Destructor Documentation

zypp::sat::detail::DIWrap::DIWrap ( )
inline

NULL ::_Dataiterator

Definition at line 299 of file LookupAttr.h.

zypp::sat::detail::DIWrap::DIWrap ( RepoIdType  repoId_r,
SolvableIdType  solvId_r,
IdType  attrId_r,
const std::string &  mstring_r = std::string(),
int  flags_r = 0 
)

Initializes.

Definition at line 298 of file LookupAttr.cc.

zypp::sat::detail::DIWrap::DIWrap ( RepoIdType  repoId_r,
SolvableIdType  solvId_r,
IdType  attrId_r,
const char *  mstring_r,
int  flags_r = 0 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 307 of file LookupAttr.cc.

zypp::sat::detail::DIWrap::DIWrap ( const DIWrap rhs)

Definition at line 316 of file LookupAttr.cc.

zypp::sat::detail::DIWrap::~DIWrap ( )

Definition at line 327 of file LookupAttr.cc.


Member Function Documentation

void zypp::sat::detail::DIWrap::swap ( DIWrap rhs)
inline

Definition at line 311 of file LookupAttr.h.

DIWrap& zypp::sat::detail::DIWrap::operator= ( const DIWrap rhs)
inline

Definition at line 319 of file LookupAttr.h.

void zypp::sat::detail::DIWrap::reset ( )
inline

Definition at line 325 of file LookupAttr.h.

::_Dataiterator* zypp::sat::detail::DIWrap::operator-> ( ) const
inline

Definition at line 333 of file LookupAttr.h.

::_Dataiterator* zypp::sat::detail::DIWrap::get ( ) const
inline

Definition at line 334 of file LookupAttr.h.

const std::string& zypp::sat::detail::DIWrap::getstr ( ) const
inline

Definition at line 335 of file LookupAttr.h.

zypp::sat::detail::DIWrap::base::SafeBool ( ) const
private
bool zypp::sat::detail::DIWrap::boolTest ( ) const
inlineprivate

Definition at line 338 of file LookupAttr.h.


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const DIWrap obj 
)
related

Stream output.

Definition at line 336 of file LookupAttr.cc.


Member Data Documentation

::_Dataiterator* zypp::sat::detail::DIWrap::_dip
private

Definition at line 341 of file LookupAttr.h.

std::string zypp::sat::detail::DIWrap::_mstring
private

Definition at line 342 of file LookupAttr.h.


The documentation for this class was generated from the following files: