Mercurial > hg > octave-lyh
comparison src/load-path.cc @ 10321:97b4bd6f0925
partially rewrite function handles
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 13 Feb 2010 08:17:21 +0100 |
parents | 57a59eae83cc |
children | db540cb0e959 |
comparison
equal
deleted
inserted
replaced
10320:907d470e261b | 10321:97b4bd6f0925 |
---|---|
1073 retval.sort (); | 1073 retval.sort (); |
1074 | 1074 |
1075 return retval; | 1075 return retval; |
1076 } | 1076 } |
1077 | 1077 |
1078 bool | 1078 std::list<std::string> |
1079 load_path::do_any_class_method (const std::string& meth) const | 1079 load_path::do_overloads (const std::string& meth) const |
1080 { | 1080 { |
1081 bool retval = false; | 1081 std::list<std::string> retval; |
1082 | 1082 |
1083 // update (); | 1083 // update (); |
1084 | 1084 |
1085 for (const_method_map_iterator q = method_map.begin (); | 1085 for (const_method_map_iterator q = method_map.begin (); |
1086 q != method_map.end (); q++) | 1086 q != method_map.end (); q++) |
1087 { | 1087 { |
1088 const fcn_map_type& m = q->second; | 1088 const fcn_map_type& m = q->second; |
1089 | 1089 |
1090 if (m.find (meth) != m.end ()) | 1090 if (m.find (meth) != m.end ()) |
1091 { | 1091 retval.push_back (q->first); |
1092 retval = true; | |
1093 break; | |
1094 } | |
1095 } | 1092 } |
1096 | 1093 |
1097 return retval; | 1094 return retval; |
1098 } | 1095 } |
1099 | 1096 |