.. index:: pair: class; QPanda::ArchGraph .. _doxid-class_q_panda_1_1_arch_graph: class QPanda::ArchGraph ======================= .. toctree:: :hidden: Overview ~~~~~~~~ This is the base class for the architectures that this project will be supporting. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ArchGraph: public :ref:`QPanda::WeightedGraph` { public: // typedefs typedef ArchGraph* :target:`Ref`; typedef std::unique_ptr :target:`uRef`; typedef std::shared_ptr :target:`sRef`; typedef std::vector> :target:`RegsVector`; typedef RegsVector::iterator :target:`RegsIterator`; // methods uint32_t :target:`putVertex`(std::string s); void :target:`putReg`( std::string id, std::string size ); uint32_t :target:`get_vertex_count`(); std::vector> :target:`get_adjacent_matrix`(); std::vector> :target:`get_adj_weight_matrix`(); bool :ref:`isGeneric`(); :ref:`RegsIterator` :target:`reg_begin`(); :ref:`RegsIterator` :target:`reg_end`(); std::vector> :target:`get_all_edges`(); static bool :target:`ClassOf`(const :ref:`Graph`* g); static :ref:`uRef` :target:`Create`(uint32_t n); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef :ref:`Graph`* :ref:`Ref`; typedef std::unique_ptr<:ref:`Graph`> :ref:`uRef`; typedef std::shared_ptr<:ref:`Graph`> :ref:`sRef`; typedef :ref:`WeightedGraph`<:ref:`T`>* :ref:`Ref`; typedef std::unique_ptr<:ref:`WeightedGraph`<:ref:`T`>> :ref:`uRef`; typedef std::shared_ptr<:ref:`WeightedGraph`<:ref:`T`>> :ref:`sRef`; // enums enum :ref:`Kind`; enum :ref:`Type`; // methods uint32_t :ref:`inDegree`(uint32_t i) const; uint32_t :ref:`outDegree`(uint32_t i) const; uint32_t :ref:`size`() const; std::set& :ref:`succ`(uint32_t i); const std::set& :ref:`c_succ`(uint32_t i) const; std::set& :ref:`pred`(uint32_t i); std::set :ref:`adj`(uint32_t i) const; void :ref:`putEdge`(uint32_t i, uint32_t j); bool :ref:`hasEdge`(uint32_t i, uint32_t j) const; bool :ref:`isWeighted`() const; bool :ref:`isArch`() const; bool :ref:`isDirectedGraph`() const; std::string :ref:`dotify`(std::string name = "Dump") const; static bool :ref:`ClassOf`(const :ref:`Graph`* g); static :ref:`uRef` :ref:`Create`(uint32_t n, :ref:`Type` ty = :ref:`Undirected`); void :ref:`putEdge`(uint32_t i, uint32_t j, :ref:`T` w); void :ref:`setW`(uint32_t i, uint32_t j, :ref:`T` w); :ref:`T` :ref:`getW`(uint32_t i, uint32_t j) const; static bool :ref:`ClassOf`(const :ref:`Graph`* g); static :ref:`uRef` :ref:`Create`(uint32_t n, :ref:`Type` ty = :ref:`Undirected`); .. _details-class_q_panda_1_1_arch_graph: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ This is the base class for the architectures that this project will be supporting. Methods ------- .. index:: pair: function; isGeneric .. _doxid-class_q_panda_1_1_arch_graph_1a172cd0ae8b09851c48582f2862d596f6: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isGeneric() Returns true if this is a generic architechture graph, i.e.: it was not created by any of the architechtures compiled within the program.