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

Method getitem

src/python/PyImath/PyImathFixedArray.h:368–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366 // there are some sub-classes that are using it.
367 typedef typename boost::mpl::if_<boost::is_class<T>, T&,T>::type get_type;
368 get_type getitem(Py_ssize_t index) { return (*this)[canonical_index(index)]; }
369 typedef typename boost::mpl::if_<boost::is_class<T>,const T&,T>::type get_type_const;
370 get_type_const getitem(Py_ssize_t index) const { return (*this)[canonical_index(index)]; }
371

Callers

nothing calls this directly

Calls 1

canonical_indexFunction · 0.85

Tested by

no test coverage detected