LLGroupRoleData Class Reference

#include <llgroupmgr.h>

Collaboration diagram for LLGroupRoleData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLGroupRoleData (const LLUUID &role_id, const std::string &role_name, const std::string &role_title, const std::string &role_desc, const U64 role_powers, const S32 member_count)
 LLGroupRoleData (const LLUUID &role_id, LLRoleData role_data, const S32 member_count)
 ~LLGroupRoleData ()
const LLUUIDgetID () const
const std::vector< LLUUID > & getRoleMembers () const
S32 getMembersInRole (std::vector< LLUUID > members, BOOL needs_sort=TRUE)
S32 getTotalMembersInRole ()
LLRoleData getRoleData () const
void setRoleData (LLRoleData data)
void addMember (const LLUUID &member)
bool removeMember (const LLUUID &member)
void clearMembers ()
const std::vector< LLUUID
>::const_iterator 
getMembersBegin () const
const std::vector< LLUUID
>::const_iterator 
getMembersEnd () const

Protected Member Functions

 LLGroupRoleData ()

Protected Attributes

LLUUID mRoleID
LLRoleData mRoleData
std::vector< LLUUIDmMemberIDs
S32 mMemberCount

Private Attributes

BOOL mMembersNeedsSort

Friends

class LLGroupMgrGroupData

Detailed Description

Definition at line 111 of file llgroupmgr.h.


Constructor & Destructor Documentation

LLGroupRoleData::LLGroupRoleData ( const LLUUID role_id,
const std::string &  role_name,
const std::string &  role_title,
const std::string &  role_desc,
const U64  role_powers,
const S32  member_count 
)

Definition at line 120 of file llgroupmgr.cpp.

References LLRoleData::mChangeType, mRoleData, LLRoleData::mRoleDescription, LLRoleData::mRoleName, LLRoleData::mRolePowers, LLRoleData::mRoleTitle, and RC_UPDATE_NONE.

LLGroupRoleData::LLGroupRoleData ( const LLUUID role_id,
LLRoleData  role_data,
const S32  member_count 
)

Definition at line 137 of file llgroupmgr.cpp.

LLGroupRoleData::~LLGroupRoleData (  ) 

Definition at line 148 of file llgroupmgr.cpp.

LLGroupRoleData::LLGroupRoleData (  )  [inline, protected]

Definition at line 150 of file llgroupmgr.h.


Member Function Documentation

void LLGroupRoleData::addMember ( const LLUUID member  ) 

Definition at line 184 of file llgroupmgr.cpp.

References mMemberIDs, mMembersNeedsSort, and TRUE.

Referenced by LLGroupMgrGroupData::changeRoleMember(), and LLGroupMgr::processGroupRoleMembersReply().

void LLGroupRoleData::clearMembers (  ) 

Definition at line 204 of file llgroupmgr.cpp.

References FALSE, mMemberIDs, and mMembersNeedsSort.

const LLUUID& LLGroupRoleData::getID (  )  const [inline]

Definition at line 129 of file llgroupmgr.h.

References mRoleID.

const std::vector<LLUUID>::const_iterator LLGroupRoleData::getMembersBegin (  )  const [inline]

Definition at line 142 of file llgroupmgr.h.

References mMemberIDs.

const std::vector<LLUUID>::const_iterator LLGroupRoleData::getMembersEnd (  )  const [inline]

Definition at line 145 of file llgroupmgr.h.

References mMemberIDs.

S32 LLGroupRoleData::getMembersInRole ( std::vector< LLUUID members,
BOOL  needs_sort = TRUE 
)

Definition at line 152 of file llgroupmgr.cpp.

References FALSE, LLUUID::isNull(), llmin(), mMemberIDs, mMembersNeedsSort, mRoleID, and S32.

LLRoleData LLGroupRoleData::getRoleData (  )  const [inline]

Definition at line 135 of file llgroupmgr.h.

References mRoleData.

Referenced by LLPanelGroupActionsSubTab::handleActionSelect().

const std::vector<LLUUID>& LLGroupRoleData::getRoleMembers (  )  const [inline]

Definition at line 131 of file llgroupmgr.h.

References mMemberIDs.

S32 LLGroupRoleData::getTotalMembersInRole (  )  [inline]

Definition at line 133 of file llgroupmgr.h.

References mMemberIDs.

bool LLGroupRoleData::removeMember ( const LLUUID member  ) 

Definition at line 190 of file llgroupmgr.cpp.

References mMemberIDs, mMembersNeedsSort, and TRUE.

Referenced by LLGroupMgrGroupData::changeRoleMember().

void LLGroupRoleData::setRoleData ( LLRoleData  data  )  [inline]

Definition at line 136 of file llgroupmgr.h.

References mRoleData.

Referenced by LLGroupMgrGroupData::sendRoleChanges().


Friends And Related Function Documentation

friend class LLGroupMgrGroupData [friend]

Definition at line 113 of file llgroupmgr.h.


Member Data Documentation

S32 LLGroupRoleData::mMemberCount [protected]

Definition at line 157 of file llgroupmgr.h.

std::vector<LLUUID> LLGroupRoleData::mMemberIDs [protected]

Definition at line 156 of file llgroupmgr.h.

Referenced by addMember(), clearMembers(), getMembersBegin(), getMembersEnd(), getMembersInRole(), getRoleMembers(), getTotalMembersInRole(), and removeMember().

BOOL LLGroupRoleData::mMembersNeedsSort [private]

Definition at line 160 of file llgroupmgr.h.

Referenced by addMember(), clearMembers(), getMembersInRole(), and removeMember().

LLRoleData LLGroupRoleData::mRoleData [protected]

Definition at line 154 of file llgroupmgr.h.

Referenced by getRoleData(), LLGroupRoleData(), and setRoleData().

LLUUID LLGroupRoleData::mRoleID [protected]

Definition at line 153 of file llgroupmgr.h.

Referenced by getID(), and getMembersInRole().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:23 2010 for Second Life Viewer by  doxygen 1.4.7