libzypp  11.13.5
zypp::sat::ArrayAttr< _ResultT, _AttrT > Class Template Reference

LookupAttr::transformIterator based container to retrieve list attributes. More...

#include <LookupAttrTools.h>

List of all members.

Public Types

typedef
LookupAttr::transformIterator
< _ResultT, _AttrT > 
iterator
typedef LookupAttr::size_type size_type

Public Member Functions

 ArrayAttr ()
 ArrayAttr (SolvAttr attr_r, LookupAttr::Location loc_r=LookupAttr::SOLV_ATTR)
 ArrayAttr (SolvAttr attr_r, Repository repo_r, LookupAttr::Location loc_r=LookupAttr::SOLV_ATTR)
 ArrayAttr (SolvAttr attr_r, Solvable solv_r)
iterator begin () const
iterator end () const
bool empty () const
size_type size () const
iterator find (const _ResultT &key_r) const

Private Attributes

LookupAttr _q

Friends

std::ostream & operator (std::ostream &str, const ArrayAttr< _ResultT, _AttrT > &obj)

Detailed Description

template<class _ResultT, class _AttrT>
class zypp::sat::ArrayAttr< _ResultT, _AttrT >

LookupAttr::transformIterator based container to retrieve list attributes.

You may pass LookupAttr::REPO_ATTR as LookupAttr::Location argument, to lookup attributes associated with the Repository as a whole (e.g. repository keywords).

See also:
LookupAttr for details.
typedef ArrayAttr<PackageKeyword,IdString> Keywords;
Keywords k( sat::SolvAttr::keywords );
dumpRange( MIL << "All Keywords: ", k.begin(), k.end() ) << endl;
Todo:
Maybe add some way to unify the result.

Definition at line 154 of file LookupAttrTools.h.


Member Typedef Documentation

template<class _ResultT , class _AttrT >
typedef LookupAttr::transformIterator<_ResultT,_AttrT> zypp::sat::ArrayAttr< _ResultT, _AttrT >::iterator

Definition at line 175 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
typedef LookupAttr::size_type zypp::sat::ArrayAttr< _ResultT, _AttrT >::size_type

Definition at line 176 of file LookupAttrTools.h.


Constructor & Destructor Documentation

template<class _ResultT , class _AttrT >
zypp::sat::ArrayAttr< _ResultT, _AttrT >::ArrayAttr ( )
inline

Definition at line 159 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
zypp::sat::ArrayAttr< _ResultT, _AttrT >::ArrayAttr ( SolvAttr  attr_r,
LookupAttr::Location  loc_r = LookupAttr::SOLV_ATTR 
)
inline

Definition at line 162 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
zypp::sat::ArrayAttr< _ResultT, _AttrT >::ArrayAttr ( SolvAttr  attr_r,
Repository  repo_r,
LookupAttr::Location  loc_r = LookupAttr::SOLV_ATTR 
)
inline

Definition at line 166 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
zypp::sat::ArrayAttr< _ResultT, _AttrT >::ArrayAttr ( SolvAttr  attr_r,
Solvable  solv_r 
)
inline

Definition at line 170 of file LookupAttrTools.h.


Member Function Documentation

template<class _ResultT , class _AttrT >
iterator zypp::sat::ArrayAttr< _ResultT, _AttrT >::begin ( ) const
inline

Definition at line 178 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
iterator zypp::sat::ArrayAttr< _ResultT, _AttrT >::end ( ) const
inline

Definition at line 181 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
bool zypp::sat::ArrayAttr< _ResultT, _AttrT >::empty ( ) const
inline

Definition at line 184 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
size_type zypp::sat::ArrayAttr< _ResultT, _AttrT >::size ( ) const
inline

Definition at line 187 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
iterator zypp::sat::ArrayAttr< _ResultT, _AttrT >::find ( const _ResultT &  key_r) const
inline

Definition at line 197 of file LookupAttrTools.h.


Friends And Related Function Documentation

template<class _ResultT , class _AttrT >
std::ostream& operator ( std::ostream &  str,
const ArrayAttr< _ResultT, _AttrT > &  obj 
)
friend

Member Data Documentation

template<class _ResultT , class _AttrT >
LookupAttr zypp::sat::ArrayAttr< _ResultT, _AttrT >::_q
private

Definition at line 208 of file LookupAttrTools.h.


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