souffle
2.0.2-371-g6315b36
|
User-Defined functor class. More...
#include <UserDefinedFunctor.h>
Public Member Functions | |
UserDefinedFunctor * | clone () const override |
Create clone. More... | |
std::optional< TypeAttribute > | getFinalReturnType () const |
const std::string & | getName () const |
return the name More... | |
void | setFinalReturnType (TypeAttribute newType) |
UserDefinedFunctor (std::string name) | |
UserDefinedFunctor (std::string name, VecOwn< Argument > args, SrcLocation loc={}) | |
Public Member Functions inherited from souffle::ast::Term | |
void | addArgument (Own< Argument > arg) |
Add argument to argument list. More... | |
void | apply (const NodeMapper &map) override |
Apply the mapper to all child nodes. More... | |
std::vector< Argument * > | getArguments () const |
Get arguments. More... | |
std::vector< const Node * > | getChildNodes () const override |
Obtain a list of all embedded AST child nodes. More... | |
Public Member Functions inherited from souffle::ast::Argument | |
Node (SrcLocation loc={}) | |
Public Member Functions inherited from souffle::ast::Node | |
std::string | extloc () const |
Return source location of the syntactic element. More... | |
const SrcLocation & | getSrcLoc () const |
Return source location of the Node. More... | |
Node (SrcLocation loc={}) | |
bool | operator!= (const Node &other) const |
Inequality check for two AST nodes. More... | |
bool | operator== (const Node &other) const |
Equivalence check for two AST nodes. More... | |
void | setSrcLoc (SrcLocation l) |
Set source location for the Node. More... | |
virtual | ~Node ()=default |
Protected Member Functions | |
bool | equal (const Node &node) const override |
Abstract equality check for two AST nodes. More... | |
void | print (std::ostream &os) const override |
Output to a given output stream. More... | |
Protected Member Functions inherited from souffle::ast::Functor | |
template<typename... Operands> | |
Term (Operands &&... operands) | |
template<typename... Operands> | |
Term (SrcLocation loc, Operands &&... operands) | |
Term (VecOwn< Argument > operands, SrcLocation loc={}) | |
Protected Member Functions inherited from souffle::ast::Term | |
template<typename... Operands> | |
Term (Operands &&... operands) | |
template<typename... Operands> | |
Term (SrcLocation loc, Operands &&... operands) | |
Term (VecOwn< Argument > operands, SrcLocation loc={}) | |
Protected Attributes | |
std::optional< TypeAttribute > | finalTranslatorReturnType |
const std::string | name |
Name. More... | |
Protected Attributes inherited from souffle::ast::Term | |
VecOwn< Argument > | args |
Arguments. More... | |
User-Defined functor class.
Definition at line 46 of file UserDefinedFunctor.h.
|
inlineexplicit |
|
inline |
Definition at line 50 of file UserDefinedFunctor.h.
|
inlineoverridevirtual |
|
inlineoverrideprotectedvirtual |
Abstract equality check for two AST nodes.
Reimplemented from souffle::ast::Term.
Definition at line 79 of file UserDefinedFunctor.h.
|
inline |
Definition at line 70 of file UserDefinedFunctor.h.
|
inline |
return the name
Definition at line 54 of file UserDefinedFunctor.h.
References finalTranslatorReturnType.
|
inlineoverrideprotectedvirtual |
Output to a given output stream.
Implements souffle::ast::Node.
Definition at line 75 of file UserDefinedFunctor.h.
|
inline |
Definition at line 66 of file UserDefinedFunctor.h.
|
protected |
Definition at line 88 of file UserDefinedFunctor.h.
Referenced by getName().
|
protected |