libopenfpga/libarchopenfpga/src/check_circuit_library.cpp
/************************************************************************
 * A generic function to check the port list of circuit models in a given type 
 *  If not found, we give an error
 ***********************************************************************/
A generic function to check the port list of circuit models in a given type
If not found, we give an error
A generic function to check the port list of circuit models in a given type If not found we give an error
static 
size_t check_circuit_model_port_required(const CircuitLibrary& circuit_lib,
                                         const enum e_circuit_model_type& circuit_model_type_to_check, 
                                         const std::vector<enum e_circuit_model_port_type>& port_types_to_check) {
  size_t num_err = 0;
  for (const auto& id : circuit_lib.models_by_type(circuit_model_type_to_check)) {
    num_err += check_one_circuit_model_port_required(circuit_lib, id, port_types_to_check); 
  }
  return num_err;
}
static size_t check_circuit_model_port_required ( const CircuitLibrary & circuit_lib , const enum e_circuit_model_type & circuit_model_type_to_check , const std :: vector < enum e_circuit_model_port_type > & port_types_to_check ) { size_t num_err = 0 ; for ( const auto & id : circuit_lib . models_by_type ( circuit_model_type_to_check ) ) { num_err += check_one_circuit_model_port_required ( circuit_lib , id , port_types_to_check ) ; } return num_err ; }
A generic function to check the port list of circuit models in a given type
  If not found, we give an error
A generic function to check the port list of circuit models in a given type If not found we give an error