12 #ifndef ZYPP_SAT_LOOKUPATTR_H
13 #define ZYPP_SAT_LOOKUPATTR_H
151 iterator
begin()
const;
154 iterator
end()
const;
165 template<
class _ResultT,
class _AttrT = _ResultT>
class transformIterator;
304 const std::string & mstring_r = std::string(),
int flags_r = 0 );
307 const char * mstring_r,
int flags_r = 0 );
322 DIWrap( rhs ).swap( *
this );
326 {
DIWrap().swap( *
this ); }
328 #ifndef SWIG // Swig treats it as syntax error
334 ::_Dataiterator *
get()
const {
return _dip; }
360 , boost::forward_traversal_tag
508 const char *
c_str()
const;
534 template<
class _Tp> _Tp
asType()
const {
return _Tp(
id()); }
559 template <
class OtherDerived,
class OtherIterator,
class V,
class C,
class R,
class D>
560 bool equal(
const boost::iterator_adaptor<OtherDerived, OtherIterator, V, C, R, D> & rhs )
const
562 return (
bool(base()) ==
bool(rhs.base()) )
563 && ( ! base() ||
dip_equal( *base(), *rhs.base() ) );
566 bool dip_equal( const ::_Dataiterator & lhs, const ::_Dataiterator & rhs )
const;
574 ::_Dataiterator *
get()
const
588 template<>
inline int LookupAttr::iterator::asType<int>()
const {
return asInt(); }
589 template<>
inline unsigned LookupAttr::iterator::asType<unsigned>()
const {
return asUnsigned(); }
590 template<>
inline unsigned long long LookupAttr::iterator::asType<unsigned long long>()
const {
return asUnsignedLL(); }
591 template<>
inline bool LookupAttr::iterator::asType<bool>()
const {
return asBool(); }
592 template<>
inline const char * LookupAttr::iterator::asType<const char *>()
const {
return c_str(); }
593 template<>
inline std::string LookupAttr::iterator::asType<std::string>()
const {
return asString(); }
594 template<>
inline IdString LookupAttr::iterator::asType<IdString>()
const {
return idStr(); }
595 template<> CheckSum LookupAttr::iterator::asType<CheckSum>()
const;
597 template<
class _ResultT,
class _AttrT>
609 std::ostream &
operator<<( std::ostream & str, const ::_Dataiterator * obj );
612 inline std::ostream &
operator<<( std::ostream & str, const ::_Dataiterator & obj )
613 {
return str << &obj; }
615 #endif // ZYPP_SAT_LOOKUPATTR_H