当前位置: 首页>>代码示例>>C++>>正文


C++ Registry::registry_changed方法代码示例

本文整理汇总了C++中Registry::registry_changed方法的典型用法代码示例。如果您正苦于以下问题:C++ Registry::registry_changed方法的具体用法?C++ Registry::registry_changed怎么用?C++ Registry::registry_changed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Registry的用法示例。


在下文中一共展示了Registry::registry_changed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: RegisterStandardBridges


//.........这里部分代码省略.........
	{
		// uncomment this to register test-methods
		//RegisterBridge_Test(reg, parentGroup);

		RegisterBridge_VecMath(reg, parentGroup);
		RegisterBridge_Util(reg, parentGroup);
		RegisterBridge_PCL(reg, parentGroup);

		RegisterBridge_Profiler(reg, parentGroup);
		RegisterBridge_Misc(reg, parentGroup);
		RegisterBridge_Raster(reg, parentGroup);
		RegisterBridge_OrthoPoly(reg, parentGroup);

		#ifdef UG_GRID
			RegisterBridge_Grid(reg, parentGroup);
		#endif
		
		#ifdef UG_ALGEBRA
			RegisterBridge_Selection(reg, parentGroup);
			RegisterBridge_Domain(reg, parentGroup);
			RegisterBridge_PeriodicBoundary(reg, parentGroup);
			RegisterBridge_Refinement(reg, parentGroup);
			RegisterBridge_DomainRayTracing(reg, parentGroup);
			RegisterBridge_Transform(reg, parentGroup);
			RegisterBridge_LoadBalancing(reg, parentGroup);

		//	depends on lib_disc
			RegisterBridge_DiscCommon(reg, parentGroup);
			RegisterBridge_ElemDiscs(reg, parentGroup);

		//	depends on lib_algebra
			RegisterBridge_AlgebraCommon(reg, parentGroup);
			RegisterBridge_Preconditioner(reg, parentGroup);
			RegisterBridge_Schur(reg, parentGroup);
			RegisterBridge_Obstacle(reg, parentGroup);
			RegisterBridge_PILUT(reg, parentGroup);
			RegisterBridge_Solver(reg, parentGroup);
			RegisterBridge_Eigensolver(reg, parentGroup);
			RegisterBridge_DomainDependentPreconditioner(reg, parentGroup);
			//RegisterBridge_ConstrainedLinearIterator(reg, parentGroup);

			RegisterBridge_Restart(reg, parentGroup);

		//	depends on lib_disc
			RegisterBridge_DiscAlgebra(reg, parentGroup);
			RegisterBridge_DomainDisc(reg, parentGroup);
			RegisterBridge_GridFunction(reg, parentGroup);
			RegisterBridge_Interpolate(reg, parentGroup);
			RegisterBridge_Evaluate(reg, parentGroup);
			RegisterBridge_MaxError(reg, parentGroup);
			RegisterBridge_Ordering(reg, parentGroup);
			RegisterBridge_UserData(reg, parentGroup);
			RegisterBridge_Constraints(reg, parentGroup);
			RegisterBridge_MultiGrid(reg, parentGroup);
			RegisterBridge_Output(reg, parentGroup);
			RegisterBridge_AdaptiveTools(reg, parentGroup);
			RegisterBridge_FiniteVolume(reg, parentGroup);
			RegisterBridge_Integrate(reg, parentGroup);
			RegisterBridge_ManifoldUtil(reg, parentGroup);
			RegisterBridge_ReferenceMappingTest(reg, parentGroup);
		#endif


	//	build a string with all compiled dimensions
		stringstream availDims; bool first = true;
#ifdef UG_DIM_1
		if(!first) {availDims << ",";}; availDims << "1";
		first = false;
#endif
#ifdef UG_DIM_2
		if(!first) {availDims << ",";}; availDims << "2";
		first = false;
#endif
#ifdef UG_DIM_3
		if(!first) {availDims << ",";}; availDims << "3";
		first = false;
#endif

#ifdef UG_ALGEBRA
		reg.add_function("InitUG", static_cast<void (*)(int, const AlgebraType&, bool)>(&InitUG), "/ug4/Init",
		                 "", string("Dimension|selection|value=[").append(availDims.str()).
		                 	 append("]#AlgebraType#verbose"));
		reg.add_function("InitUG", static_cast<void (*)(int, const AlgebraType&)>(&InitUG), "/ug4/Init",
		                 "", string("Dimension|selection|value=[").append(availDims.str()).
		                 	 append("]#AlgebraType"));
		reg.add_function("GetUGDim", &GetUGDim, "/ug4", "dimension", "", "Returns the dimension to which UG was initialized.");

	// 	AlgebraType Interface
		reg.add_class_<AlgebraType>("AlgebraType", "/ug4/Init")
			.add_constructor<void (*)(const char*, int)>("Type|selection|value=[\"CPU\"]#Blocksize|selection|value=[1,2,3,4]")
			.add_constructor<void (*)(const char*)>("Type|selection|value=[\"CPU\"]", "Variable Blocksize")
			.set_construct_as_smart_pointer(true);
#endif

	}
	UG_REGISTRY_CATCH_THROW("RegisterStandardInterfaces")
	UG_CATCH_THROW("RegisterStandardInterfaces failed.")

	reg.registry_changed();
}
开发者ID:bsumirak,项目名称:ugcore,代码行数:101,代码来源:bridge.cpp


注:本文中的Registry::registry_changed方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。