XACC
|
Public Member Functions | |
CountGatesOfTypeVisitor (std::shared_ptr< CompositeInstruction > f) | |
virtual void | visit (GateType &gate) |
int | countGates () |
Public Member Functions inherited from xacc::BaseInstructionVisitor | |
~BaseInstructionVisitor () override | |
const std::string | name () const override |
const std::string | description () const override |
virtual const std::string | toString () |
virtual std::string & | getNativeAssembly () |
void | resetNativeAssembly () |
Public Member Functions inherited from xacc::Identifiable | |
virtual | ~Identifiable () |
Public Member Functions inherited from xacc::InstructionVisitor< GateType > | |
virtual | ~InstructionVisitor () |
Protected Attributes | |
int | count = 0 |
std::shared_ptr< CompositeInstruction > | function |
Protected Attributes inherited from xacc::BaseInstructionVisitor | |
std::string | native = "" |
|
inlinevirtual |
This method should be implemented by subclasses to perform Visitor-specific behavior on the given instance of the template parameter T.
Implements xacc::InstructionVisitor< GateType >.