Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::Visitor< VisitedT, RetT > Class Template Referenceabstract

The first non-trivial visitor class. More...

#include <visitor.hpp>

Public Types

typedef RetT ReturnType
 The type returned when visiting.

Public Member Functions

virtual ReturnType Visit (VisitedT const &)=0
 Visit an object of the visited type.
virtual ~Visitor ()=default

Detailed Description

template<class VisitedT, typename RetT = void>
class bertini::Visitor< VisitedT, RetT >

The first non-trivial visitor class.

Derive from this when creating new visitor types.

Template Parameters
VisitedTThe type of object the visitor visits.
RetTThe type of object to be returned when visiting. Default is void.

Member Typedef Documentation

◆ ReturnType

template<class VisitedT, typename RetT = void>
typedef RetT bertini::Visitor< VisitedT, RetT >::ReturnType

The type returned when visiting.

Constructor & Destructor Documentation

◆ ~Visitor()

template<class VisitedT, typename RetT = void>
virtual bertini::Visitor< VisitedT, RetT >::~Visitor ( )
virtualdefault

Member Function Documentation

◆ Visit()

template<class VisitedT, typename RetT = void>
virtual ReturnType bertini::Visitor< VisitedT, RetT >::Visit ( VisitedT const & )
pure virtual

Visit an object of the visited type.