本文整理汇总了C++中GetMember函数的典型用法代码示例。如果您正苦于以下问题:C++ GetMember函数的具体用法?C++ GetMember怎么用?C++ GetMember使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetMember函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: GetMember
void ArenaTeam::Inspect(WorldSession* session, uint64 guid)
{
ArenaTeamMember* member = GetMember(guid);
if (!member)
return;
WorldPacket data(MSG_INSPECT_ARENA_TEAMS, 8+1+4*6);
data << uint64(guid); // player guid
data << uint8(GetSlot()); // slot (0...2)
data << uint32(GetId()); // arena team id
data << uint32(Stats.Rating); // rating
data << uint32(Stats.SeasonGames); // season played
data << uint32(Stats.SeasonWins); // season wins
data << uint32(member->SeasonGames); // played (count of all games, that the inspected member participated...)
data << uint32(member->PersonalRating); // personal rating
session->SendPacket(&data);
}
开发者ID:Crash911,项目名称:RaptoredSkyFire,代码行数:17,代码来源:ArenaTeam.cpp
示例17: GetMember
void ArenaTeam::InspectStats(WorldSession *session, ObjectGuid guid)
{
ArenaTeamMember* member = GetMember(guid);
if(!member)
return;
WorldPacket data(MSG_INSPECT_ARENA_TEAMS, 8+1+4*6);
data << guid; // player guid
data << uint8(GetSlot()); // slot (0...2)
data << uint32(GetId()); // arena team id
data << uint32(m_stats.rating); // rating
data << uint32(m_stats.games_season); // season played
data << uint32(m_stats.wins_season); // season wins
data << uint32(member->games_season); // played (count of all games, that the inspected member participated...)
data << uint32(member->personal_rating); // personal rating
session->SendPacket(&data);
}
开发者ID:Archives,项目名称:easy-mangos,代码行数:17,代码来源:ArenaTeam.cpp
注:本文中的GetMember函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论