當前位置: 首頁>>代碼示例>>C++>>正文


C++ GetMember函數代碼示例

本文整理匯總了C++中GetMember函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetMember函數的具體用法?C++ GetMember怎麽用?C++ GetMember使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了GetMember函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: name

SPGREchoSequence::SPGREchoSequence(const rapidjson::Value &json) {
    if (json.IsNull())
        QI::Fail("Could not read sequence: {}", name());
    TR = GetMember(json, "TR").GetDouble();
    TE = GetMember(json, "TE").GetDouble();
    FA = ArrayFromJSON(json, "FA", M_PI / 180);
}
開發者ID:spinicist,項目名稱:QUIT,代碼行數:7,代碼來源:SPGRSequence.cpp

示例2: name

/*
 * Regularly spaced sequence
 */
MultiEchoSequence::MultiEchoSequence(const rapidjson::Value &json) {
    if (json.IsNull())
        QI::Fail("Could not read sequence: {}", name());
    TR  = GetMember(json, "TR").GetDouble();
    TE1 = GetMember(json, "TE1").GetDouble();
    ESP = GetMember(json, "ESP").GetDouble();
    ETL = GetMember(json, "ETL").GetInt();
    TE  = Eigen::ArrayXd::LinSpaced(ETL, TE1, TE1 + ESP * (ETL - 1));
}
開發者ID:spinicist,項目名稱:QUIT,代碼行數:12,代碼來源:MultiEchoSequence.cpp

示例3: GetMember

VOID CTeamOrGroup::UpdateMemberInfo(TeamMemberInfo* member, GUID_t guid)
{
	TeamMemberInfo* pTMInfo;

	pTMInfo = GetMember(guid);
	if( pTMInfo == NULL )
	{
		Assert(FALSE);
		return;
	}

	switch(m_Type)
	{
	case TEAM_TYPE:
		{ // 隊伍情況
		}
		break;
	case GROUP_TYPE:
		{ // 團隊情況
		}
		break;
	default:
		Assert(FALSE);
		return;
	}
}
開發者ID:jjiezheng,項目名稱:pap_full,代碼行數:26,代碼來源:TeamOrGroup.cpp

示例4: hsLogEntry

void plNetTransport::DumpState()
{
    plNetClientMgr* nc=plNetClientMgr::GetInstance();
    
    hsLogEntry( nc->DebugMsg("-------------------\n") );
    hsLogEntry( nc->DebugMsg("Num Channels=%d\n", fChannelGroups.size()) );

    int i;
    for(i=0;i<fChannelGroups.size();i++)
    {
        plMembersList* mList = &fChannelGroups[i];
        hsLogEntry( nc->DebugMsg("\tChannel %d, num mbrs=%d\n", i, mList->size()) );
        int j;
        for(j=0; j<mList->size();j++)
        {
            plNetTransportMember * mbr = (*mList)[j];
            hsLogEntry( nc->DebugMsg("\t\tMbr %s\n",(*mList)[j]->AsString().c_str()) );
        }
    }

    nc->DebugMsg("Num Mbrs=%d\n", GetNumMembers());
    for(i=0;i<GetNumMembers();i++)
    {
        plNetTransportMember * mbr = GetMember(i);
        hsLogEntry (nc->DebugMsg("\tMbr %d, name=%s, plyrID=%lu, subs=%d", 
            i,mbr->AsString().c_str(),mbr->GetPlayerID(),mbr->GetNumSubscriptions()) );
        int j;
        for(j=0;j<mbr->GetNumSubscriptions();j++)
        {
            hsLogEntry( nc->DebugMsg("\t\tSub %d, chan=%d\n", j, mbr->GetSubscription(j)) );
        }
    }
    hsLogEntry( nc->DebugMsg("\n") );
}
開發者ID:cwalther,項目名稱:Plasma-nobink-test,代碼行數:34,代碼來源:plNetTransport.cpp

示例5: return

void *CBlock::GetMemberData( int memberNum )
{
	if ( memberNum > m_numMembers-1 )
		return NULL;

	return (void *) ((GetMember( memberNum ))->GetData());
}
開發者ID:Aura15,項目名稱:OpenJK,代碼行數:7,代碼來源:BlockStream.cpp

示例6: GetMember

BinaryFile* ArchiveFile::GetMemberByProcName(const string& sSym)
{
	// Get the index
	int idx = m_SymMap[sSym];
	// Look it up
	return GetMember(idx);
}
開發者ID:PhuongLam94,項目名稱:Boomerang-Production,代碼行數:7,代碼來源:ArchiveFile.cpp

示例7: ADDTOCALLSTACK

bool CItemStone::WeDeclareWar(CItemStone * pEnemyStone)
{
	ADDTOCALLSTACK("CItemStone::WeDeclareWar");
	if (!pEnemyStone)
		return false;

	// See if they've already declared war on us
	CStoneMember * pMember = GetMember(pEnemyStone);
	if ( pMember )
	{
		if ( pMember->GetWeDeclared())
			return true;
	}
	else // They haven't, make a record of this
	{
		pMember = new CStoneMember( this, pEnemyStone->GetUID(), STONEPRIV_ENEMY );
	}
	pMember->SetWeDeclared(true);

	// Now inform the other stone
	// See if they have already declared war on us
	CStoneMember * pEnemyMember = pEnemyStone->GetMember(this);
	if (!pEnemyMember) // Not yet it seems
		pEnemyMember = new CStoneMember( pEnemyStone, GetUID(), STONEPRIV_ENEMY );

	pEnemyMember->SetTheyDeclared(true);
	return( true );
}
開發者ID:WangXYZ,項目名稱:SphereServer_Source,代碼行數:28,代碼來源:CItemStone.cpp

示例8: GetMember

int CCampus::GetMemberLv( u_long idPlayer )
{
	CCampusMember* pMember = GetMember( idPlayer );
	if( pMember )
		return pMember->GetLevel();
	
	return 0;
}
開發者ID:KerwinMa,項目名稱:AerothFlyffSource,代碼行數:8,代碼來源:Campus.cpp

示例9: UpdateTransportGroup

void plNetTalkList::UpdateTransportGroup(plNetClientMgr* nc)
{
    if (fFlags & kDirty)
    {
        nc->fTransport.ClearChannelGrp(plNetClientMgr::kNetChanVoice);
        if (nc->IsPeerToPeer())
        {
            int i;
            for(i=0;i<GetNumMembers();i++)
            {
                if (GetMember(i)->IsPeerToPeer())
                    nc->fTransport.SubscribeToChannelGrp(GetMember(i), plNetClientMgr::kNetChanVoice);
            }
        }
        fFlags &= ~kDirty;
    }
}
開發者ID:Asteral,項目名稱:Plasma,代碼行數:17,代碼來源:plNetVoiceList.cpp

示例10: return

void *CBlock::GetMemberData( int memberNum )
{
	if ( memberNum >= GetNumMembers() )
	{
		return NULL;
	}
	return (void *) ((GetMember( memberNum ))->GetData());
}
開發者ID:DavidZeise,項目名稱:OpenJK,代碼行數:8,代碼來源:BlockStream.cpp

示例11: GetMember

void BnxChannel::UpdateMember(const std::string &strNick, const std::string &strNewNick) {
	MemberIterator memberItr = GetMember(strNick);

	if (memberItr != MemberEnd())
		memberItr->GetUser().SetNickname(strNewNick);

	if (IsVoteBanInProgress() && !IrcStrCaseCmp(m_clVoteBanMask.GetNickname().c_str(), strNick.c_str(), m_eCaseMapping))
		m_clVoteBanMask.SetNickname(strNewNick);
}
開發者ID:nslay,項目名稱:ircbnx,代碼行數:9,代碼來源:BnxChannel.cpp

示例12: RemoveMember

//
// remove member from master list, and all subscription channels.
// return true on success.
//
hsBool plNetTransport::RemoveMember(int idx)
{
    if (idx>=0)
    {
        plNetTransportMember* mbr=GetMember(idx);
        IRemoveMember(mbr);
        return true;
    }
    return false;
}
開發者ID:cwalther,項目名稱:Plasma-nobink-test,代碼行數:14,代碼來源:plNetTransport.cpp

示例13: GetMember

//
// return array index or -1
//
int plNetTransport::FindMember(uint32_t playerID) const
{
    int i;
    for( i=0 ;i<GetNumMembers() ;i++  )
    {
        plNetTransportMember* mbr = GetMember(i);
        if (mbr->GetPlayerID()==playerID)
            return i;
    }
    return -1;
}
開發者ID:cwalther,項目名稱:Plasma-nobink-test,代碼行數:14,代碼來源:plNetTransport.cpp

示例14: assert

JSONValue JSONValue::GetChild(const String& name, JSONValueType valueType) const
{
    assert(IsObject());

    if (!value_->HasMember(name.CString()))
        return JSONValue::EMPTY;

    Value& value = GetMember(name);
    if (valueType != JSON_ANY && value.GetType() != ToRapidJsonType(valueType))
        return JSONValue::EMPTY;

    return JSONValue(file_, &value);
}
開發者ID:Boshin,項目名稱:Urho3D,代碼行數:13,代碼來源:JSONValue.cpp

示例15: AddMember

BOOL CCampus::AddMember( CCampusMember* pMember )
{
	if( GetMember( pMember->GetPlayerId() ) )
	{
		Error( "Pupil is already campus member - idCampus : %d, idPlayer : %d", GetCampusId(), pMember->GetPlayerId() );
		return FALSE;
	}
	if( GetPupilNum() >= MAX_PUPIL_NUM )
	{
		Error( "Pupil is full - idCampus : %d", GetCampusId() );
		return FALSE;
	}
	m_mapCM.insert( MAP_CM::value_type( pMember->GetPlayerId(), pMember ) );
	return TRUE;
}
開發者ID:KerwinMa,項目名稱:AerothFlyffSource,代碼行數:15,代碼來源:Campus.cpp


注:本文中的GetMember函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。