Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
bertini::VisitableBase< RetT, CatchAll > Class Template Referenceabstract

The base class for visitable types. More...

#include <visitable.hpp>

Inheritance diagram for bertini::VisitableBase< RetT, CatchAll >:
[legend]

Static Protected Member Functions

template<typename T>
static VisitReturnType AcceptBase (T &visited, VisitorBase &guest)
 Abstract method for how to accept a visitor.
 

Detailed Description

template<typename RetT = void, template< class, class > class CatchAll = policy::DefaultCatchAll>
class bertini::VisitableBase< RetT, CatchAll >

The base class for visitable types.

Implemented based on Alexandrescu, 2001, and Hythem Sidky's SAPHRON package, with his permission.

See also
BERTINI_DEFAULT_VISITABLE

Member Function Documentation

◆ AcceptBase()

template<typename RetT = void, template< class, class > class CatchAll = policy::DefaultCatchAll>
template<typename T>
static VisitReturnType bertini::VisitableBase< RetT, CatchAll >::AcceptBase ( T & visited,
VisitorBase & guest )
inlinestaticprotected

Abstract method for how to accept a visitor.

This function simply Forwards to the Visit method of the visitor, if the visitor's type is known. If known, invokes the behaviour defined by the CatchAll template parameter.

Template Parameters
TThe type of the visited object. Should be inferred by the compiler.
Parameters
visitedThe visited visitable object.
guestThe visiting object.

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