Changeset 1037 for XIOS/dev/branch_yushan/src/filter/input_pin.hpp
- Timestamp:
- 01/25/17 16:25:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/filter/input_pin.hpp
r1006 r1037 5 5 #include <map> 6 6 7 #include "garbage_collector.hpp"8 7 #include "data_packet.hpp" 9 8 10 9 namespace xios 11 10 { 12 class C OutputPin;11 class CGarbageCollector; 13 12 14 13 /*! 15 14 * An input pin handles the data packets received by a filter. 16 15 */ 17 class CInputPin : public InvalidableObject16 class CInputPin 18 17 { 19 18 public: … … 28 27 29 28 /*! 30 * Sets the trigger for a specific input slot.31 *32 * \param inputSlot the input slot number33 * \param trigger the corresponding trigger34 */35 void virtual setInputTrigger(size_t inputSlot, COutputPin* trigger);36 37 /*!38 29 * Receives a data packet from an upstream filter on 39 30 * the specified input slot. … … 46 37 47 38 /*! 48 * Triggers the input of any buffered packet for the specified timestamp.49 *50 * \param timestamp the timestamp for which we are triggering the input51 */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 triggered58 */59 bool virtual canBeTriggered() const;60 61 /*!62 39 * Removes all pending packets which are older than the specified timestamp. 63 40 * … … 67 44 68 45 protected: 46 CGarbageCollector& gc; //!< The garbage collector associated to the input pin 47 69 48 /*! 70 49 * Function triggered when all slots have been filled for a specific timestamp. … … 96 75 }; 97 76 98 CGarbageCollector& gc; //!< The garbage collector associated to the input pin99 100 77 size_t slotsCount; //!< The number of slots 101 78 102 79 //! Input buffer, store the packets until all slots are full for a timestep 103 80 std::map<Time, InputBuffer> inputs; 104 105 //! Store the triggers corresponding to the input slots106 std::vector<COutputPin*> triggers;107 108 //! Whether some triggers have been set109 bool hasTriggers;110 81 }; // class CInputPin 111 82 } // namespace xios
Note: See TracChangeset
for help on using the changeset viewer.