File src/ItemFilter.cpp changed (mode: 100644) (index 6692066..ce995bf) |
... |
... |
ItemFilter::passes(Item &item) const |
67 |
67 |
} |
} |
68 |
68 |
|
|
69 |
69 |
bool |
bool |
70 |
|
ItemFilter::passes(std::function<accessor_f> accessor) const |
|
|
70 |
|
ItemFilter::passes(const std::function<accessor_f> &accessor) const |
71 |
71 |
{ |
{ |
72 |
72 |
std::string error; |
std::string error; |
73 |
73 |
return passes(accessor, error); |
return passes(accessor, error); |
74 |
74 |
} |
} |
75 |
75 |
|
|
76 |
76 |
bool |
bool |
77 |
|
ItemFilter::passes(std::function<accessor_f> accessor, std::string &error) const |
|
|
77 |
|
ItemFilter::passes(const std::function<accessor_f> &accessor, |
|
78 |
|
std::string &error) const |
78 |
79 |
{ |
{ |
79 |
80 |
error.clear(); |
error.clear(); |
80 |
81 |
|
|
File src/ItemFilter.hpp changed (mode: 100644) (index b8c716b..bc79cf0) |
... |
... |
public: |
80 |
80 |
* |
* |
81 |
81 |
* @returns @c true if it passes, and @c false otherwise. |
* @returns @c true if it passes, and @c false otherwise. |
82 |
82 |
*/ |
*/ |
83 |
|
bool passes(std::function<accessor_f> accessor) const; |
|
|
83 |
|
bool passes(const std::function<accessor_f> &accessor) const; |
84 |
84 |
|
|
85 |
85 |
/** |
/** |
86 |
86 |
* @brief Checks whether item represented by its fields passes the filter. |
* @brief Checks whether item represented by its fields passes the filter. |
|
... |
... |
public: |
90 |
90 |
* |
* |
91 |
91 |
* @returns @c true if it passes, and @c false otherwise. |
* @returns @c true if it passes, and @c false otherwise. |
92 |
92 |
*/ |
*/ |
93 |
|
bool passes(std::function<accessor_f> accessor, std::string &error) const; |
|
|
93 |
|
bool passes(const std::function<accessor_f> &accessor, |
|
94 |
|
std::string &error) const; |
94 |
95 |
|
|
95 |
96 |
private: |
private: |
96 |
97 |
/** |
/** |