Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
core::VisitorContextAux< ReturnType, Visitor, Params > Class Template Reference

Class implementing an actual visitor interface to the visitor. More...

#include <visitor.hpp>

Inheritance diagram for core::VisitorContextAux< ReturnType, Visitor, Params >:
[legend]

Public Member Functions

 VisitorContextAux (Params &&... params)
 Constructor for initialisation of the visitor context, i.e. additional call parameters. More...
 
template<class Inherit , size_t ... Indexes>
void call (const Inherit &inherit, std::index_sequence< Indexes ... >)
 Call method to the visitors visit method. The actuall class of visited object is already evaluated here. More...
 
template<class Inherit , size_t ... Indexes>
void call (Inherit &inherit, std::index_sequence< Indexes ... >)
 Call method to the visitors visit method. The actuall class of visited object is already evaluated here. More...
 
template<class Inherit , size_t ... Indexes>
void call (Inherit &&inherit, std::index_sequence< Indexes ... >)
 Call method to the visitors visit method. The actuall class of visited object is already evaluated here. More...
 
ReturnType getResult ()
 Visit result getter. More...
 

Detailed Description

template<class ReturnType, class Visitor, class ... Params>
class core::VisitorContextAux< ReturnType, Visitor, Params >

Class implementing an actual visitor interface to the visitor.

The interface is represented by the return type, the visitor class implementing the callbacks, and additional params of the call.

Constructor & Destructor Documentation

◆ VisitorContextAux()

template<class ReturnType , class Visitor , class ... Params>
core::VisitorContextAux< ReturnType, Visitor, Params >::VisitorContextAux ( Params &&...  params)
inline

Constructor for initialisation of the visitor context, i.e. additional call parameters.

Member Function Documentation

◆ call() [1/3]

template<class ReturnType , class Visitor , class ... Params>
template<class Inherit , size_t ... Indexes>
void core::VisitorContextAux< ReturnType, Visitor, Params >::call ( const Inherit &  inherit,
std::index_sequence< Indexes ... >   
)
inline

Call method to the visitors visit method. The actuall class of visited object is already evaluated here.

Here is the call graph for this function:

◆ call() [2/3]

template<class ReturnType , class Visitor , class ... Params>
template<class Inherit , size_t ... Indexes>
void core::VisitorContextAux< ReturnType, Visitor, Params >::call ( Inherit &&  inherit,
std::index_sequence< Indexes ... >   
)
inline

Call method to the visitors visit method. The actuall class of visited object is already evaluated here.

Here is the call graph for this function:

◆ call() [3/3]

template<class ReturnType , class Visitor , class ... Params>
template<class Inherit , size_t ... Indexes>
void core::VisitorContextAux< ReturnType, Visitor, Params >::call ( Inherit &  inherit,
std::index_sequence< Indexes ... >   
)
inline

Call method to the visitors visit method. The actuall class of visited object is already evaluated here.

Here is the call graph for this function:

◆ getResult()

template<class ReturnType , class Visitor , class ... Params>
ReturnType core::VisitorContextAux< ReturnType, Visitor, Params >::getResult ( )
inline

Visit result getter.


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