本文整理汇总了C++中RemoveAll函数的典型用法代码示例。如果您正苦于以下问题:C++ RemoveAll函数的具体用法?C++ RemoveAll怎么用?C++ RemoveAll使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RemoveAll函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SaveToFile
CScheduler::~CScheduler(){
SaveToFile();
RemoveAll();
}
示例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;
}
示例3: RemoveAll
AspectHub::~AspectHub()
{
RemoveAll();
Clear(_Lock);
}
示例4: RemoveAll
CBCGPAppointmentDSMap::~CBCGPAppointmentDSMap ()
{
RemoveAll ();
}
示例5: RemoveAll
CXTPTabManagerNavigateButtons::~CXTPTabManagerNavigateButtons()
{
RemoveAll();
}
示例6: RemoveAll
CUIntArray::~CUIntArray()
/***********************/
{
RemoveAll();
FreeExtra();
}
示例7: RemoveAll
CObList::~CObList()
{
RemoveAll();
ASSERT(m_nCount == 0);
}
示例8: RemoveAll
CInfoList::~CInfoList(void)
{
RemoveAll(m_current_channel);
}
示例9: UpdateTarget
void SubRectAllocator::UpdateTarget(const CSize& s, const CRect& r)
{
if(vs != s || vr != r) RemoveAll();
vs = s;
vr = r;
}
示例10: RemoveAll
HRESULT IDSMPropertyBagImpl::DelAllProperties()
{
RemoveAll();
return S_OK;
}
示例11: RemoveAll
CMapWordToOb::~CMapWordToOb()
{
RemoveAll();
ASSERT(m_nCount == 0);
}
示例12: RemoveAll
HEventList::~HEventList()
{
RemoveAll();
delete fType;
}
示例13: RemoveAll
CConnections::~CConnections()
{
RemoveAll();
}
示例14: RemoveAll
void GStringList::DeSerialize(const char *pzDelimiter, const char *pzSource, int nItemCount/* = -1*/)
{
RemoveAll();
DeSerializeAppend(pzDelimiter, pzSource, nItemCount);
}
示例15: RemoveAll
CFX_BaseSegmentedArray::~CFX_BaseSegmentedArray()
{
RemoveAll();
}