souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
40 class UserDefinedFunctor :
public Functor {
45 : Functor(std::move(
args), std::move(loc)),
name(std::move(
name)){};
69 void print(std::ostream& os)
const override {
73 bool equal(
const Node& node)
const override {
VecOwn< Argument > args
Arguments.
const std::string & getName() const
return the name
User-Defined functor class.
auto clone(const std::vector< A * > &xs)
UserDefinedFunctor * clone() const override
Create clone.
detail::joined_sequence< Iter, Printer > join(const Iter &a, const Iter &b, const std::string &sep, const Printer &p)
Creates an object to be forwarded to some output stream for printing sequences of elements interspers...
void print(std::ostream &os) const override
Output to a given output stream.
bool equal(const Node &node) const override
Abstract equality check for two AST nodes.
Abstract class for syntactic elements in an input program.
const std::string name
Name.
UserDefinedFunctor(std::string name)
std::optional< TypeAttribute > getFinalReturnType() const
std::optional< TypeAttribute > finalTranslatorReturnType
const SrcLocation & getSrcLoc() const
Return source location of the Node.
bool equal(const Node &node) const override
Abstract equality check for two AST nodes.
void setFinalReturnType(TypeAttribute newType)