1 #ifndef __JLANG__JPREDICATE__
2 #define __JLANG__JPREDICATE__
13 namespace JPP {
using namespace JLANG; }
22 template<
class JTypename_t,
class JComparator_t = JComparison::eq>
29 template<
class T,
class JResult_t,
class JComparator_t>
51 comparator(comparator)
63 return comparator(
object.*member, value);
76 template<
class T,
class JResult_t,
class JComparator_t>
82 typedef JResult_t (
T::*member_method)()
const;
98 comparator(comparator)
110 return comparator((
object.*
function)(), value);
114 member_method
function;
127 template<
class T,
class JResult_t>
129 const JResult_t value)
143 template<
class T,
class JResult_t,
class JComparator_t>
145 const JResult_t value,
146 const JComparator_t& comparator)
159 template<
class T,
class JResult_t>
161 const JResult_t value)
175 template<
class T,
class JResult_t,
class JComparator_t>
177 const JResult_t value,
178 const JComparator_t& comparator)
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member.
Template definition of auxiliary class to select objects.
comparator_type comparator
JComparator_t comparator_type
Type definition of comparator.
JResult_t T::* data_member
Type definition of data member.
JArgument< T >::argument_type argument_type
JClass< data_type >::argument_type argument_type
bool operator()(const T &object) const
Select objets.
JPredicate(member_method function, argument_type value, const comparator_type &comparator=comparator_type())
Constructor.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
bool operator()(const T &object) const
Select objets.
Template specialisation of JPredicate for selection of objects via data member.
Template specialisation of JPredicate for selection of objects via member method. ...
JComparator_t comparator_type
Type definition of comparator.
JClass< data_type >::argument_type argument_type
JPredicate(data_member member, argument_type value, const comparator_type &comparator=comparator_type())
Constructor.
comparator_type comparator