souffle  2.0.2-371-g6315b36
Data Structures | Functions
souffle::ast::detail Namespace Reference

Data Structures

struct  is_ast_visitor
 A type trait determining whether a given type is a visitor or not. More...
 
struct  is_ast_visitor< const T >
 
struct  is_ast_visitor< T & >
 
class  LambdaNodeMapper
 A special NodeMapper wrapping a lambda conducting node transformations. More...
 
struct  LambdaVisitor
 A specialized visitor wrapping a lambda function – an auxiliary type required for visitor convenience functions. More...
 

Functions

template<typename R , typename N >
LambdaVisitor< R, N > makeLambdaVisitor (const std::function< R(const N &)> &fun)
 A factory function for creating LambdaVisitor instances. More...
 

Function Documentation

◆ makeLambdaVisitor()

template<typename R , typename N >
LambdaVisitor<R, N> souffle::ast::detail::makeLambdaVisitor ( const std::function< R(const N &)> &  fun)

A factory function for creating LambdaVisitor instances.

Definition at line 298 of file Visitor.h.

300  {

References souffle::ast::detail::is_ast_visitor< T >::value.

Referenced by souffle::ast::visitDepthFirst().