Ignore:
Timestamp:
01/25/17 16:25:17 (7 years ago)
Author:
yushan
Message:

initialize the branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/filter/input_pin.hpp

    r1006 r1037  
    55#include <map> 
    66 
    7 #include "garbage_collector.hpp" 
    87#include "data_packet.hpp" 
    98 
    109namespace xios 
    1110{ 
    12   class COutputPin; 
     11  class CGarbageCollector; 
    1312 
    1413  /*! 
    1514   * An input pin handles the data packets received by a filter. 
    1615   */ 
    17   class CInputPin : public InvalidableObject 
     16  class CInputPin 
    1817  { 
    1918    public: 
     
    2827 
    2928      /*! 
    30        * Sets the trigger for a specific input slot. 
    31        * 
    32        * \param inputSlot the input slot number 
    33        * \param trigger the corresponding trigger 
    34        */ 
    35       void virtual setInputTrigger(size_t inputSlot, COutputPin* trigger); 
    36  
    37       /*! 
    3829       * Receives a data packet from an upstream filter on 
    3930       * the specified input slot. 
     
    4637 
    4738      /*! 
    48        * Triggers the input of any buffered packet for the specified timestamp. 
    49        * 
    50        * \param timestamp the timestamp for which we are triggering the input 
    51        */ 
    52       void virtual trigger(Time timestamp); 
    53  
    54       /*! 
    55        * Tests if the pin can be triggered. 
    56        * 
    57        * \return true if the pin can be triggered 
    58        */ 
    59       bool virtual canBeTriggered() const; 
    60  
    61       /*! 
    6239       * Removes all pending packets which are older than the specified timestamp. 
    6340       * 
     
    6744 
    6845    protected: 
     46      CGarbageCollector& gc; //!< The garbage collector associated to the input pin 
     47 
    6948      /*! 
    7049       * Function triggered when all slots have been filled for a specific timestamp. 
     
    9675      }; 
    9776 
    98       CGarbageCollector& gc; //!< The garbage collector associated to the input pin 
    99  
    10077      size_t slotsCount; //!< The number of slots 
    10178 
    10279      //! Input buffer, store the packets until all slots are full for a timestep 
    10380      std::map<Time, InputBuffer> inputs; 
    104  
    105       //! Store the triggers corresponding to the input slots 
    106       std::vector<COutputPin*> triggers; 
    107  
    108       //! Whether some triggers have been set 
    109       bool hasTriggers; 
    11081  }; // class CInputPin 
    11182} // namespace xios 
Note: See TracChangeset for help on using the changeset viewer.