ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nest::expr::Node Struct Reference

#include <Node.h>

Public Member Functions

virtual ~Node ()=default
 
template<typename T >
accept (Visitor< T > *v)
 
template<typename T >
accept (Visitor< T > &v)
 

Detailed Description

Definition at line 31 of file Node.h.

Constructor & Destructor Documentation

◆ ~Node()

virtual nest::expr::Node::~Node ( )
virtualdefault

Member Function Documentation

◆ accept() [1/2]

template<typename T >
T nest::expr::Node::accept ( Visitor< T > &  v)
inline

Definition at line 56 of file Node.h.

56{ return accept(&v); }
T accept(Visitor< T > *v)
Definition Node.h:43

References accept().

Referenced by accept().

◆ accept() [2/2]

template<typename T >
T nest::expr::Node::accept ( Visitor< T > *  v)
inline

Definition at line 43 of file Node.h.

44 {
45#define EXPR(Tag) \
46 if (auto e = NEST_EXPR_CAST_METHOD_NAME(Tag)()) \
47 { \
48 return v->visit(e); \
49 }
50#include "nest/expr/Node.def"
51#undef EXPR
52
53 throw std::runtime_error{"unreachable"};
54 }

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