本文整理汇总了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);
}
示例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));
}
示例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;
}
}
示例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") );
}
示例5: return
void *CBlock::GetMemberData( int memberNum )
{
if ( memberNum > m_numMembers-1 )
return NULL;
return (void *) ((GetMember( memberNum ))->GetData());
}
示例6: GetMember
BinaryFile* ArchiveFile::GetMemberByProcName(const string& sSym)
{
// Get the index
int idx = m_SymMap[sSym];
// Look it up
return GetMember(idx);
}
示例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 );
}
示例8: GetMember
int CCampus::GetMemberLv( u_long idPlayer )
{
CCampusMember* pMember = GetMember( idPlayer );
if( pMember )
return pMember->GetLevel();
return 0;
}
示例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;
}
}
示例10: return
void *CBlock::GetMemberData( int memberNum )
{
if ( memberNum >= GetNumMembers() )
{
return NULL;
}
return (void *) ((GetMember( memberNum ))->GetData());
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}