.. index:: pair: struct; QPanda::CandidateSelector .. _doxid-struct_q_panda_1_1_candidate_selector: struct QPanda::CandidateSelector ================================ .. toctree:: :hidden: Overview ~~~~~~~~ Interface for selecting candidates (if they are greater than a max) in phase 1. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct CandidateSelector { // typedefs typedef CandidateSelector* :target:`Ref`; typedef std::unique_ptr :target:`uRef`; // methods virtual std::vector<:ref:`MappingCandidate`> :ref:`select`(uint32_t maxCandidates, const std::vector<:ref:`MappingCandidate`>& candidates) = 0; }; .. _details-struct_q_panda_1_1_candidate_selector: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Interface for selecting candidates (if they are greater than a max) in phase 1. Methods ------- .. index:: pair: function; select .. _doxid-struct_q_panda_1_1_candidate_selector_1af612716d32cfe7b564bc638aff776e6a: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual std::vector<:ref:`MappingCandidate`> select( uint32_t maxCandidates, const std::vector<:ref:`MappingCandidate`>& candidates ) = 0 Selects *maxCandidates* from *candidates*.