|
Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
|
The base class for visitable types. More...
#include <visitable.hpp>
Static Protected Member Functions | |
| template<typename T> | |
| static VisitReturnType | AcceptBase (T &visited, VisitorBase &guest) |
| Abstract method for how to accept a visitor. | |
The base class for visitable types.
Implemented based on Alexandrescu, 2001, and Hythem Sidky's SAPHRON package, with his permission.
|
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.
| T | The type of the visited object. Should be inferred by the compiler. |
| visited | The visited visitable object. |
| guest | The visiting object. |