XACC
Public Member Functions | Protected Attributes | List of all members
xacc::quantum::CountGatesOfTypeVisitor< GateType > Class Template Reference
Inheritance diagram for xacc::quantum::CountGatesOfTypeVisitor< GateType >:
xacc::BaseInstructionVisitor xacc::InstructionVisitor< GateType > xacc::Identifiable

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< CompositeInstructionfunction
 
- Protected Attributes inherited from xacc::BaseInstructionVisitor
std::string native = ""
 

Member Function Documentation

template<typename GateType >
virtual void xacc::quantum::CountGatesOfTypeVisitor< GateType >::visit ( GateType &  )
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 >.


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