Changeset 13743e


Ignore:
Timestamp:
May 8, 2010, 10:00:16 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
ae8b90
Parents:
48b5fd
Message:

ActionRegistry now is iterable due to new functons getBeginIter() and getEndIter().

Signed-off-by: Frederik Heber <heber@…>

Location:
molecuilder/src/Actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/ActionRegistry.cpp

    r48b5fd r13743e  
    4343}
    4444
     45std::map<const std::string,Action*>::iterator ActionRegistry::getBeginIter()
     46{
     47  return actionMap.begin();
     48}
     49
     50std::map<const std::string,Action*>::iterator ActionRegistry::getEndIter()
     51{
     52  return actionMap.end();
     53}
     54
    4555CONSTRUCT_SINGLETON(ActionRegistry)
  • molecuilder/src/Actions/ActionRegistry.hpp

    r48b5fd r13743e  
    2323  void registerAction(Action*);
    2424
     25  std::map<const std::string,Action*>::iterator getBeginIter();
     26  std::map<const std::string,Action*>::iterator getEndIter();
     27
    2528private:
    2629  std::map<const std::string,Action*> actionMap;
Note: See TracChangeset for help on using the changeset viewer.