MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / getIndexAndCheck

Method getIndexAndCheck

src/openpose/core/array.cpp:625–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623
624 template<typename T>
625 int Array<T>::getIndexAndCheck(const std::vector<int>& indexes) const
626 {
627 try
628 {
629 if (indexes.size() != mSize.size())
630 error("Requested indexes size is different than Array size.", __LINE__, __FUNCTION__, __FILE__);
631 return getIndex(indexes);
632 }
633 catch (const std::exception& e)
634 {
635 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
636 return 0;
637 }
638 }
639
640 template<typename T>
641 T& Array<T>::commonAt(const int index) const

Callers

nothing calls this directly

Calls 3

whatMethod · 0.80
errorFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected