/[PAMELA software]/PamCut/Collections/SmartCollection/SmartCollection.h
ViewVC logotype

Diff of /PamCut/Collections/SmartCollection/SmartCollection.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by pam-fi, Fri Aug 14 10:31:48 2009 UTC revision 1.7 by pam-fi, Tue Oct 27 10:24:00 2009 UTC
# Line 46  public: Line 46  public:
46    /*! @brief Constructor.    /*! @brief Constructor.
47     *     *
48     * @param collectionName The collection's name.     * @param collectionName The collection's name.
49       * @param owns If true, the collection will own the cuts and the actions, ie., it will
50       *             destroy them in its destructor.
51     */     */
52    SmartCollection(const char* collectionName) :    SmartCollection(const char* collectionName, bool owns = true) :
53      PamCutCollection(collectionName), _actions(0) {      PamCutCollection(collectionName, owns), _actions(0) {
54    }    }
55    
56    /*! @brief Destructor. */    /*! @brief Destructor. */
57    ~SmartCollection() {    ~SmartCollection();
   }  
58    
59    /*! @brief Adds an action to the SmartCollection */    /*! @brief Adds an action to the SmartCollection */
60    virtual void AddAction(CollectionAction& action);    virtual void AddAction(CollectionAction *action);
61    
62    /*! @brief Returns the iAction-th action.    /*! @brief Returns the iAction-th action.
63     *     *
# Line 77  public: Line 78  public:
78     *     *
79     * @return The number of actions currently in the collection.     * @return The number of actions currently in the collection.
80     */     */
81    unsigned int GetActionsSize(){    unsigned int GetActionsSize() {
82      return _actions.size();      return _actions.size();
83    }    }
84    
# Line 117  protected: Line 118  protected:
118     * perform the action. The numbers N for each action are stored here: the element i is N for the     * perform the action. The numbers N for each action are stored here: the element i is N for the
119     * i-th action in #_actions.     * i-th action in #_actions.
120     */     */
121    std::vector<unsigned int> _actionsPositions;    std::vector<int> _actionsPositions;
122    
123  };  };
124    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23