Go to the documentation of this file. 1 #ifndef CommonToolsUtilsExpressionEvaluatorTemplates_H
2 #define CommonToolsUtilsExpressionEvaluatorTemplates_H
12 template <
typename Ret,
typename... Args>
18 template <
typename Object>
20 virtual bool eval(Object
const&)
const = 0;
24 template <
typename Object>
26 virtual double eval(Object
const&)
const = 0;
30 template <
typename Object>
33 using Mask = std::vector<bool>;
44 template <
typename Object>
57 template <
typename Object>
60 using Indices = std::vector<unsigned int>;
64 for (
auto const&
c :
cands) {
76 #endif // CommonToolsUtilsExpressionEvaluatorTemplates_H
virtual void eval(Collection const &, Mask &) const =0
virtual ~SelectInCollection()
std::vector< unsigned int > Indices
std::vector< Object const * > Collection
std::vector< Object const * > Collection
virtual ~genericExpression()
virtual ~MaskCollection()
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
virtual void eval(Collection const &, Indices &) const =0
void mask(Collection const &cands, Mask &mask, F f) const
virtual Ret operator()(Args...) const =0
virtual void eval(Collection &) const =0
virtual double eval(Object const &) const =0
void select(Collection &cands, F f) const
Container::value_type value_type
virtual ~SelectIndecesInCollection()
void select(Collection const &cands, Indices &inds, F f) const
std::vector< Object const * > Collection
virtual bool eval(Object const &) const =0