souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
53 class Choice :
public RelationOperation,
public AbstractChoice {
55 Choice(std::string
rel,
size_t ident, Own<Condition> cond, Own<Operation> nested,
75 void print(std::ostream& os,
int tabpos)
const override {
84 bool equal(
const Node& node)
const override {
85 const auto& other =
static_cast<const Choice&
>(node);
const std::string profileText
Text used by the profiler.
AbstractChoice(Own< Condition > cond)
void print(std::ostream &os, int tabpos) const override
Pretty print with indentation.
void apply(const NodeMapper &map)
void apply(const NodeMapper &map) override
Apply the mapper to all child nodes.
RelationOperation(std::string rel, int ident, Own< Operation > nested, std::string profileText="")
void apply(const NodeMapper &map) override
Apply the mapper to all child nodes.
Operation & getOperation() const
Get nested operation.
auto map(const std::vector< A > &xs, F &&f)
Applies a function to each element of a vector and returns the results.
const std::string & getRelation() const
Get search relation.
const std::string relation
Search relation.
Node is a superclass for all RAM IR classes.
auto clone(const std::vector< A * > &xs)
bool equal(const Node &node) const
An abstract class for manipulating RAM Nodes by substitution.
detail::multiplying_printer< T > times(const T &value, unsigned num)
A utility printing a given value multiple times.
Choice * clone() const override
Create a clone (i.e.
Choice(std::string rel, size_t ident, Own< Condition > cond, Own< Operation > nested, std::string profileText="")
const std::string & getProfileText() const
Get profile text.
bool equal(const Node &node) const override
Equality check for two RAM nodes.
int getTupleId() const
Get identifier.
std::vector< const Node * > getChildNodes() const
Find a tuple in a relation such that a given condition holds.
std::vector< const Node * > getChildNodes() const override
Obtain list of all embedded child nodes.
bool equal(const Node &node) const override
Equality check for two RAM nodes.
Own< Condition > condition
Condition for which a tuple in the relation may hold.
void rel(size_t limit, bool showLimit=true)
Own< Operation > nestedOperation
Nested operation.
const Condition & getCondition() const
Getter for the condition.
void print(std::ostream &os, int tabpos) const override
Pretty print with indentation.