MocapElement* OpenNIUser::getElement(int _id) { vector<MocapElement>::iterator it = find_if(elements_.begin(), elements_.end(), MatchId(_id)); if (it != elements_.end()){ return &(*it); } else { return false; } }
ofxMocapElement* ofxKinectFeatures::getElement(int _id){ vector<ofxMocapElement>::iterator it = find_if(elements_.begin(), elements_.end(), MatchId(_id)); if (it != elements_.end()){ return &(*it); } else { //return false; //return NULL; } }
EXPORT_C TBool TApiBehavior::MatchId(const TApiBehavior& aBeh) const { return MatchId(aBeh.iLib, aBeh.iApi); }