本文整理汇总了C++中EntryList::append方法的典型用法代码示例。如果您正苦于以下问题:C++ EntryList::append方法的具体用法?C++ EntryList::append怎么用?C++ EntryList::append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EntryList
的用法示例。
在下文中一共展示了EntryList::append方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: EntryList
/**
* Examine the DictQuery and farm out the search to the specialized dict
* managers. Note that a global search limit will probably be implemented
* either here or in the DictFile implementations... probably both
*
* @param query the query, see DictQuery documentation
*/
EntryList *DictionaryManager::doSearch( const DictQuery &query ) const
{
EntryList *ret = new EntryList();
#if 0
if( query.getMeaning() == "(libkiten)" )
{
ret->append( new debug_entry( "Summary of libkiten data" ) );
foreach( const QString &dict, listDictionaries() )
{
ret->append( new debug_entry( dict ) );
}
示例2: list
Profile::EntryList Profile::list(List type)
{
EntryList parentList;
if (m_parent)
parentList = m_parent->list(type);
EntryList list = parentList;
for (EntryList::iterator it = list.begin(); it != list.end(); ++it)
(*it).derived = true;
QStringList &personalList = listByType(type);
for (QStringList::const_iterator it = personalList.begin(); it != personalList.end(); ++it)
list.append(Entry(*it, false));
return list;
}