- { actions.insert(ActionMap::value_type(k, 0)); }
-
- /**
- Loads a sub-object from the statement being processed. The Loader class of
- the sub-object is automatically used.
- */
- template<typename S>
- void load_sub(S &s)
- { load_sub<typename S::Loader, S>(s); }
-
- /**
- Loads a sub-object with a custom Loader class.
- */
- template<typename L, typename S>
- void load_sub(S &s)
- {
- if(!cur_st)
- throw InvalidState("load_sub called without current statement");
- L loader(s);
- loader.load(*cur_st);
- }
-
- template<typename S, typename T>
- void load_sub(S &s, T &p)
- { load_sub<typename S::Loader, S, T>(s, p); }
-
- /**
- Loads a sub-object with a custom Loader class that takes one argument in
- addition to to object to be loaded.
- */
- template<typename L, typename S, typename T>
- void load_sub(S &s, T &p)
- {
- if(!cur_st)
- throw InvalidState("load_sub called without current statement");
- L loader(s, p);
- loader.load(*cur_st);
- }