souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Member Functions
souffle::ast::Functor Class Referenceabstract

Abstract functor class. More...

#include <Functor.h>

Inheritance diagram for souffle::ast::Functor:
Inheritance graph
Collaboration diagram for souffle::ast::Functor:
Collaboration graph

Public Member Functions

Functorclone () const override=0
 Create clone. More...
 
- 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 SrcLocationgetSrcLoc () 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

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
bool equal (const Node &node) const override
 Abstract equality check for two AST nodes. More...
 
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::Node
virtual void print (std::ostream &os) const =0
 Output to a given output stream. More...
 

Additional Inherited Members

- Protected Attributes inherited from souffle::ast::Term
VecOwn< Argumentargs
 Arguments. More...
 

Detailed Description

Abstract functor class.

Definition at line 36 of file Functor.h.

Member Function Documentation

◆ clone()

Functor* souffle::ast::Functor::clone ( ) const
overridepure virtual

◆ Term() [1/3]

template<typename... Operands>
souffle::ast::Term::Term ( typename...  Operands)
inlineprotected

Definition at line 45 of file Term.h.

45 {})

◆ Term() [2/3]

template<typename... Operands>
souffle::ast::Term::Term ( typename...  Operands)
inlineprotected

Definition at line 48 of file Term.h.

48  :
49  /** Get arguments */

◆ Term() [3/3]

souffle::ast::Term::Term
inlineprotected

Definition at line 51 of file Term.h.

55  {

The documentation for this class was generated from the following file: