12 #ifndef ZYPP_BASE_FUNCTIONAL_H 13 #define ZYPP_BASE_FUNCTIONAL_H 16 #include <zypp/base/Function.h> 57 template<
class TConst>
74 template<
class TConst>
109 template<
class TCondition>
126 template<
class TCondition>
134 template<
class TACondition,
class TBCondition>
137 Or( TACondition conda_r, TBCondition condb_r )
155 template<
class TACondition,
class TBCondition>
163 template<
class TACondition,
class TBCondition>
166 Chain( TACondition conda_r, TBCondition condb_r )
184 template<
class TACondition,
class TBCondition>
213 { *
_result = val_r;
return false; }
234 { *
_result = val_r;
return true; }
253 template<
class TOutputIterator>
262 { *(
_result++) = val_r;
return true; }
269 template<
class TOutputIterator>
282 #endif // ZYPP_BASE_FUNCTIONAL_H bool operator()(const Tp &val_r) const
bool operator()(const Tp &val_r)
Or< TACondition, TBCondition > or_c(TACondition conda_r, TBCondition condb_r)
Convenience function for creating a Or from two conditions conda_r OR condb_r.
Logical functor chaining TACondition OR TBCondition.
GetLast< Tp > getLast(Tp &result_r)
Convenience function for creating GetLast.
Store all results found to some output_iterator.
GetFirst< Tp > getFirst(Tp &result_r)
Convenience function for creating GetFirst.
TConst operator()(Tp) const
False false_c()
Convenience function for creating a False.
Or(TACondition conda_r, TBCondition condb_r)
bool operator()(Tp t) const
bool operator()(Tp) const
Constant< TConst > constant(const TConst &value)
Logical functor always false.
bool operator()(Tp) const
GetAll(TOutputIterator result_r)
True true_c()
Convenience function for creating a True.
Strore the 1st result found in the variable passed to the ctor.
Constant(const TConst &value)
Logical functor chaining TACondition AND TBCondition.
bool operator()(Tp t) const
Strore the last result found in the variable passed to the ctor.
Not< TCondition > not_c(TCondition cond_r)
Convenience function for creating a Not from TCondition.
Chain< TACondition, TBCondition > chain(TACondition conda_r, TBCondition condb_r)
Convenience function for creating a Chain from two conditions conda_r and condb_r.
Chain(TACondition conda_r, TBCondition condb_r)
bool operator()(Tp t) const
bool operator()(const Tp &val_r)
Easy-to use interface to the ZYPP dependency resolver.
Logical functor inverting TCondition.
Logical functor always true.
GetAll< TOutputIterator > getAll(TOutputIterator result_r)
Convenience function for creating GetAll.
TConst operator()() const