Bazaar developer reference

CvGlobals::getFeatureInfo(FeatureTypes)

Defined in
CvGlobals.cpp, line 2836
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getFeatureInfo_with_FeatureTypes

Hooks

static bool BeforeCvGlobals_getFeatureInfo_with_FeatureTypes(CvGlobals* self, FeatureTypes eFeatureNum, CvFeatureInfo*& result);static void AfterCvGlobals_getFeatureInfo_with_FeatureTypes(CvGlobals* self, FeatureTypes eFeatureNum, CvFeatureInfo*& result);static CvFeatureInfo* ReplaceCvGlobals_getFeatureInfo_with_FeatureTypes(CvFeatureInfo* (*original)(CvGlobals*, FeatureTypes), CvGlobals* self, FeatureTypes eFeatureNum);CivRegisterBefore<CivHooks::CvGlobals_getFeatureInfo_with_FeatureTypes>(host, &BeforeCvGlobals_getFeatureInfo_with_FeatureTypes);CivRegisterAfter<CivHooks::CvGlobals_getFeatureInfo_with_FeatureTypes>(host, &AfterCvGlobals_getFeatureInfo_with_FeatureTypes);CivRegisterReplace<CivHooks::CvGlobals_getFeatureInfo_with_FeatureTypes>(host, &ReplaceCvGlobals_getFeatureInfo_with_FeatureTypes);

Code

2836CvFeatureInfo* CvGlobals::getFeatureInfo(FeatureTypes eFeatureNum)2837{2838	CvAssert(eFeatureNum > -1);2839	CvAssert(eFeatureNum < GC.getNumFeatureInfos());2840	if(eFeatureNum > -1 && eFeatureNum < (int)m_paFeatureInfo.size())2841		return m_paFeatureInfo[eFeatureNum];2842	else2843		return NULL;2844}

Calls

Called by

46 functions in 21 files