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


C++ RemoveAll函数代码示例

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


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

示例1: SaveToFile

CScheduler::~CScheduler(){
	SaveToFile();
	RemoveAll();
}
开发者ID:HackLinux,项目名称:eMule-IS-Mod,代码行数:4,代码来源:Scheduler.cpp

示例2: RemoveAll

// Refresh the projects list.
bool WorkspaceInfo::Refresh(void)
{
	// If the internal project integrity is good, then no refresh is needed.
	if (CheckIntegrity())
		return true;

	// Delete everything.
	RemoveAll();

	// First, get a pointer to the dispatch for the Projects collection
	CComPtr<IDispatch> pDispProjects;
	VERIFY_OK(m_pApplication->get_Projects(&pDispProjects));
	CComQIPtr<IProjects, &IID_IProjects> pProjects(pDispProjects);

	// Get the number of projects in the collection
	long projectCount;
	VERIFY_OK(pProjects->get_Count(&projectCount));

	// Iterate all the projects.
	for (long i = 1; i < projectCount + 1; i++)
	{
		CComVariant Vari = i;

		// Get the next project
		CComPtr<IGenericProject> pGenProject;
		VERIFY_OK(pProjects->Item(Vari, &pGenProject));
		CComQIPtr<IGenericProject, &IID_IGenericProject> pProject(pGenProject);

		// Get the project name.
		CComBSTR bszStr;
		VERIFY_OK(pProject->get_FullName(&bszStr));
		CString projectName = bszStr;

		Add(projectName);
	}

	// Rename a misnamed add-on file.
	CString oldFilename = m_workspaceLocation + "ExtraFiles.PFO";
	CString wuFilename = GetExtraFilename();
	rename(oldFilename, wuFilename);

	// Is there an add-on file?
	CStdioFile file;
	if (file.Open(wuFilename, CFile::modeRead) == TRUE)
	{
		CString line;
		
		// Count the number of extra projects.
		while (1)
		{
			// Read in a project name.
			if (!file.ReadString(line))
				break;

			// Check the integrity.
			Add(line);
		} 

		// Close the file.
		file.Close();
	}

	// Build the file array.
	m_fileList.Sort();

	// Rebuilt stuff.
	return false;
}
开发者ID:AlertProject,项目名称:CCCC,代码行数:69,代码来源:WorkspaceInfo.cpp

示例3: RemoveAll

	AspectHub::~AspectHub()
	{
		RemoveAll();
		Clear(_Lock);
	}
开发者ID:Jackjet,项目名称:vapula,代码行数:5,代码来源:vf_aspect_hub.cpp

示例4: RemoveAll

CBCGPAppointmentDSMap::~CBCGPAppointmentDSMap ()
{
	RemoveAll ();
}
开发者ID:cugxiangzhenwei,项目名称:WorkPlatForm,代码行数:4,代码来源:BCGPAppointmentDS.cpp

示例5: RemoveAll

CXTPTabManagerNavigateButtons::~CXTPTabManagerNavigateButtons()
{
	RemoveAll();
}
开发者ID:killbug2004,项目名称:ghost2013,代码行数:4,代码来源:XTPTabManager.cpp

示例6: RemoveAll

CUIntArray::~CUIntArray()
/***********************/
{
    RemoveAll();
    FreeExtra();
}
开发者ID:Ukusbobra,项目名称:open-watcom-v2,代码行数:6,代码来源:uintarr.cpp

示例7: RemoveAll

CObList::~CObList()
{
	RemoveAll();
	ASSERT(m_nCount == 0);
}
开发者ID:jbeaurain,项目名称:omaha_vs2010,代码行数:5,代码来源:list_o.cpp

示例8: RemoveAll

CInfoList::~CInfoList(void)
{
	RemoveAll(m_current_channel);
}
开发者ID:tetu-dc5,项目名称:TTSwTask,代码行数:4,代码来源:InfoList.cpp

示例9: UpdateTarget

	void SubRectAllocator::UpdateTarget(const CSize& s, const CRect& r)
	{
		if(vs != s || vr != r) RemoveAll();
		vs = s;
		vr = r;
	}
开发者ID:anguoyang,项目名称:MediaPoint,代码行数:6,代码来源:Renderer.cpp

示例10: RemoveAll

HRESULT IDSMPropertyBagImpl::DelAllProperties()
{
	RemoveAll();
	return S_OK;
}
开发者ID:gongfuPanada,项目名称:MPC-BE,代码行数:5,代码来源:DSMPropertyBag.cpp

示例11: RemoveAll

CMapWordToOb::~CMapWordToOb()
{
	RemoveAll();
	ASSERT(m_nCount == 0);
}
开发者ID:rickerliang,项目名称:OpenNT,代码行数:5,代码来源:map_wo.cpp

示例12: RemoveAll

HEventList::~HEventList()
{
	RemoveAll();
	delete fType;
}
开发者ID:mmanley,项目名称:Antares,代码行数:5,代码来源:HEventList.cpp

示例13: RemoveAll

CConnections::~CConnections()
{
	RemoveAll();
}
开发者ID:SherlockLee,项目名称:ComUsbEthModbusMaster,代码行数:4,代码来源:Connections.cpp

示例14: RemoveAll

void GStringList::DeSerialize(const char *pzDelimiter, const char *pzSource, int nItemCount/*  = -1*/)
{
	RemoveAll();
	DeSerializeAppend(pzDelimiter, pzSource, nItemCount);
}
开发者ID:BrianAberle,项目名称:XMLFoundation,代码行数:5,代码来源:GStringList.cpp

示例15: RemoveAll

CFX_BaseSegmentedArray::~CFX_BaseSegmentedArray()
{
    RemoveAll();
}
开发者ID:Gardenya,项目名称:pdfium,代码行数:4,代码来源:fx_basic_array.cpp


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