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


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

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


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

示例1: callbackAvatarID

void LLPanelObjectTools::callbackAvatarID(const uuid_vec_t& ids, const std::vector<LLAvatarName> names)
{
	if (ids.empty() || names.empty()) return;
	mTargetAvatar = ids[0];
	getChild<LLUICtrl>("target_avatar_name")->setValue(names[0].getCompleteName());
	refresh();
}
开发者ID:Belxjander,项目名称:Kirito,代码行数:7,代码来源:llfloatergodtools.cpp

示例2: callbackBlockPicked

void LLPanelBlockedList::callbackBlockPicked(const std::vector<std::string>& names, const uuid_vec_t& ids)
{
	if (names.empty() || ids.empty()) return;
	LLMute mute(ids[0], names[0], LLMute::AGENT);
	LLMuteList::getInstance()->add(mute);
	showPanelAndSelect(mute.mID);
}
开发者ID:Katharine,项目名称:kittyviewer,代码行数:7,代码来源:llpanelblockedlist.cpp

示例3: onPickAvatar

// static
void LLPanelFriends::onPickAvatar(  const uuid_vec_t& ids,
									const std::vector<LLAvatarName>& names )
{
	if (names.empty()) return;
	if (ids.empty()) return;
	LLAvatarActions::requestFriendshipDialog(ids[0], names[0].getCompleteName());
}
开发者ID:ArxNet,项目名称:SingularityViewer,代码行数:8,代码来源:llfloaterfriends.cpp

示例4: onPickUser

//-----------------------------------------------------------------------------
// onPickUser()
//-----------------------------------------------------------------------------
void LLFloaterMute::onPickUser(const uuid_vec_t& ids, const std::vector<LLAvatarName>& names)
{
	if (names.empty() || ids.empty()) return;

	LLMute mute(ids[0], names[0].getLegacyName(), LLMute::AGENT);
	LLMuteList::getInstance()->add(mute);
	updateButtons();
}
开发者ID:1234-,项目名称:SingularityViewer,代码行数:11,代码来源:llfloatermute.cpp

示例5: onClickPay

// static
void LLPanelFriends::onClickPay(void* user_data)
{
	LLPanelFriends* panelp = (LLPanelFriends*)user_data;

	const uuid_vec_t ids = panelp->mFriendsList->getSelectedIDs();
	if(!ids.empty())
	{	
		LLAvatarActions::pay(ids[0]);
	}
}
开发者ID:ArxNet,项目名称:SingularityViewer,代码行数:11,代码来源:llfloaterfriends.cpp

示例6: callbackAvatarID

void LLFloaterReporter::callbackAvatarID(const uuid_vec_t& ids, const std::vector<LLAvatarName>& names)
{
	if (ids.empty() || names.empty()) return;

	getChild<LLUICtrl>("abuser_name_edit")->setValue(names[0].getCompleteName());
		
	mAbuserID = ids[0];

	refresh();

}
开发者ID:OS-Development,项目名称:VW.Singularity,代码行数:11,代码来源:llfloaterreporter.cpp

示例7: callbackAvatarID

void LLFloaterReporter::callbackAvatarID(const std::vector<std::string>& names, const uuid_vec_t& ids)
{
	if (ids.empty() || names.empty()) return;

	childSetText("abuser_name_edit", names[0] );

	mAbuserID = ids[0];

	refresh();

}
开发者ID:HyangZhao,项目名称:NaCl-main,代码行数:11,代码来源:llfloaterreporter.cpp

示例8: onClickProfile

// static
void LLPanelFriends::onClickProfile(void* user_data)
{
	LLPanelFriends* panelp = (LLPanelFriends*)user_data;

	//llinfos << "LLPanelFriends::onClickProfile()" << llendl;
	const uuid_vec_t ids = panelp->mFriendsList->getSelectedIDs();
	if(!ids.empty())
	{
		LLAvatarActions::showProfile(ids[0]);
	}
}
开发者ID:ArxNet,项目名称:SingularityViewer,代码行数:12,代码来源:llfloaterfriends.cpp

示例9: callbackAvatarID

void LLFloaterReporter::callbackAvatarID(const uuid_vec_t& ids, const std::vector<LLAvatarName>& names)
{
	if (ids.empty() || names.empty()) return;

	if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) || gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMETAGS))
		getChild<LLUICtrl>("abuser_name_edit")->setValue(RlvStrings::getString(RLV_STRING_HIDDEN));
	else
		getChild<LLUICtrl>("abuser_name_edit")->setValue(names[0].getCompleteName());
		
	mAbuserID = ids[0];

	refresh();

}
开发者ID:GODOFMINECRAFT4,项目名称:SingularityViewer,代码行数:14,代码来源:llfloaterreporter.cpp

示例10: callbackAvatarID

void LLFloaterReporter::callbackAvatarID(const uuid_vec_t& ids, const std::vector<LLAvatarName>& names)
{
	if (ids.empty() || names.empty()) return;

	// this should never be called in a bug report but here for safety.
	if ( mReportType != BUG_REPORT )
	{
		childSetText("abuser_name_edit", names[0].getCompleteName() );
		
		mAbuserID = ids[0];

		refresh();
	};
}
开发者ID:ap0110,项目名称:SingularityViewer,代码行数:14,代码来源:llfloaterreporter.cpp

示例11: callbackAvatarPick

void LLFloaterSellLandUI::callbackAvatarPick(const uuid_vec_t& ids, const std::vector<LLAvatarName> names)
{	
	LLParcel* parcel = mParcelSelection->getParcel();

	if (names.empty() || ids.empty()) return;
	
	LLUUID id = ids[0];
	parcel->setAuthorizedBuyerID(id);

	mAuthorizedBuyer = ids[0];

	getChild<LLUICtrl>("sell_to_agent")->setValue(names[0].getCompleteName());

	refreshUI();
}
开发者ID:DarkSpyro003,项目名称:DarkSpyros_Viewer,代码行数:15,代码来源:llfloatersellland.cpp

示例12: updateFriends

void LLPanelFriends::updateFriends(U32 changed_mask)
{
	LLUUID selected_id;
	LLCtrlListInterface *friends_list = childGetListInterface("friend_list");
	if (!friends_list) return;
	LLCtrlScrollInterface *friends_scroll = childGetScrollInterface("friend_list");
	if (!friends_scroll) return;
	
	// We kill the selection warning, otherwise we'll spam with warning popups
	// if the maximum amount of friends are selected
	mShowMaxSelectWarning = false;

	const uuid_vec_t selected_friends = mFriendsList->getSelectedIDs();
	if(changed_mask & (LLFriendObserver::ADD | LLFriendObserver::REMOVE | LLFriendObserver::ONLINE))
	{
		refreshNames(changed_mask);
	}
	else if(changed_mask & LLFriendObserver::POWERS)
	{
		--mNumRightsChanged;
		if(mNumRightsChanged > 0)
		{
			mPeriod = RIGHTS_CHANGE_TIMEOUT;	
			mEventTimer.start();
			mAllowRightsChange = FALSE;
		}
		else
		{
			tick();
		}
	}
	if(!selected_friends.empty())
	{
		// only non-null if friends was already found. This may fail,
		// but we don't really care here, because refreshUI() will
		// clean up the interface.
		friends_list->setCurrentByID(selected_id);
		for(uuid_vec_t::const_iterator itr = selected_friends.begin(); itr != selected_friends.end(); ++itr)
		{
			friends_list->setSelectedByValue(*itr, true);
		}
	}

	refreshUI();
	mShowMaxSelectWarning = true;
}
开发者ID:ArxNet,项目名称:SingularityViewer,代码行数:46,代码来源:llfloaterfriends.cpp

示例13: onClickIM

void LLPanelFriends::onClickIM(void* user_data)
{
	LLPanelFriends* panelp = (LLPanelFriends*)user_data;

	//llinfos << "LLPanelFriends::onClickIM()" << llendl;
	const uuid_vec_t ids = panelp->mFriendsList->getSelectedIDs();
	if(!ids.empty())
	{
		if(ids.size() == 1)
		{
			LLAvatarActions::startIM(ids[0]);
		}
		else
		{
			LLAvatarActions::startConference(ids);
		}
	}
}
开发者ID:ArxNet,项目名称:SingularityViewer,代码行数:18,代码来源:llfloaterfriends.cpp


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