Bazaar developer reference

CvPlotManager::FindLayer(uint) const

Defined in
CvPlotManager.cpp, line 198
Class
CvPlotManager
Hook name
CivHooks::CvPlotManager_FindLayer_with_uint_const

Hooks

static bool BeforeCvPlotManager_FindLayer_with_uint_const(const CvPlotManager* self, uint uiLayerID, const CvSparseIDInfoGrid*& result);static void AfterCvPlotManager_FindLayer_with_uint_const(const CvPlotManager* self, uint uiLayerID, const CvSparseIDInfoGrid*& result);static const CvSparseIDInfoGrid* ReplaceCvPlotManager_FindLayer_with_uint_const(const CvSparseIDInfoGrid* (*original)(const CvPlotManager*, uint), const CvPlotManager* self, uint uiLayerID);CivRegisterBefore<CivHooks::CvPlotManager_FindLayer_with_uint_const>(host, &BeforeCvPlotManager_FindLayer_with_uint_const);CivRegisterAfter<CivHooks::CvPlotManager_FindLayer_with_uint_const>(host, &AfterCvPlotManager_FindLayer_with_uint_const);CivRegisterReplace<CivHooks::CvPlotManager_FindLayer_with_uint_const>(host, &ReplaceCvPlotManager_FindLayer_with_uint_const);

Code

198const CvSparseIDInfoGrid* CvPlotManager::FindLayer(uint uiLayerID) const199{200	for (CvSparseIDInfoGridVector::const_iterator itr = m_aLayers.begin(); itr != m_aLayers.end(); ++itr)201	{202		if ((*itr).m_uiID == uiLayerID)203		{204			return (*itr).m_pkGrid;205		}206	}207208	return NULL;209}

Calls

Called by