Changeset 3045 for code/branches/netp3/src/network/synchronisable
- Timestamp:
- May 24, 2009, 11:27:14 PM (16 years ago)
- Location:
- code/branches/netp3/src/network/synchronisable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp3/src/network/synchronisable/SynchronisableVariable.cc
r2991 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200823 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/synchronisable/SynchronisableVariable.h
r2991 r3045 81 81 virtual inline void* getReference(){ return (void *)&this->variable_; } 82 82 protected: 83 // inline bool checkEquality(uint8_t* mem);84 // inline void loadAndIncrease(uint8_t*& mem);85 // inline void saveAndIncrease(uint8_t*& mem);86 // inline uint32_t returnSize();87 83 88 84 T& variable_; … … 133 129 else 134 130 return 0; 135 // mem += SynchronisableVariable<T>::getSize();136 131 } 137 132 … … 192 187 // now write the content 193 188 saveAndIncrease( this->variable_, mem ); 194 // mem += SynchronisableVariable<T>::getSize();195 189 return SynchronisableVariableBidirectional::getSize(mode); 196 190 } … … 204 198 if ( *static_cast<uint8_t*>(mem) != this->varReference_ ) 205 199 { // wrong reference number, so discard the data 200 // COUT(0) << "discharding data" << endl; 206 201 mem += getSize( mode ); // SynchronisableVariableBidirectional::getSize returns size of variable + reference 207 202 return; … … 247 242 if ( callback ) 248 243 NetworkCallbackManager::triggerCallback( this->callback_ ); 249 //this->callback_->call();250 244 } 251 245 … … 258 252 } 259 253 260 //#include "network/synchronisable/SynchronisableVariableSpecialisations.h"261 254 262 255 #endif
Note: See TracChangeset
for help on using the changeset viewer.