20 #ifndef L_FUNCTORS_H_INCLUDED
21 #define L_FUNCTORS_H_INCLUDED
48 Increment(
const T& initial_value = T()) : value(initial_value)
75 Increase_by(
const T& initial_value,
const T& increase_value) :
76 value(initial_value), inc_value(increase_value)
108 return lhs[m_index] < rhs[m_index];
Identity function.
Definition: l_functors.h:144
T argument_type
Definition: l_functors.h:167
T operator()()
Definition: l_functors.h:51
const T * operator()(const T &t) const
Definition: l_functors.h:226
const T * result_type
Definition: l_functors.h:223
bool operator()(const T &lhs, const T &rhs) const
Definition: l_functors.h:106
Int_matrix::Value_type max(const Int_matrix &mat)
Return the maximum value in this matrix.
Definition: l_int_matrix.h:1397
double result_type
Definition: l_functors.h:122
T argument_type
Definition: l_functors.h:222
Predicate that compares the kth element of a indexable type.
Definition: l_functors.h:94
Generator that increases (using +=) itself by the given value everytime it is called.
Definition: l_functors.h:65
~Identity()
Definition: l_functors.h:157
~Every_nth_element()
Definition: l_functors.h:189
double operator()(const V &v) const
Definition: l_functors.h:131
Generator that increments (++) its state everytime it is called. Useful for creating sequences of con...
Definition: l_functors.h:39
bool operator()(const T &t) const
Definition: l_functors.h:209
T result_type
Definition: l_functors.h:147
Increase_by(const T &initial_value, const T &increase_value)
Definition: l_functors.h:75
~Index_less_than()
Definition: l_functors.h:111
Select_coordinate(int coordinate)
Definition: l_functors.h:128
T operator()()
Definition: l_functors.h:79
bool operator()(const T &) const
Definition: l_functors.h:178
Predicate that returns true if address of element equals given.
Definition: l_functors.h:197
Functor that returns the address of a given object.
Definition: l_functors.h:219
T result_type
Definition: l_functors.h:42
Index_less_than(int index)
Definition: l_functors.h:103
T argument_type
Definition: l_functors.h:200
Selects a coordinate from a vector type.
Definition: l_functors.h:119
Identity()
Definition: l_functors.h:150
bool result_type
Definition: l_functors.h:97
~Increase_by()
Definition: l_functors.h:86
const T operator()(const T &op1, const T &op2)
Definition: l_functors.h:253
Int_matrix::Value_type min(const Int_matrix &mat)
Return the minimum value in this matrix.
Definition: l_int_matrix.h:1385
bool result_type
Definition: l_functors.h:201
~Increment()
Definition: l_functors.h:56
Compare_address(const T *Tp)
Definition: l_functors.h:207
Definition: l_functors.h:250
~Select_coordinate()
Definition: l_functors.h:136
const T operator()(const T &op1, const T &op2)
Definition: l_functors.h:241
T operator()(const T &t) const
Definition: l_functors.h:152
T result_type
Definition: l_functors.h:68
Every_nth_element(int n, int start=1)
Definition: l_functors.h:175
Definition: l_functors.h:238
Increment(const T &initial_value=T())
Definition: l_functors.h:48
bool result_type
Definition: l_functors.h:168
Predicate that returns true every nth call.
Definition: l_functors.h:164