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


C++ shared_str::_get方法代码示例

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


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

示例1:

bool weather::paste_time_frame			(shared_str const& frame_id, char const* buffer, u32 const& buffer_size)
{
	container_type::iterator	i = m_times.begin();
	container_type::iterator	e = m_times.end();
	for ( ; i != e; ++i) {
		if (frame_id._get() != (*i)->id()._get())
			continue;

		IReader			reader(const_cast<char*>(buffer), buffer_size);
		CInifile		temp(&reader);
		if (temp.sections().empty())
			return		(false);

		(*i)->load_from	((*temp.sections().begin())->Name, temp, shared_str((*i)->id()));
		return			(true);
	}

	return				(false);
}
开发者ID:2asoft,项目名称:xray,代码行数:19,代码来源:editor_environment_weathers_weather.cpp

示例2:

		IC	bool	operator()	(smart_cover::loophole const *loophole) const
		{
			return				(m_id._get() == loophole->id()._get());
		}
开发者ID:2asoft,项目名称:xray,代码行数:4,代码来源:smart_cover_description.cpp

示例3:

	IC	bool less		(const shared_str &_1, const shared_str &_2) const
	{
		return		(_1._get() < _2._get());
	}
开发者ID:OLR-xray,项目名称:XRay-NEW,代码行数:4,代码来源:stalker_animation_manager_debug.cpp

示例4:

u16		CKinematics::LL_BoneID		(const shared_str& B)	{
	accel::iterator I	= std::lower_bound	(bone_map_P->begin(),bone_map_P->end(),B,pred_P);
	if (I == bone_map_P->end())			return BI_NONE;
	if (I->first._get() != B._get() )	return BI_NONE;
	return				u16(I->second);
}
开发者ID:NeoAnomaly,项目名称:xray,代码行数:6,代码来源:SkeletonCustom.cpp

示例5:

		  IC	bool	operator()	(SSCDrawHelper const &h) const
		  {
			  return				(m_id._get() == h.string_identifier._get());
		  }
开发者ID:AntonioModer,项目名称:xray-16,代码行数:4,代码来源:xrServer_Objects_Alife_Smartcovers.cpp

示例6:

 IC	bool	operator()	(shared_str const &lhs, shared_str const &rhs) const
 {
     return			(lhs._get() < rhs._get());
 }
开发者ID:vasilenkomike,项目名称:xray,代码行数:4,代码来源:stalker_animation_offsets.hpp

示例7: operator

 inline bool operator() (weather const* weather) const
 {
     return (value._get() == weather->id()._get());
 }
开发者ID:BubbaXXX,项目名称:xray-16,代码行数:4,代码来源:editor_environment_weathers_manager.cpp


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