MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / lookup

Method lookup

src/python/PyImath/PyImathStringTable.cpp:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15template<class T>
16StringTableIndex
17StringTableT<T>::lookup(const T &s) const
18{
19 typedef typename Table::template nth_index<1>::type StringSet;
20 const StringSet &strings = _table.template get<1>();
21
22 typename StringSet::const_iterator it = strings.find(s);
23 if (it == strings.end()) {
24 throw std::domain_error ("String table access out of bounds");
25 }
26
27 return it->i;
28}
29
30template<class T>
31const T &

Callers 7

testStringFunction · 0.80
testWStringFunction · 0.80
getitem_stringMethod · 0.80
setitem_string_vectorMethod · 0.80
operator ==Function · 0.80
operator !=Function · 0.80

Calls

no outgoing calls

Tested by 2

testStringFunction · 0.64
testWStringFunction · 0.64