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


C++ FixedSizeUnorderedSet类代码示例

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


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

示例1: RemoveBreakPoint

void CBreakPoints::RemoveBreakPoint(u32 _iAddress)
{
	for (size_t i = 0; i < m_iBreakPoints.size(); i++)
	{
		if (m_iBreakPoints[i].iAddress == _iAddress)
		{
			m_iBreakPoints.remove(m_iBreakPoints[i]);
			break;
		}
	}
}
开发者ID:SanJaroICS,项目名称:ppsspp,代码行数:11,代码来源:Breakpoints.cpp

示例2: RemoveBreakPoint

void CBreakPoints::RemoveBreakPoint(u32 _iAddress)
{
	for (size_t i = 0; i < m_iBreakPoints.size(); i++)
	{
		if (m_iBreakPoints[i].iAddress == _iAddress)
		{
			m_iBreakPoints.remove(m_iBreakPoints[i]);
			InvalidateJit(_iAddress);
			host->UpdateDisassembly();	// redraw in order to not show the breakpoint anymore
			break;
		}
	}
}
开发者ID:Heiji,项目名称:ppsspp,代码行数:13,代码来源:Breakpoints.cpp

示例3: IsTempBreakPoint

bool CBreakPoints::IsTempBreakPoint(u32 _iAddress)
{
	for (size_t i = 0; i < m_iBreakPoints.size(); i++)
		if (m_iBreakPoints[i].iAddress == _iAddress && m_iBreakPoints[i].bTemporary)
			return true;

	return false;
}
开发者ID:SanJaroICS,项目名称:ppsspp,代码行数:8,代码来源:Breakpoints.cpp

示例4: IsAddressBreakPoint

bool CBreakPoints::IsAddressBreakPoint(u32 _iAddress)
{
	for (size_t i = 0; i < m_iBreakPoints.size(); i++)
		if (m_iBreakPoints[i].iAddress == _iAddress)
			return true;

	return false;
}
开发者ID:SanJaroICS,项目名称:ppsspp,代码行数:8,代码来源:Breakpoints.cpp

示例5: ClearTemporaryBreakPoints

void CBreakPoints::ClearTemporaryBreakPoints()
{
	if (m_iBreakPoints.size() == 0) return;

	bool update = false;
	for (int i = (int)m_iBreakPoints.size()-1; i >= 0; --i)
	{
		if (m_iBreakPoints[i].bTemporary)
		{
			InvalidateJit(m_iBreakPoints[i].iAddress);
			m_iBreakPoints.remove(m_iBreakPoints[i]);
			update = true;
		}
	}
	
	if (update) host->UpdateDisassembly();	// redraw in order to not show the breakpoint anymore
}
开发者ID:Heiji,项目名称:ppsspp,代码行数:17,代码来源:Breakpoints.cpp

示例6: AddBreakPoint

void CBreakPoints::AddBreakPoint(u32 _iAddress, bool temp)
{
	if (!IsAddressBreakPoint(_iAddress))
	{
		BreakPoint pt;
		pt.bOn=true;
		pt.bTemporary=temp;
		pt.iAddress = _iAddress;

		m_iBreakPoints.insert(pt);
	}
}
开发者ID:SanJaroICS,项目名称:ppsspp,代码行数:12,代码来源:Breakpoints.cpp

示例7: AddBreakPoint

void CBreakPoints::AddBreakPoint(u32 _iAddress, bool temp)
{
	if (!IsAddressBreakPoint(_iAddress))
	{
		BreakPoint pt;
		pt.bOn=true;
		pt.bTemporary=temp;
		pt.iAddress = _iAddress;

		m_iBreakPoints.insert(pt);
		InvalidateJit(_iAddress);
		host->UpdateDisassembly();	// redraw in order to show the breakpoint
	}
}
开发者ID:Heiji,项目名称:ppsspp,代码行数:14,代码来源:Breakpoints.cpp

示例8: ClearAllBreakPoints

void CBreakPoints::ClearAllBreakPoints()
{
	m_iBreakPoints.clear();
}
开发者ID:SanJaroICS,项目名称:ppsspp,代码行数:4,代码来源:Breakpoints.cpp

示例9: ClearAllBreakPoints

void CBreakPoints::ClearAllBreakPoints()
{
	m_iBreakPoints.clear();
	InvalidateJit();
}
开发者ID:Titouf2609,项目名称:ppsspp,代码行数:5,代码来源:Breakpoints.cpp

示例10: GetNumBreakpoints

int CBreakPoints::GetNumBreakpoints()
{
	return (int)m_iBreakPoints.size();
}
开发者ID:Titouf2609,项目名称:ppsspp,代码行数:4,代码来源:Breakpoints.cpp


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