Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 1:37:50 PM (9 years ago)
Author:
landauf
Message:

moved static maps from NetworkFunctionStatic and NetworkMemberFunctionBase to NetworkFunctionManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/network/NetworkFunctionManager.h

    r10469 r10471  
    4545            static void destroyAllNetworkFunctions();
    4646            static std::map<std::string, NetworkFunctionBase*>& getNameMap();
     47
     48            static inline std::map<NetworkFunctionPointer, NetworkFunctionBase*>& getFunctorMap()
     49                { return functorMap_; }
     50            static inline std::map<uint32_t, NetworkFunctionBase*>& getIdMap()
     51                { return idMap_; }
     52
     53            static NetworkFunctionBase* getFunction(const NetworkFunctionPointer& p);
     54            static NetworkFunctionBase* getFunction(uint32_t id);
     55
     56        private:
     57            static std::map<NetworkFunctionPointer, NetworkFunctionBase*> functorMap_;
     58            static std::map<uint32_t, NetworkFunctionBase*> idMap_;
    4759    };
    4860}
Note: See TracChangeset for help on using the changeset viewer.