aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llgroupmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llgroupmgr.h')
-rw-r--r--linden/indra/newview/llgroupmgr.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/linden/indra/newview/llgroupmgr.h b/linden/indra/newview/llgroupmgr.h
index 7cef5ec..89be4bf 100644
--- a/linden/indra/newview/llgroupmgr.h
+++ b/linden/indra/newview/llgroupmgr.h
@@ -58,6 +58,8 @@ class LLGroupMemberData
58friend class LLGroupMgrGroupData; 58friend class LLGroupMgrGroupData;
59 59
60public: 60public:
61 typedef std::map<LLUUID,LLGroupRoleData*> role_list_t;
62
61 LLGroupMemberData(const LLUUID& id, 63 LLGroupMemberData(const LLUUID& id,
62 S32 contribution, 64 S32 contribution,
63 U64 agent_powers, 65 U64 agent_powers,
@@ -75,11 +77,11 @@ public:
75 const std::string& getOnlineStatus() const { return mOnlineStatus; } 77 const std::string& getOnlineStatus() const { return mOnlineStatus; }
76 void addRole(const LLUUID& role, LLGroupRoleData* rd); 78 void addRole(const LLUUID& role, LLGroupRoleData* rd);
77 bool removeRole(const LLUUID& role); 79 bool removeRole(const LLUUID& role);
78 void clearRoles() { mRoles.clear(); }; 80 void clearRoles() { mRolesList.clear(); };
79 std::map<LLUUID,LLGroupRoleData*>::iterator roleBegin() { return mRoles.begin(); } 81 role_list_t::iterator roleBegin() { return mRolesList.begin(); }
80 std::map<LLUUID,LLGroupRoleData*>::iterator roleEnd() { return mRoles.end(); } 82 role_list_t::iterator roleEnd() { return mRolesList.end(); }
81 83
82 BOOL isInRole(const LLUUID& role_id) { return (mRoles.find(role_id) != mRoles.end()); } 84 BOOL isInRole(const LLUUID& role_id) { return (mRolesList.find(role_id) != mRolesList.end()); }
83 85
84protected: 86protected:
85 LLUUID mID; 87 LLUUID mID;
@@ -88,7 +90,7 @@ protected:
88 std::string mTitle; 90 std::string mTitle;
89 std::string mOnlineStatus; 91 std::string mOnlineStatus;
90 BOOL mIsOwner; 92 BOOL mIsOwner;
91 std::map<LLUUID,LLGroupRoleData*> mRoles; 93 role_list_t mRolesList;
92}; 94};
93 95
94struct LLRoleData 96struct LLRoleData
@@ -185,8 +187,6 @@ struct lluuid_pair_less
185 } 187 }
186}; 188};
187 189
188typedef std::map<lluuid_pair,LLRoleMemberChange,lluuid_pair_less> change_map;
189
190struct LLGroupTitle 190struct LLGroupTitle
191{ 191{
192 std::string mTitle; 192 std::string mTitle;
@@ -231,17 +231,16 @@ public:
231 BOOL isGroupPropertiesDataComplete() { return mGroupPropertiesDataComplete; } 231 BOOL isGroupPropertiesDataComplete() { return mGroupPropertiesDataComplete; }
232 232
233public: 233public:
234 typedef std::map<LLUUID,LLGroupMemberData*> member_list; 234 typedef std::map<LLUUID,LLGroupMemberData*> member_list_t;
235 typedef member_list::iterator member_iter; 235 typedef std::map<LLUUID,LLGroupRoleData*> role_list_t;
236 typedef std::map<LLUUID,LLGroupRoleData*> role_list; 236 typedef std::map<lluuid_pair,LLRoleMemberChange,lluuid_pair_less> change_map_t;
237 typedef role_list::iterator role_iter; 237 typedef std::map<LLUUID,LLRoleData> role_data_map_t;
238 238 member_list_t mMembers;
239 member_list mMembers; 239 role_list_t mRoles;
240 role_list mRoles;
241 240
242 241
243 change_map mRoleMemberChanges; 242 change_map_t mRoleMemberChanges;
244 std::map<LLUUID,LLRoleData> mRoleChanges; 243 role_data_map_t mRoleChanges;
245 244
246 std::vector<LLGroupTitle> mTitles; 245 std::vector<LLGroupTitle> mTitles;
247 246
@@ -298,6 +297,8 @@ struct LLRoleActionSet
298 297
299class LLGroupMgr 298class LLGroupMgr
300{ 299{
300 LOG_CLASS(LLGroupMgr);
301
301public: 302public:
302 LLGroupMgr(); 303 LLGroupMgr();
303 ~LLGroupMgr(); 304 ~LLGroupMgr();
@@ -355,10 +356,10 @@ protected:
355 LLGroupMgrGroupData* createGroupData(const LLUUID &id); 356 LLGroupMgrGroupData* createGroupData(const LLUUID &id);
356 357
357protected: 358protected:
358 typedef std::multimap<LLUUID,LLGroupMgrObserver*>::iterator observer_iter; 359 typedef std::multimap<LLUUID,LLGroupMgrObserver*> observer_multimap_t;
359 std::multimap<LLUUID,LLGroupMgrObserver*> mObservers; 360 observer_multimap_t mObservers;
360 typedef std::map<LLUUID, LLGroupMgrGroupData*>::iterator group_iter; 361 typedef std::map<LLUUID, LLGroupMgrGroupData*> group_map_t;
361 std::map<LLUUID, LLGroupMgrGroupData*> mGroups; 362 group_map_t mGroups;
362}; 363};
363 364
364extern LLGroupMgr* gGroupMgr; 365extern LLGroupMgr* gGroupMgr;