aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp/oo/Register_Implement.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp/oo/Register_Implement.hpp')
-rw-r--r--meowpp/oo/Register_Implement.hpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/meowpp/oo/Register_Implement.hpp b/meowpp/oo/Register_Implement.hpp
deleted file mode 100644
index bee7f3e..0000000
--- a/meowpp/oo/Register_Implement.hpp
+++ /dev/null
@@ -1,36 +0,0 @@
-#include "Register_Implement.h"
-
-
-#include <map>
-#include <vector>
-
-namespace meow{
- template<class T>
- inline RegisterInterface<T>::RegisterInterface(){ }
- template<class T>
- inline bool RegisterInterface<T>::regImplement(ImplementInterface<T>* imp){
- if(implements.find(imp->identify()) != implements.end()){
- return false;
- }
- implements[imp->identify()] = imp;
- return true;
- }
- template<class T>
- inline ImplementInterface<T>*
- RegisterInterface<T>::getImplement(T const& identify){
- if(implements.find(identify) == implements.end()){
- return NULL;
- }
- return implements[identify];
- }
- template<class T>
- inline std::vector<T>
- RegisterInterface<T>::getIdentifys() const{
- std::vector<T> ret;
- for(typename std::map<T, ImplementInterface<T>*>::const_iterator
- it = implements.begin(); it != implements.end(); it++){
- ret.push_back(it->first);
- }
- return ret;
- }
-}