Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 42) sorted by relevance

12

/thrift-3.4.0/compiler/cpp/src/thrift/parse/
Dt_service.h48 std::vector<t_function*>::const_iterator iter; in validate_unique_members() local
49 for (iter = functions_.begin(); iter != functions_.end(); ++iter) { in validate_unique_members()
52 if (extends_->get_function_by_name((*iter)->get_name()) != NULL) { in validate_unique_members()
53 throw "Function " + (*iter)->get_name() + " is already defined in service " + name_; in validate_unique_members()
67 std::vector<t_function*>::const_iterator iter; in get_function_by_name() local
68 for (iter = functions_.begin(); iter != functions_.end(); ++iter) { in get_function_by_name()
69 if ((*iter)->get_name() == func_name) { in get_function_by_name()
70 return *iter; in get_function_by_name()
84 std::vector<t_function*>::const_iterator iter; in get_function_by_name() local
85 for (iter = functions_.begin(); iter != functions_.end(); ++iter) { in get_function_by_name()
[all …]
Dt_scope.h94 std::map<std::string, t_type*>::iterator iter; in print() local
95 for (iter = types_.begin(); iter != types_.end(); ++iter) { in print()
96 printf("%s => %s\n", iter->first.c_str(), iter->second->get_name().c_str()); in print()
101 std::map<std::string, t_const*>::iterator iter; in resolve_all_consts() local
102 for (iter = constants_.begin(); iter != constants_.end(); ++iter) { in resolve_all_consts()
103 t_const_value* cval = iter->second->get_value(); in resolve_all_consts()
104 t_type* ttype = iter->second->get_type(); in resolve_all_consts()
/thrift-3.4.0/contrib/fb303/cpp/
DServiceTracker.cpp202 map<string, pair<uint64_t, uint64_t> >::iterator iter; in finishService() local
203 iter = checkpointServiceDuration_.find(serviceMethod.name_); in finishService()
204 if (iter != checkpointServiceDuration_.end()) { in finishService()
205 iter->second.first++; in finishService()
206 iter->second.second += duration; in finishService()
250 map<string, pair<uint64_t, uint64_t> >::iterator iter; in reportCheckpoint() local
252 for (iter = checkpointServiceDuration_.begin(); in reportCheckpoint()
253 iter != checkpointServiceDuration_.end(); in reportCheckpoint()
254 ++iter) { in reportCheckpoint()
255 count = iter->second.first; in reportCheckpoint()
[all …]
/thrift-3.4.0/compiler/cpp/src/thrift/generate/
Dt_go_generator.h62 std::map<std::string, std::string>::const_iterator iter; in t_go_generator() local
70 for (iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_go_generator()
71 if (iter->first.compare("package_prefix") == 0) { in t_go_generator()
72 gen_package_prefix_ = (iter->second); in t_go_generator()
73 } else if (iter->first.compare("thrift_import") == 0) { in t_go_generator()
74 gen_thrift_import_ = (iter->second); in t_go_generator()
75 } else if (iter->first.compare("package") == 0) { in t_go_generator()
76 package_flag = (iter->second); in t_go_generator()
77 } else if (iter->first.compare("read_write_private") == 0) { in t_go_generator()
79 } else if (iter->first.compare("ignore_initialisms") == 0) { in t_go_generator()
[all …]
Dt_xml_generator.cc62 std::map<std::string, std::string>::const_iterator iter; in t_xml_generator() local
67 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_xml_generator()
68 if( iter->first.compare("merge") == 0) { in t_xml_generator()
70 } else if( iter->first.compare("no_default_ns") == 0) { in t_xml_generator()
72 } else if( iter->first.compare("no_namespaces") == 0) { in t_xml_generator()
75 throw "unknown option xml:" + iter->first; in t_xml_generator()
169 std::map<std::string, std::string>::iterator iter; in target_namespace() local
179 if ((iter = map.find("xml")) != map.end()) { in target_namespace()
180 return default_ns_prefix + iter->second; in target_namespace()
189 if ((iter = map.find("*")) != map.end()) { in target_namespace()
[all …]
Dt_gv_generator.cc53 std::map<std::string, std::string>::const_iterator iter; in t_gv_generator() local
56 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_gv_generator()
57 if( iter->first.compare("exceptions") == 0) { in t_gv_generator()
60 throw "unknown option gv:" + iter->first; in t_gv_generator()
127 std::list<string>::iterator iter = edges.begin(); in close_generator() local
128 for (; iter != edges.end(); iter++) { in close_generator()
129 f_out_ << (*iter) << endl; in close_generator()
Dt_netstd_generator.cc64 map<string, string>::const_iterator iter; in t_netstd_generator() local
66 for (iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) in t_netstd_generator()
68 if (iter->first.compare("union") == 0) { in t_netstd_generator()
71 else if (iter->first.compare("serial") == 0) { in t_netstd_generator()
73 wcf_namespace_ = iter->second; // since there can be only one namespace in t_netstd_generator()
75 else if (iter->first.compare("wcf") == 0) { in t_netstd_generator()
77 wcf_namespace_ = iter->second; in t_netstd_generator()
79 else if (iter->first.compare("pascal") == 0) { in t_netstd_generator()
82 else if (iter->first.compare("no_deepcopy") == 0) { in t_netstd_generator()
85 else if (iter->first.compare("net6") == 0) { in t_netstd_generator()
[all …]
Dt_py_generator.cc57 std::map<std::string, std::string>::const_iterator iter; in t_py_generator() local
75 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_py_generator()
76 if( iter->first.compare("enum") == 0) { in t_py_generator()
78 } else if( iter->first.compare("new_style") == 0) { in t_py_generator()
80 } else if( iter->first.compare("old_style") == 0) { in t_py_generator()
83 } else if( iter->first.compare("utf8strings") == 0) { in t_py_generator()
85 } else if( iter->first.compare("no_utf8strings") == 0) { in t_py_generator()
87 } else if( iter->first.compare("slots") == 0) { in t_py_generator()
89 } else if( iter->first.compare("package_prefix") == 0) { in t_py_generator()
90 package_prefix_ = iter->second; in t_py_generator()
[all …]
Dt_lua_generator.cc42 std::map<std::string, std::string>::const_iterator iter; in t_lua_generator() local
45 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_lua_generator()
46 if( iter->first.compare("omit_requires") == 0) { in t_lua_generator()
49 throw "unknown option lua:" + iter->first; in t_lua_generator()
146 void generate_serialize_set_element(std::ostream& out, t_set* tmap, std::string iter);
148 void generate_serialize_list_element(std::ostream& out, t_list* tlist, std::string iter);
1049 string iter = tmp("iter"); in generate_serialize_container() local
1050 indent(out) << "for " << iter << ",_ in pairs(" << prefix << ") do" << endl; in generate_serialize_container()
1052 generate_serialize_set_element(out, (t_set*)ttype, iter); in generate_serialize_container()
1056 string iter = tmp("iter"); in generate_serialize_container() local
[all …]
Dt_xsd_generator.cc52 std::map<std::string, std::string>::const_iterator iter; in t_xsd_generator() local
55 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_xsd_generator()
56 throw "unknown option xsd:" + iter->first; in t_xsd_generator()
Dt_cl_generator.cc57 std::map<std::string, std::string>::const_iterator iter; in t_cl_generator() local
59 for(iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_cl_generator()
60 if(iter->first.compare("no_asd") == 0) { in t_cl_generator()
62 } else if (iter->first.compare("sys_pref") == 0) { in t_cl_generator()
63 system_prefix = iter->second; in t_cl_generator()
65 throw "unknown option cl:" + iter->first; in t_cl_generator()
Dt_js_generator.cc65 std::map<std::string, std::string>::const_iterator iter; in t_js_generator() local
75 for (iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_js_generator()
76 if( iter->first.compare("node") == 0) { in t_js_generator()
78 } else if( iter->first.compare("jquery") == 0) { in t_js_generator()
80 } else if( iter->first.compare("ts") == 0) { in t_js_generator()
82 } else if( iter->first.compare("with_ns") == 0) { in t_js_generator()
84 } else if( iter->first.compare("es6") == 0) { in t_js_generator()
86 } else if( iter->first.compare("imports") == 0) { in t_js_generator()
87 parse_imports(program, iter->second); in t_js_generator()
88 } else if (iter->first.compare("thrift_package_output_directory") == 0) { in t_js_generator()
[all …]
Dt_dart_generator.cc69 std::map<std::string, std::string>::const_iterator iter; in t_dart_generator() local
75 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_dart_generator()
76 if( iter->first.compare("library_name") == 0) { in t_dart_generator()
77 library_name_ = (iter->second); in t_dart_generator()
78 } else if( iter->first.compare("library_prefix") == 0) { in t_dart_generator()
79 library_prefix_ = (iter->second) + "."; in t_dart_generator()
81 } else if( iter->first.compare("pubspec_lib") == 0) { in t_dart_generator()
82 pubspec_lib_ = (iter->second); in t_dart_generator()
84 throw "unknown option dart:" + iter->first; in t_dart_generator()
222 std::string iter,
[all …]
Dt_json_generator.cc57 std::map<std::string, std::string>::const_iterator iter; in t_json_generator() local
60 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_json_generator()
61 if( iter->first.compare("merge") == 0) { in t_json_generator()
64 throw "unknown option json:" + iter->first; in t_json_generator()
150 for (char iter : input) { in escape_json_string() local
151 switch (iter) { in escape_json_string()
177 ss << iter; in escape_json_string()
Dt_delphi_generator.cc69 std::map<std::string, std::string>::const_iterator iter; in t_delphi_generator() local
79 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_delphi_generator()
80 if( iter->first.compare("ansistr_binary") == 0) { in t_delphi_generator()
82 } else if( iter->first.compare("register_types") == 0) { in t_delphi_generator()
84 } else if( iter->first.compare("old_names") == 0) { in t_delphi_generator()
86 } else if( iter->first.compare("constprefix") == 0) { in t_delphi_generator()
88 } else if( iter->first.compare("events") == 0) { in t_delphi_generator()
90 } else if( iter->first.compare("xmldoc") == 0) { in t_delphi_generator()
92 } else if( iter->first.compare("async") == 0) { in t_delphi_generator()
94 } else if( iter->first.compare("com_types") == 0) { in t_delphi_generator()
[all …]
Dt_php_generator.cc56 std::map<std::string, std::string>::const_iterator iter; in t_php_generator() local
68 for (iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_php_generator()
69 if (iter->first.compare("inlined") == 0) { in t_php_generator()
71 } else if (iter->first.compare("rest") == 0) { in t_php_generator()
73 } else if (iter->first.compare("server") == 0) { in t_php_generator()
75 } else if (iter->first.compare("oop") == 0) { in t_php_generator()
77 } else if (iter->first.compare("validate") == 0) { in t_php_generator()
79 } else if (iter->first.compare("json") == 0) { in t_php_generator()
81 } else if (iter->first.compare("nsglobal") == 0) { in t_php_generator()
82 nsglobal_ = iter->second; in t_php_generator()
[all …]
Dt_perl_generator.cc53 std::map<std::string, std::string>::const_iterator iter; in t_perl_generator() local
56 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_perl_generator()
57 throw "unknown option perl:" + iter->first; in t_perl_generator()
142 void generate_serialize_set_element(std::ostream& out, t_set* tmap, std::string iter);
144 void generate_serialize_list_element(std::ostream& out, t_list* tlist, std::string iter);
1495 string iter = tmp("iter"); in generate_serialize_container() local
1496 indent(out) << "foreach my $" << iter << " (@{$" << prefix << "})" << endl; in generate_serialize_container()
1498 generate_serialize_set_element(out, (t_set*)ttype, iter); in generate_serialize_container()
1502 string iter = tmp("iter"); in generate_serialize_container() local
1503 indent(out) << "foreach my $" << iter << " (@{$" << prefix << "}) " << endl; in generate_serialize_container()
[all …]
Dt_markdown_generator.cc60 std::map<std::string, std::string>::const_iterator iter; in t_markdown_generator() local
63 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_markdown_generator()
64 if( iter->first.compare("noescape") == 0) { in t_markdown_generator()
66 } else if( iter->first.compare("suffix") == 0 && !iter->second.empty()) { in t_markdown_generator()
67 extension_ = "." + iter->second; in t_markdown_generator()
69 throw "unknown option markdown:" + iter->first; in t_markdown_generator()
160 for (auto & iter : finished) { in generate_program_toc_rows() local
161 if (tprog->get_path() == iter->get_path()) { in generate_program_toc_rows()
Dt_haxe_generator.cc53 std::map<std::string, std::string>::const_iterator iter; in t_haxe_generator() local
57 for( iter = parsed_options.begin(); iter != parsed_options.end(); ++iter) { in t_haxe_generator()
58 if( iter->first.compare("callbacks") == 0) { in t_haxe_generator()
60 } else if( iter->first.compare("rtti") == 0) { in t_haxe_generator()
62 } else if( iter->first.compare("buildmacro") == 0) { in t_haxe_generator()
63 buildmacro_ = (iter->second); in t_haxe_generator()
65 throw "unknown option haxe:" + iter->first; in t_haxe_generator()
179 void generate_serialize_set_element(std::ostream& out, t_set* tmap, std::string iter);
180 void generate_serialize_list_element(std::ostream& out, t_list* tlist, std::string iter);
183 std::string iter,
[all …]
/thrift-3.4.0/compiler/cpp/src/thrift/
Dmain.cc709 t_generator_registry::gen_map_t::iterator iter; in help() local
710 for (iter = gen_map.begin(); iter != gen_map.end(); ++iter) { in help()
713 iter->second->get_short_name().c_str(), in help()
714 iter->second->get_long_name().c_str()); in help()
715 fprintf(stderr, "%s", iter->second->get_documentation().c_str()); in help()
948 vector<t_program*>::iterator iter; in parse() local
949 for (iter = includes.begin(); iter != includes.end(); ++iter) { in parse()
950 parse(*iter, program); in parse()
1012 vector<string>::const_iterator iter; in generate() local
1013 for (iter = generator_strings.begin(); iter != generator_strings.end(); ++iter) { in generate()
[all …]
/thrift-3.4.0/lib/cpp/src/thrift/transport/
DTSocketPool.cpp124 vector<shared_ptr<TSocketPoolServer> >::const_iterator iter = servers_.begin(); in ~TSocketPool() local
126 for (; iter != iterEnd; ++iter) { in ~TSocketPool()
127 setCurrentServer(*iter); in ~TSocketPool()
/thrift-3.4.0/lib/cpp/test/
DTBufferBaseTest.cpp273 for (int iter = 0; iter < 6; iter++) { in BOOST_AUTO_TEST_CASE() local
312 for (int iter = 0; iter < 6; iter++) { in BOOST_AUTO_TEST_CASE() local
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/partial/
DValidate.java105 public static <T> void checkNotNullAndNotEmpty(Iterable<T> iter, String argName) { in checkNotNullAndNotEmpty() argument
106 Validate.checkNotNull(iter, argName); in checkNotNullAndNotEmpty()
107 int minNumElements = iter.iterator().hasNext() ? 1 : 0; in checkNotNullAndNotEmpty()
/thrift-3.4.0/test/cpp/src/
DStressTestNonBlocking.cpp534 count_map::iterator iter; in main() local
535 for (iter = count.begin(); iter != count.end(); ++iter) { in main()
536 printf("%s => %d\n", iter->first, iter->second); in main()
DStressTest.cpp597 count_map::iterator iter; in main() local
598 for (iter = count.begin(); iter != count.end(); ++iter) { in main()
599 printf("%s => %d\n", iter->first, iter->second); in main()

12