Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3207


Ignore:
Timestamp:
Jun 22, 2009, 11:34:57 PM (15 years ago)
Author:
scheusso
Message:

fix in synchronisation of function ids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp5/src/network/NetworkFunction.h

    r3196 r3207  
    7575    ~NetworkFunctionBase();
    7676   
    77     inline void         setNetworkID(uint32_t id)       { this->networkID_ = id; }
     77    virtual void         setNetworkID(uint32_t id)       { this->networkID_ = id; }
    7878    inline uint32_t     getNetworkID() const            { return this->networkID_; }
    7979    inline std::string  getName() const                 { return name_; }
     
    105105    inline void call(const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5){ (*this->functor_)(mt1, mt2, mt3, mt4, mt5); }
    106106   
     107    virtual void setNetworkID( uint32_t id ){ NetworkFunctionBase::setNetworkID( id ); idMap_[id] = this; }
    107108    static inline NetworkFunctionStatic* getNetworkFunction( uint32_t id){ assert( idMap_.find(id)!=idMap_.end() ); return idMap_[id]; }
    108109    static NetworkFunctionStatic* getFunction( uint32_t id ){ assert( idMap_.find(id) != idMap_.end() ); return idMap_[id]; }
     
    123124    ~NetworkMemberFunctionBase();
    124125   
     126    virtual void setNetworkID( uint32_t id ){ NetworkFunctionBase::setNetworkID( id ); idMap_[id] = this; }
    125127    static inline NetworkMemberFunctionBase* getNetworkFunction( uint32_t id){ assert( idMap_.find(id)!=idMap_.end() ); return idMap_[id]; }
    126128    static NetworkMemberFunctionBase* getFunction( uint32_t id ){ assert( idMap_.find(id) != idMap_.end() ); return idMap_[id]; }
Note: See TracChangeset for help on using the changeset viewer.