Changeset 7495 for code/trunk/src/libraries/network/NetworkFunction.h
- Timestamp:
- Sep 28, 2010, 9:48:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/network/NetworkFunction.h
r7284 r7495 139 139 140 140 // 141 virtual voidcall(uint32_t objectID)=0;142 virtual voidcall(uint32_t objectID, const MultiType& mt1)=0;143 virtual voidcall(uint32_t objectID, const MultiType& mt1, const MultiType& mt2)=0;144 virtual voidcall(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3)=0;145 virtual voidcall(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4)=0;146 virtual voidcall(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5)=0;141 virtual bool call(uint32_t objectID)=0; 142 virtual bool call(uint32_t objectID, const MultiType& mt1)=0; 143 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2)=0; 144 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3)=0; 145 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4)=0; 146 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5)=0; 147 147 148 148 private: … … 156 156 NetworkMemberFunction(const FunctorMemberPtr<T>& functor, const std::string& name, const NetworkFunctionPointer& p); 157 157 158 inline void call(uint32_t objectID) 159 { 160 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 158 inline bool call(uint32_t objectID) 159 { 160 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 161 { 161 162 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID))); 162 } 163 inline void call(uint32_t objectID, const MultiType& mt1) 164 { 165 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 163 return true; 164 } 165 else 166 return false; 167 } 168 inline bool call(uint32_t objectID, const MultiType& mt1) 169 { 170 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 171 { 166 172 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1); 167 } 168 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) 169 { 170 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 173 return true; 174 } 175 else 176 return false; 177 } 178 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) 179 { 180 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 181 { 171 182 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2); 172 } 173 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 174 { 175 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 183 return true; 184 } 185 else 186 return false; 187 } 188 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 189 { 190 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 191 { 176 192 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3); 177 } 178 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 179 { 180 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 193 return true; 194 } 195 else 196 return false; 197 } 198 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 199 { 200 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 201 { 181 202 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4); 182 } 183 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 184 { 185 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 203 return true; 204 } 205 else 206 return false; 207 } 208 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 209 { 210 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 211 { 186 212 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4, mt5); 213 return true; 214 } 215 else 216 return false; 187 217 } 188 218
Note: See TracChangeset
for help on using the changeset viewer.