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


C++ SmartPtr::GetTagSum方法代码示例

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


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

示例1:

  inline
  SmartPtr<const IteratesVector> IpoptData::delta() const
  {
    DBG_ASSERT(IsNull(delta_) || (delta_->GetTag() == debug_delta_tag_ && delta_->GetTagSum() == debug_delta_tag_sum_) );

    return delta_;
  }
开发者ID:CodeGuro,项目名称:Ipopt,代码行数:7,代码来源:IpIpoptData.hpp

示例2: set_delta_cgfast

  inline
  void CGPenaltyData::set_delta_cgfast(SmartPtr<IteratesVector>& delta_cgfast)
  {
    delta_cgfast_ = ConstPtr(delta_cgfast);
#if COIN_IPOPT_CHECKLEVEL > 0

    if (IsValid(delta_cgfast)) {
      debug_delta_cgfast_tag_ = delta_cgfast->GetTag();
      debug_delta_cgfast_tag_sum_ = delta_cgfast->GetTagSum();
    }
    else {
      debug_delta_cgfast_tag_ = 0;
      debug_delta_cgfast_tag_sum_ = delta_cgfast->GetTagSum();
    }
#endif

    delta_cgfast = NULL;
  }
开发者ID:FrozenXZeus,项目名称:cornell-urban-challenge,代码行数:18,代码来源:IpCGPenaltyData.hpp

示例3: set_delta_cgpen

  inline
  void CGPenaltyData::set_delta_cgpen(SmartPtr<const IteratesVector>& delta_cgpen)
  {
    delta_cgpen_ = delta_cgpen;
#if COIN_IPOPT_CHECKLEVEL > 0

    if (IsValid(delta_cgpen)) {
      debug_delta_cgpen_tag_ = delta_cgpen->GetTag();
      debug_delta_cgpen_tag_sum_ = delta_cgpen->GetTagSum();
    }
    else {
      debug_delta_cgpen_tag_ = 0;
      debug_delta_cgpen_tag_sum_ = delta_cgpen->GetTagSum();
    }
#endif

    delta_cgpen = NULL;
  }
开发者ID:FrozenXZeus,项目名称:cornell-urban-challenge,代码行数:18,代码来源:IpCGPenaltyData.hpp

示例4: set_delta_aff

  inline
  void IpoptData::set_delta_aff(SmartPtr<IteratesVector>& delta_aff)
  {
    delta_aff_ = ConstPtr(delta_aff);
#if COIN_IPOPT_CHECKLEVEL > 0

    if (IsValid(delta_aff)) {
      debug_delta_aff_tag_ = delta_aff->GetTag();
      debug_delta_aff_tag_sum_ = delta_aff->GetTagSum();
    }
    else {
      debug_delta_aff_tag_ = TaggedObject::Tag();
      debug_delta_aff_tag_sum_ = delta_aff->GetTagSum();
    }
#endif

    delta_aff = NULL;
  }
开发者ID:CodeGuro,项目名称:Ipopt,代码行数:18,代码来源:IpIpoptData.hpp

示例5: CopyTrialToCurrent

  inline
  void IpoptData::CopyTrialToCurrent()
  {
    curr_ = trial_;
#if COIN_IPOPT_CHECKLEVEL > 0

    if (IsValid(curr_)) {
      debug_curr_tag_ = curr_->GetTag();
      debug_curr_tag_sum_ = curr_->GetTagSum();
    }
    else {
      debug_curr_tag_ = TaggedObject::Tag();
      debug_curr_tag_sum_ = TaggedObject::Tag();
    }
#endif

  }
开发者ID:CodeGuro,项目名称:Ipopt,代码行数:17,代码来源:IpIpoptData.hpp

示例6: set_delta

  inline
  void IpoptData::set_delta(SmartPtr<const IteratesVector>& delta)
  {
    delta_ = delta;
#if COIN_IPOPT_CHECKLEVEL > 0

    if (IsValid(delta)) {
      debug_delta_tag_ = delta->GetTag();
      debug_delta_tag_sum_ = delta->GetTagSum();
    }
    else {
      debug_delta_tag_ = TaggedObject::Tag();
      debug_delta_tag_sum_ = TaggedObject::Tag();
    }
#endif

    delta = NULL;
  }
开发者ID:CodeGuro,项目名称:Ipopt,代码行数:18,代码来源:IpIpoptData.hpp

示例7: set_trial

  inline
  void IpoptData::set_trial(SmartPtr<IteratesVector>& trial)
  {
    trial_ = ConstPtr(trial);

#if COIN_IPOPT_CHECKLEVEL > 0
    // verify the correct space
    DBG_ASSERT(trial_->OwnerSpace() == (VectorSpace*)GetRawPtr(iterates_space_));
    if (IsValid(trial)) {
      debug_trial_tag_ = trial->GetTag();
      debug_trial_tag_sum_ = trial->GetTagSum();
    }
    else {
      debug_trial_tag_ = TaggedObject::Tag();
      debug_trial_tag_sum_ = TaggedObject::Tag();
    }
#endif

    trial = NULL;
  }
开发者ID:CodeGuro,项目名称:Ipopt,代码行数:20,代码来源:IpIpoptData.hpp

示例8:

  inline
  SmartPtr<const IteratesVector> CGPenaltyData::delta_cgfast() const
  {
    DBG_ASSERT(IsNull(delta_cgfast_) || (delta_cgfast_->GetTag() == debug_delta_cgfast_tag_ && delta_cgfast_->GetTagSum() == debug_delta_cgfast_tag_sum_) );

    return delta_cgfast_;
  }
开发者ID:FrozenXZeus,项目名称:cornell-urban-challenge,代码行数:7,代码来源:IpCGPenaltyData.hpp


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