Templates -- Meow  1.1.4
A C++ template contains kinds of interesting classes and functions
Register_Implement.hpp
Go to the documentation of this file.
1 
2 #include <map>
3 
4 namespace meow{
5  template<class T> inline RegisterInterface<T>::RegisterInterface()
6  { }
7  template<class T> inline bool RegisterInterface<T>::regImplement(
9  if(implements.find(imp->identify()) != implements.end()){
10  return false;
11  }
12  implements[imp->identify()] = imp;
13  return true;
14  }
15  template<class T> inline ImplementInterface<T>* RegisterInterface<T>::
16  getImplement(T const& identify){
17  if(implements.find(identify) == implements.end()){
18  return NULL;
19  }
20  return implements[identify];
21  }
22 }
virtual ImplementInterface< T > * getImplement(T const &identify)
virtual bool regImplement(ImplementInterface< T > *imp)
T const & identify() const