Changeset 6123 for code/branches/presentation2/src/libraries/util
- Timestamp:
- Nov 23, 2009, 8:19:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/util/Serialise.h
r5738 r6123 40 40 namespace orxonox{ 41 41 42 // general template declaration43 44 42 /** @brief returns the size of the variable in a datastream */ 45 template <class T> inline uint32_t returnSize( const T& );43 template <class T> inline uint32_t returnSize( const T& variable ); 46 44 /** @brief loads the value of a variable out of the bytestream and increases the mem pointer */ 47 template <class T> inline void loadAndIncrease( const T& , uint8_t*&);45 template <class T> inline void loadAndIncrease( const T& variable, uint8_t*& mem ); 48 46 /** @brief saves the value of a variable into the bytestream and increases the mem pointer */ 49 template <class T> inline void saveAndIncrease( const T& , uint8_t*&);47 template <class T> inline void saveAndIncrease( const T& variable, uint8_t*& mem ); 50 48 /** @brief checks whether the variable of type T is the same as in the bytestream */ 51 template <class T> inline bool checkEquality( const T&, uint8_t*);49 template <class T> inline bool checkEquality( const T& variable, uint8_t* mem ); 52 50 53 51 // =================== Template specialisation stuff ============= … … 471 469 return variable==Degree(*r); 472 470 } 473 474 475 471 } 476 472
Note: See TracChangeset
for help on using the changeset viewer.