- Timestamp:
- Dec 21, 2009, 1:28:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/network/NetworkFunction.h
r6387 r6388 83 83 { 84 84 std::map<std::string, NetworkFunctionBase*>& map = NetworkFunctionBase::getNameMap(); 85 assert( map.find(name)!=map.end() ); 85 assert( map.find(name)!=map.end() ); 86 86 map[name]->setNetworkID(id); 87 87 } … … 139 139 static NetworkMemberFunctionBase* getFunction( const NetworkFunctionPointer& p ){ assert( functorMap_.find(p) != functorMap_.end() ); return functorMap_[p]; } 140 140 141 // 141 // 142 142 virtual void call(uint32_t objectID)=0; 143 143 virtual void call(uint32_t objectID, const MultiType& mt1)=0; … … 159 159 160 160 inline void call(uint32_t objectID) 161 { 161 { 162 162 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 163 163 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID))); 164 164 } 165 165 inline void call(uint32_t objectID, const MultiType& mt1) 166 { 166 { 167 167 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 168 168 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1); 169 169 } 170 170 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) 171 { 171 { 172 172 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 173 173 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2); 174 174 } 175 175 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 176 { 176 { 177 177 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 178 178 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3); 179 179 } 180 180 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 181 { 181 { 182 182 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 183 183 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4); 184 184 } 185 185 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 186 { 186 { 187 187 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 188 188 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4, mt5);
Note: See TracChangeset
for help on using the changeset viewer.