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


C++ setPointer函数代码示例

本文整理汇总了C++中setPointer函数的典型用法代码示例。如果您正苦于以下问题:C++ setPointer函数的具体用法?C++ setPointer怎么用?C++ setPointer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: setPointer

 bool SetpointManagerMultiZoneHumidityMaximum_Impl::setSetpointNode(const Node& node) {
   bool result = setPointer(OS_SetpointManager_MultiZone_Humidity_MaximumFields::SetpointNodeorNodeListName, node.handle());
   return result;
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:4,代码来源:SetpointManagerMultiZoneHumidityMaximum.cpp

示例2: setPointer

 void CoilHeatingElectric_Impl::setTemperatureSetpointNode(Node & temperatureSetpointNode) {
   setPointer(OS_Coil_Heating_ElectricFields::TemperatureSetpointNodeName, temperatureSetpointNode.handle());
 }
开发者ID:jtanaa,项目名称:OpenStudio,代码行数:3,代码来源:CoilHeatingElectric.cpp

示例3: setPointer

 bool RefrigerationCompressor_Impl::setRefrigerationCompressorCapacityCurve(const CurveBicubic& curveBicubic) {
   bool result = setPointer(OS_Refrigeration_CompressorFields::RefrigerationCompressorCapacityCurveName, curveBicubic.handle());
   return result;
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:4,代码来源:RefrigerationCompressor.cpp

示例4: setPointer

void ePositionGauge::setPointer(int which, ePtr<gPixmap> &pixmap, const ePoint &center)
{
	setPointer(which, pixmap.operator->(), center);
}
开发者ID:Adga52,项目名称:enigma2,代码行数:4,代码来源:epositiongauge.cpp

示例5: setPointer

 bool SetpointManagerOutdoorAirPretreat_Impl::setSetpointNode(const Node& node) {
   bool result = setPointer(OS_SetpointManager_OutdoorAirPretreatFields::SetpointNodeorNodeListName, node.handle());
   return result;
 }
开发者ID:jtanaa,项目名称:OpenStudio,代码行数:4,代码来源:SetpointManagerOutdoorAirPretreat.cpp

示例6: setPointer

 bool ZoneHVACLowTempRadiantVarFlow_Impl::setCoolingCoil(HVACComponent& coolingCoil) 
 {
   bool result = setPointer(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::LowTempRadiantVariableFlowCoolingCoilName, coolingCoil.handle());
   return result;
 }
开发者ID:pepsi7959,项目名称:OpenStudio,代码行数:5,代码来源:ZoneHVACLowTempRadiantVarFlow.cpp

示例7: setPointer

 bool CoilHeatingFourPipeBeam_Impl::setBeamHeatingCapacityHotWaterFlowModificationFactorCurve(const Curve& curve) {
   bool result = setPointer(OS_Coil_Heating_FourPipeBeamFields::BeamHeatingCapacityHotWaterFlowModificationFactorCurveName, curve.handle());
   return result;
 }
开发者ID:NREL,项目名称:OpenStudio,代码行数:4,代码来源:CoilHeatingFourPipeBeam.cpp

示例8: setPointer

bool APILoader::loadExtPointer(Entrypoint entryp) {
    if (!g_DirectPointers[entryp].ptr) {
        setPointer(entryp, getExtPointer(GetEntryPointName(entryp)));
    }
    return g_DirectPointers[entryp].ptr != nullptr;
}
开发者ID:scygan,项目名称:debugler,代码行数:6,代码来源:api-loader.cpp

示例9: getLibraryName

void APILoader::loadLibrary(ApiLibrary apiLibrary, LoadMode mode) {

    if (apiLibrary == LIBRARY_NONE) {
        return;
    }

    std::string libraryName = getLibraryName(apiLibrary);

    if (m_LoadedLibraries.find(libraryName) == m_LoadedLibraries.end()) {

#ifdef _WIN32
        if (mode == LoadMode::LAZY && !GetModuleHandle(libraryName.c_str())) {
            //Will load this later. This is used to avoid calling LoadLibrary() too early in Win.
            return;
        }
#else
        DGL_UNUSED(mode);
#endif

        std::vector<std::string> libSearchPath;


        libSearchPath.push_back("");
#ifdef _WIN32
        char buffer[1000];
#ifndef _WIN64
        if (GetSystemWow64Directory(buffer, sizeof(buffer)) > 0) {
            // we are running 32bit app on 64 bit windows
            libSearchPath.push_back(buffer + std::string("\\"));
        }
#endif
        if (GetSystemDirectory(buffer, sizeof(buffer)) > 0) {
            // we are running on native system (32 on 32 or 64 on 64)
            libSearchPath.push_back(buffer + std::string("\\"));
        }

#ifndef _WIN64
        libSearchPath.push_back("C:\\Windows\\SysWOW64\\");
#endif
        libSearchPath.push_back("C:\\Windows\\System32\\");
        libSearchPath.push_back(".");
#endif

        std::shared_ptr<DynamicLibrary> openGLLibraryHandle = nullptr;

        for (size_t i = 0; i < libSearchPath.size() && !openGLLibraryHandle;
             i++) {
            openGLLibraryHandle = EarlyGlobalState::getDynLoader().getLibrary(
                    (libSearchPath[i] + libraryName).c_str());
        }

#if DGL_HAVE_WA(ANDROID_MISSING_LIBGL)
        if (!openGLLibraryHandle && apiLibrary == LIBRARY_GL) {
            //Some Android devices support 'big' OpenGL, but libGL.so is not provided.
            //Instead fake the load process with *eglGetProcAddress

            openGLLibraryHandle = std::make_shared<FakeDynamicLibrary>(this);
        }
#endif

        if (!openGLLibraryHandle) {
            std::string msg = std::string("Cannot load ") + libraryName +
                              "  system library";
            Os::fatal(msg.c_str());
        } else {
            m_LoadedLibraries[libraryName] = openGLLibraryHandle;
        }
    }

    DynamicLibrary* library = m_LoadedLibraries[libraryName].get();

#ifdef _WIN32
    HookSession hookSession;
#endif

    // g_DirectPointers is now filled with opengl32.dll pointers
    // we will now detour (hook) them all, so g_DirectPointers will still lead
    // to original opengl32.dll, but
    // application will always call us.
    for (int i = 0; i < Entrypoints_NUM; i++) {
        if (!(g_DirectPointers[i].libraryMask & apiLibrary)) {
            // Do not load - entrypoint does not belong to currently loaded API
            continue;
        }

        if (m_LoadedApiLibraries & g_DirectPointers[i].libraryMask) {
            // Do not load - entrypoint belongs to already loaded API
            continue;
        }

        // this sets g_DirectPointers[i].ptr
        setPointer(i, getGLPointer(*library, i));

        if (g_DirectPointers[i].ptr) {
// this entrypoint was loaded from OpenGL32.dll, detour it!
#ifdef _WIN32
            dgl_func_ptr hookPtr = getWrapperPointer(i);
            if (!hookSession.hook(&g_DirectPointers[i].ptr, hookPtr)) {
                Os::fatal("Cannot hook %s() function.", GetEntryPointName(i));
            }
//.........这里部分代码省略.........
开发者ID:scygan,项目名称:debugler,代码行数:101,代码来源:api-loader.cpp

示例10: setPointer

 bool EvaporativeCoolerIndirectResearchSpecial_Impl::setReliefAirInletNode(const Node & node)
 {
   return setPointer(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::ReliefAirInletNode, node.handle());
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:4,代码来源:EvaporativeCoolerIndirectResearchSpecial.cpp

示例11: setPointer

 bool ElectricLoadCenterInverterSimple_Impl::setThermalZone(const ThermalZone& thermalZone) {
   return setPointer(OS_ElectricLoadCenter_Inverter_SimpleFields::ZoneName, thermalZone.handle());
 }
开发者ID:NREL,项目名称:OpenStudio,代码行数:3,代码来源:ElectricLoadCenterInverterSimple.cpp

示例12: addStage

 void CoilHeatingGasMultiStage_Impl::addStage(CoilHeatingGasMultiStageStageData& stage) {
   auto group = getObject<ModelObject>().pushExtensibleGroup().cast<WorkspaceExtensibleGroup>();
   group.setPointer(OS_Coil_Heating_Gas_MultiStageExtensibleFields::Stage,stage.handle());
 }
开发者ID:CheyenneBerlin,项目名称:OpenStudio,代码行数:4,代码来源:CoilHeatingGasMultiStage.cpp

示例13: setPointer

 bool CoilSystemCoolingWaterHeatExchangerAssisted_Impl::setCoolingCoil(const WaterToAirComponent& coolingCoil) {
   bool result = setPointer(OS_CoilSystem_Cooling_Water_HeatExchangerAssistedFields::CoolingCoil, coolingCoil.handle());
   return result;
 }
开发者ID:NREL,项目名称:OpenStudio,代码行数:4,代码来源:CoilSystemCoolingWaterHeatExchangerAssisted.cpp

示例14: setPointer

 bool ExteriorLights_Impl::setExteriorLightsDefinition(const ExteriorLightsDefinition& exteriorLightsDefinition) {
   bool result = false;
   result = setPointer(OS_Exterior_LightsFields::ExteriorLightsDefinitionName, exteriorLightsDefinition.handle());
   return result;
 }
开发者ID:ORNL-BTRIC,项目名称:OpenStudio,代码行数:5,代码来源:ExteriorLights.cpp

示例15: setPointer

void Mouse::fnBlankMouse() {
	setPointer(0, 0);
}
开发者ID:St0rmcrow,项目名称:scummvm,代码行数:3,代码来源:mouse.cpp


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