本文整理汇总了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();
}