souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
35 std::function<Own<Node>(Own<Node>)> filterRewriter = [&](Own<Node> node) -> Own<Node> {
40 for (
auto& cond : condList) {
41 sortedConds.emplace_back(cond->clone());
44 return rca->getComplexity(a.get()) < rca->getComplexity(b.get());
47 if (!std::equal(sortedConds.begin(), sortedConds.end(), condList.begin(),
A relational algebra query.
Own< Condition > toCondition(const VecOwn< Condition > &conds)
Convert list of conditions to a conjunction.
VecOwn< Condition > toConjunctionList(const Condition *condition)
Convert terms of a conjunction to a list.
Abstract class for conditions and boolean values in RAM.
Checks whether a given condition holds.
auto clone(const std::vector< A * > &xs)
std::vector< A > filter(std::vector< A > xs, F &&f)
Filter a vector to include certain elements.
l j a showGridBackground &&c b raw series this eventEmitter b
void visitDepthFirst(const Node &root, Visitor< R, Ps... > &visitor, Args &... args)
A utility function visiting all nodes within the RAM fragments rooted by the given node recursively i...
std::vector< Own< A > > VecOwn
LambdaNodeMapper< Lambda > makeLambdaRamMapper(const Lambda &lambda)
Creates a node mapper based on a corresponding lambda expression.