Changeset 2348 for code/branches/network/src/network/TrafficControl.h
- Timestamp:
- Dec 6, 2008, 12:28:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/TrafficControl.h
r2341 r2348 53 53 unsigned int objValuePerm; 54 54 unsigned int objValueSched; 55 objInfo(uint32_t ID, uint32_t creatorID, int32_t curGsID, int32_t diffGsID, uint32_t size, unsigned int prioperm, unsigned int priosched) 56 { objID = ID; objCreatorID = creatorID; objCurGS = curGsID; objDiffGS = diffGsID; objSize = size; objValuePerm = prioperm; objValueSched = priosched; } 55 57 }; 56 58 … … 90 92 *permanent client list: contains client ids, object ids and objectInfos (in this order) 91 93 */ 92 std::map<unsigned int, std::map<unsigned int, std::vector<objInfo>> > clientListPerm_;94 std::map<unsigned int, std::map<unsigned int, objInfo > > clientListPerm_; 93 95 //has to be created with constructor and then needs to be updated by evaluateList(). 94 96 … … 100 102 *static priority list: contains obj id, basic priority (in this order) 101 103 */ 102 std::map<unsigned int, unsigned int> permObjPrio_;104 // std::map<unsigned int, unsigned int> permObjPrio_; 103 105 /** 104 106 *dynamic priority list: contains obj id, dynamic priority (eg scheduled) (in this order) 105 107 */ 106 std::map<unsigned int, unsigned int> schedObjPrio_;108 // std::map<unsigned int, unsigned int> schedObjPrio_; 107 109 //end: lists to be used 108 110 … … 118 120 std::vector<obj> copiedVector; 119 121 120 void updateReferenceList(std::map<unsigned int, objInfo> *list);//done121 void insertinClientListPerm(unsigned int client id, unsigned int objid, objInfoobjinf);//done122 // void updateReferenceList(std::map<unsigned int, objInfo> *list);//done 123 void insertinClientListPerm(unsigned int clientID, obj objinf);//done 122 124 /** 123 125 *creates listToProcess, which can be easialy compared with other lists 124 126 */ 125 void copyList(std::vector<obj> *list);//done127 // void copyList(std::vector<obj> *list);//done 126 128 127 void cut(std::vector<obj> *list, int targetsize);129 void cut(std::vector<obj> *list, unsigned int targetsize); 128 130 void updateClientListTemp(std::vector<obj> *list);//done 129 131 /** 130 132 *evaluates Data given (vector) and produces result(->Data to be updated) 131 133 */ 132 void evaluateList( std::vector<obj> *list);//done134 void evaluateList(unsigned int clientID, std::vector<obj> *list);//done 133 135 134 136 protected: … … 150 152 void deleteObject(unsigned int objectID); // this function gets called when an object has been deleted (in order to clean up lists and maps) 151 153 152 bool priodiffer( obj i, obj j);154 bool priodiffer(uint32_t clientID, obj i, obj j); 153 155 }; 154 156
Note: See TracChangeset
for help on using the changeset viewer.