static PtrMap ptrs_;
std::string name_;
- inline static T* retain(const std::string& name)
+ static T* retain(const std::string& name)
{
typename PtrMap::iterator it = ptrs_.find(name);
}
}
- inline static void release(T* obj)
+ static void release(T* obj)
{
releaseByName(obj->name_);
}
- inline static void releaseByName(const std::string& name)
+ static void releaseByName(const std::string& name)
{
typename PtrMap::iterator it;
}
public:
+
explicit Mippleton(const std::string& name) :
name_(name) {}
- inline const std::string& getName() const
+ const std::string& getName() const
{
return name_;
}
- inline static boost::shared_ptr<T> getInstance(const std::string& name)
+ static boost::shared_ptr<T> getInstance(const std::string& name)
{
return boost::shared_ptr<T>(retain(name), &release);
}