Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2009, 8:19:58 PM (15 years ago)
Author:
scheusso
Message:

synchronisation of pointers to classes that inherit from Synchronisable are now possible
just use the normal registerVariable syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/util/Serialise.h

    r5738 r6123  
    4040namespace orxonox{
    4141   
    42 // general template declaration
    43    
    4442    /** @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 );
    4644    /** @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 );
    4846    /** @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 );
    5048    /** @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 );
    5250
    5351// =================== Template specialisation stuff =============
     
    471469        return variable==Degree(*r);
    472470    }
    473    
    474    
    475471}
    476472
Note: See TracChangeset for help on using the changeset viewer.