summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
81ea546)
This provides an easy way to both store the object and also use it.
public:
T *get_object() { T *o = object; object = 0; return o; }
public:
T *get_object() { T *o = object; object = 0; return o; }
- void store_object(Collection &, const std::string &);
+ T *store_object(Collection &, const std::string &);
private:
void type(const Symbol &);
private:
void type(const Symbol &);
}
template<typename T, typename C>
}
template<typename T, typename C>
-void DynamicObjectLoader<T, C>::store_object(Collection &c, const std::string &name)
+T *DynamicObjectLoader<T, C>::store_object(Collection &c, const std::string &name)
{
if(!store_func)
throw std::logic_error("no store function");
{
if(!store_func)
throw std::logic_error("no store function");
store_func(c, name, object);
object = 0;
store_func(c, name, object);
object = 0;
}
template<typename T, typename C>
}
template<typename T, typename C>