#include <InstructionVisitor.hpp>
BaseInstructionVisitable is an interface that is to be implemented by any and all Instructions that want to be available for visitation. Derivations of this class simply inherit from BaseInstructionVisitable and declare the DEFINE_VISITABLE macro alongside the rest of the classes member methods.
virtual xacc::BaseInstructionVisitable::~BaseInstructionVisitable |
( |
| ) |
|
|
inlinevirtual |
Accept the provided BaseInstructionVisitor as a shared pointer.
- Parameters
-
visitor | The visitor to invoke visit() on. |
Accept the provided BaseInstructionVisitor as a raw pointer.
- Parameters
-
visitor | The visitor to invoke visit() on. |
template<class T >
static void xacc::BaseInstructionVisitable::acceptImpl |
( |
T & |
visited, |
|
|
std::shared_ptr< BaseInstructionVisitor > |
visitor |
|
) |
| |
|
inlinestaticprotected |
This method is invoked by the DEFINE_VISITABLE macro to invoke the visit method on the provided visitor. This method takes the visitor as a shared pointer.
This method is invoked by the DEFINE_VISITABLE macro to invoke the visit method on the provided visitor. This method takes the visitor as a raw pointer.
The documentation for this class was generated from the following file: