12 #ifndef CXREPMANAGER_H_
13 #define CXREPMANAGER_H_
15 #include "org_custusx_core_view_Export.h"
24 typedef boost::shared_ptr<class Rep>
RepPtr;
30 typedef std::map<QString, RepPtr>
RepMap;
51 class org_custusx_core_view_EXPORT
RepManager:
public QObject
57 static void destroyInstance();
75 for (RepMultiMap::iterator iter = mRepCache.begin(); iter != mRepCache.end(); ++iter)
77 if (iter->first != uid)
79 int uc = iter->second.use_count();
86 boost::shared_ptr<REP> retval = boost::dynamic_pointer_cast<REP>(iter->second);
95 boost::shared_ptr<REP> retval = REP::New(uid);
96 mRepCache.insert(std::make_pair(uid, retval));