ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nest::stmt::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::stmt::Node::~Node ( )
virtualdefault

Member Function Documentation

◆ accept() [1/2]

template<typename T >
T nest::stmt::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::stmt::Node::accept ( Visitor< T > *  v)
inline

Definition at line 43 of file Node.h.

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

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