Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <Node.h>
Public Member Functions | |
NodeBase (const std::type_index &type_index) | |
virtual | ~NodeBase ()=default |
virtual std::string | repr () const =0 |
virtual void | visit (Visitor &) const =0 |
const std::type_index & | type () const |
Private Attributes | |
const std::type_index | m_type_index |
To make the visitor independent of the primitive type wrapped by a Node, all instances of the templated class inherit from this one, which declares the API required by the visitor
|
inlineexplicit |
|
virtualdefault |
Destructor
|
pure virtual |
Implemented in Pyston::Cast< To, From >, Pyston::Constant< T >, Pyston::Function< R, Args >, Pyston::Placeholder< T >, Pyston::AttrGetter< T >, and Pyston::PythonCall< T >.
Referenced by Pyston::GraphvizGenerator::enter(), and Pyston::TextReprVisitor::exit().
|
inline |
Definition at line 71 of file Node.h.
References m_type_index.
|
pure virtual |
Entry point for the visitor
Implemented in Pyston::Cast< To, From >, Pyston::Constant< T >, Pyston::Function< R, Args >, Pyston::Placeholder< T >, Pyston::AttrGetter< T >, and Pyston::PythonCall< T >.
Referenced by Example::generateGraphviz().
|
private |