#include namespace meow{ template inline RegisterInterface::RegisterInterface(){ } template inline bool RegisterInterface::regImplement(ImplementInterface* imp){ if(implements.find(imp->identify()) != implements.end()){ return false; } implements[imp->identify()] = imp; return true; } template inline ImplementInterface* RegisterInterface::getImplement(T const& identify){ if(implements.find(identify) == implements.end()){ return NULL; } return implements[identify]; } }