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
template<typename RetT = void, template< class, class > class CatchAll = policy::DefaultCatchAll>
template<typename T>
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
-
| T | The type of the visited object. Should be inferred by the compiler. |
- Parameters
-
| visited | The visited visitable object. |
| guest | The visiting object. |