src/work/deba/map_defines.h
changeset 1327 ecc1cdea2ee7
parent 703 32f280a5ed7d
equal deleted inserted replaced
3:56905f73bb73 4:92718a1d4b1e
    59 NodeMap& operator=(const NodeMap& copy) { \
    59 NodeMap& operator=(const NodeMap& copy) { \
    60   this->Factory::Map<V>::operator=(static_cast<Factory::Map<V>&>(copy)); \
    60   this->Factory::Map<V>::operator=(static_cast<Factory::Map<V>&>(copy)); \
    61   return *this; \
    61   return *this; \
    62 } \
    62 } \
    63 template <typename CMap>NodeMap& operator=(const CMap& copy) { \
    63 template <typename CMap>NodeMap& operator=(const CMap& copy) { \
    64   this->Factory::Map<V>::operator=<CMap>(copy); \
    64   this->Factory::Map<V>::operator=<CMap>(static_cast<Factory::Map<V>&>(copy));\
    65   return *this; \
    65   return *this; \
    66 } \
    66 } \
    67 };
    67 };
    68 
    68 
    69 /** Import a map from a concrete map factory. The import method is
    69 /** Import a map from a concrete map factory. The import method is
    85 EdgeMap& operator=(const EdgeMap& copy) { \
    85 EdgeMap& operator=(const EdgeMap& copy) { \
    86   this->Factory::Map<V>::operator=(static_cast<Factory::Map<V>&>(copy)); \
    86   this->Factory::Map<V>::operator=(static_cast<Factory::Map<V>&>(copy)); \
    87   return *this; \
    87   return *this; \
    88 } \
    88 } \
    89 template <typename CMap>EdgeMap& operator=(const CMap& copy) { \
    89 template <typename CMap>EdgeMap& operator=(const CMap& copy) { \
    90   this->Factory::Map<V>::operator=<CMap>(copy); \
    90   this->Factory::Map<V>::operator=<CMap>(static_cast<Factory::Map<V>&>(copy));\
    91   return *this; \
    91   return *this; \
    92 } \
    92 } \
    93 };
    93 };
    94 
    94 
    95 /** This macro creates both map factories and imports both maps.
    95 /** This macro creates both map factories and imports both maps.