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


C++ uuid_vec_t::push_back方法代码示例

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


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

示例1: getSelectedAvatarData

static void getSelectedAvatarData(const LLScrollListCtrl* from, uuid_vec_t& avatar_ids, std::vector<LLAvatarName>& avatar_names)
{
	std::vector<LLScrollListItem*> items = from->getAllSelected();
	for (std::vector<LLScrollListItem*>::iterator iter = items.begin(); iter != items.end(); ++iter)
	{
		LLScrollListItem* item = *iter;
		if (item->getUUID().notNull())
		{
			avatar_ids.push_back(item->getUUID());

			std::map<LLUUID, LLAvatarName>::iterator iter = sAvatarNameMap.find(item->getUUID());
			if (iter != sAvatarNameMap.end())
			{
				avatar_names.push_back(iter->second);
			}
			else
			{
				// the only case where it isn't in the name map is friends
				// but it should be in the name cache
				LLAvatarName av_name;
				LLAvatarNameCache::get(item->getUUID(), &av_name);
				avatar_names.push_back(av_name);
			}
		}
	}
}
开发者ID:JohnMcCaffery,项目名称:Armadillo-Phoenix,代码行数:26,代码来源:llfloateravatarpicker.cpp

示例2: getSelectedIds

void LLFloaterGesture::getSelectedIds(uuid_vec_t& ids)
{
	std::vector<LLScrollListItem*> items = mGestureList->getAllSelected();
	for(std::vector<LLScrollListItem*>::const_iterator it = items.begin(); it != items.end(); it++)
	{
		ids.push_back((*it)->getUUID());
	}
}
开发者ID:JohnMcCaffery,项目名称:Armadillo-Phoenix,代码行数:8,代码来源:llfloatergesture.cpp

示例3: getSelectedUUIDs

void LLFlatListView::getSelectedUUIDs(uuid_vec_t& selected_uuids) const
{
	if (mSelectedItemPairs.empty()) return;

	for (pairs_const_iterator_t it = mSelectedItemPairs.begin(); it != mSelectedItemPairs.end(); ++it)
	{
		selected_uuids.push_back((*it)->second.asUUID());
	}
}
开发者ID:HizWylder,项目名称:GIS,代码行数:9,代码来源:llflatlistview.cpp

示例4: getItemIDs

// Checked: 2010-11-30 (RLVa-1.3.0b) | Modified: RLVa-1.3.0b
bool RlvCommandOptionGetPath::getItemIDs(LLWearableType::EType wtType, uuid_vec_t& idItems, bool fClear)
{
	if (fClear)
		idItems.clear();
	uuid_vec_t::size_type cntItemsPrev = idItems.size();
	for (S32 idxWearable = 0, cntWearable = gAgentWearables.getWearableCount(wtType); idxWearable < cntWearable; idxWearable++)
	{
		idItems.push_back(gAgentWearables.getWearableItemID(wtType, idxWearable));
	}
	return (cntItemsPrev != idItems.size());
}
开发者ID:Krazy-Bish-Margie,项目名称:SingularityViewer,代码行数:12,代码来源:rlvhelper.cpp

示例5: get_voice_participants_uuids

static void get_voice_participants_uuids(uuid_vec_t& speakers_uuids)
{
	// Get a list of participants from VoiceClient
       std::set<LLUUID> participants;
       LLVoiceClient::getInstance()->getParticipantList(participants);
	
	for (std::set<LLUUID>::const_iterator iter = participants.begin();
		 iter != participants.end(); ++iter)
	{
		speakers_uuids.push_back(*iter);
	}

}
开发者ID:DarkSpyro003,项目名称:DarkSpyros_Viewer,代码行数:13,代码来源:llcallfloater.cpp

示例6: getSelectedAvatarData

static void getSelectedAvatarData(const LLScrollListCtrl* from, std::vector<std::string>& avatar_names, uuid_vec_t& avatar_ids)
{
	std::vector<LLScrollListItem*> items = from->getAllSelected();
	for (std::vector<LLScrollListItem*>::iterator iter = items.begin(); iter != items.end(); ++iter)
	{
		LLScrollListItem* item = *iter;
		if (item->getUUID().notNull())
		{
			avatar_names.push_back(item->getColumn(0)->getValue().asString());
			avatar_ids.push_back(item->getUUID());
		}
	}
}
开发者ID:jimjesus,项目名称:kittyviewer,代码行数:13,代码来源:llfloateravatarpicker.cpp

示例7: getItemIDs

// Checked: 2013-10-12 (RLVa-1.4.9)
bool RlvCommandOptionGetPath::getItemIDs(LLWearableType::EType wtType, uuid_vec_t& idItems)
{
	uuid_vec_t::size_type cntItemsPrev = idItems.size();

	LLInventoryModel::cat_array_t folders; LLInventoryModel::item_array_t items;
	LLFindWearablesOfType f(wtType);
	gInventory.collectDescendentsIf(LLAppearanceMgr::instance().getCOF(), folders, items, false, f);
	for (LLInventoryModel::item_array_t::const_iterator itItem = items.begin(); itItem != items.end(); ++itItem)
	{
		const LLViewerInventoryItem* pItem = *itItem;
		if (pItem)
			idItems.push_back(pItem->getLinkedUUID());
	}

	return (cntItemsPrev != idItems.size());
}
开发者ID:Frans,项目名称:SingularityViewer,代码行数:17,代码来源:rlvhelper.cpp

示例8: addAvatarUUID

static void addAvatarUUID(const LLUUID av_id, uuid_vec_t& avatar_ids, std::vector<LLAvatarName>& avatar_names)
{
	if (av_id.notNull())
	{
		avatar_ids.push_back(av_id);

		std::map<LLUUID, LLAvatarName>::iterator iter = sAvatarNameMap.find(av_id);
		if (iter != sAvatarNameMap.end())
		{
			avatar_names.push_back(iter->second);
		}
		else
		{
			// the only case where it isn't in the name map is friends
			// but it should be in the name cache
			LLAvatarName av_name;
			LLAvatarNameCache::get(av_id, &av_name);
			avatar_names.push_back(av_name);
		}
	}
}
开发者ID:aragornarda,项目名称:SingularityViewer,代码行数:21,代码来源:llfloateravatarpicker.cpp


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