|
libzypp
15.24.2
|
Some logical functors to build more complex queries: More...
Classes | |
| struct | zypp::functor::Constant< TConst > |
| struct | zypp::functor::True |
Logical functor always true. More... | |
| struct | zypp::functor::False |
Logical functor always false. More... | |
| struct | zypp::functor::Not< TCondition > |
| Logical functor inverting TCondition. More... | |
| struct | zypp::functor::Or< TACondition, TBCondition > |
Logical functor chaining TACondition OR TBCondition. More... | |
| struct | zypp::functor::Chain< TACondition, TBCondition > |
Logical functor chaining TACondition AND TBCondition. More... | |
Functions | |
| template<class TConst > | |
| Constant< TConst > | zypp::functor::constant (const TConst &value) |
| True | zypp::functor::true_c () |
| Convenience function for creating a True. More... | |
| False | zypp::functor::false_c () |
| Convenience function for creating a False. More... | |
| template<class TCondition > | |
| Not< TCondition > | zypp::functor::not_c (TCondition cond_r) |
| Convenience function for creating a Not from TCondition. More... | |
| template<class TACondition , class TBCondition > | |
| Or< TACondition, TBCondition > | zypp::functor::or_c (TACondition conda_r, TBCondition condb_r) |
| Convenience function for creating a Or from two conditions conda_r OR condb_r. More... | |
| template<class TACondition , class TBCondition > | |
| Chain< TACondition, TBCondition > | zypp::functor::chain (TACondition conda_r, TBCondition condb_r) |
| Convenience function for creating a Chain from two conditions conda_r and condb_r. More... | |
Some logical functors to build more complex queries:
true or false. TACondition and TBCondition are functors, and Chain evaluates TACondition && TBCondition.As it's no fun to get and write the correct template arguments, convenience functions creating the correct functor are provided.
true_c and false_c. (provided just to match the schema) not_c. Takes a functor as argument and returns the appropriate Not functor. chain. Takes two functors and returns the appropriate Cain functor.
|
inline |
Definition at line 236 of file Functional.h.
|
inline |
Convenience function for creating a True.
Definition at line 250 of file Functional.h.
|
inline |
Convenience function for creating a False.
Definition at line 265 of file Functional.h.
|
inline |
Convenience function for creating a Not from TCondition.
Definition at line 288 of file Functional.h.
|
inline |
Convenience function for creating a Or from two conditions conda_r OR condb_r.
Definition at line 317 of file Functional.h.
|
inline |
Convenience function for creating a Chain from two conditions conda_r and condb_r.
Definition at line 346 of file Functional.h.