This object sets the editing mode to true if the object is not being edited when it is created. If it changed the editing mode on creation, the mode is set to false when the object is destroyed.
{ EditGuard<ListSingletonContainer> guard(lsc); for (unsigned int i=0; i< ps.size(); ++i) { if (is_good(ps[i])) lsc->add_particle(ps[i]); } // guard is destoyed end closes the editing session }
FilteredListPairContainer
ListSingletonContainer
ListPairContainer
Public Member Functions | |
EditGuard (Container *c) | |
void | reset () |
void | set (Container *c) |