本文整理汇总了C++中SmartPtr::GetTag方法的典型用法代码示例。如果您正苦于以下问题:C++ SmartPtr::GetTag方法的具体用法?C++ SmartPtr::GetTag怎么用?C++ SmartPtr::GetTag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SmartPtr
的用法示例。
在下文中一共展示了SmartPtr::GetTag方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
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_;
}
示例2:
inline
SmartPtr<const IteratesVector> IpoptData::delta_aff() const
{
DBG_ASSERT(IsNull(delta_aff_) || (delta_aff_->GetTag() == debug_delta_aff_tag_ && delta_aff_->GetTagSum() == debug_delta_aff_tag_sum_) );
return delta_aff_;
}
示例3: 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
}
示例4: 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;
}
示例5: 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;
}
示例6: 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;
}
示例7: 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;
}
示例8: 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;
}