62 StateContainer::iterator iter = states_.find(&momComponent);
63 if (iter != states_.end()) {
64 (*iter).second = &state;
66 states_[&momComponent] = &state;
79 StateContainer::const_iterator iter = states_.find(&momComponent);
80 if (iter == states_.end()) {
81 string msg =
"State corresponding to component not found";
85 return *((*iter).second);