Changeset 1006 for XIOS/trunk/src/filter/input_pin.hpp
- Timestamp:
- 11/28/16 14:02:54 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/filter/input_pin.hpp
r639 r1006 5 5 #include <map> 6 6 7 #include "garbage_collector.hpp" 7 8 #include "data_packet.hpp" 8 9 9 10 namespace xios 10 11 { 11 class C GarbageCollector;12 class COutputPin; 12 13 13 14 /*! 14 15 * An input pin handles the data packets received by a filter. 15 16 */ 16 class CInputPin 17 class CInputPin : public InvalidableObject 17 18 { 18 19 public: … … 27 28 28 29 /*! 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 /*! 29 38 * Receives a data packet from an upstream filter on 30 39 * the specified input slot. … … 37 46 38 47 /*! 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 /*! 39 62 * Removes all pending packets which are older than the specified timestamp. 40 63 * … … 44 67 45 68 protected: 46 CGarbageCollector& gc; //!< The garbage collector associated to the input pin47 48 69 /*! 49 70 * Function triggered when all slots have been filled for a specific timestamp. … … 75 96 }; 76 97 98 CGarbageCollector& gc; //!< The garbage collector associated to the input pin 99 77 100 size_t slotsCount; //!< The number of slots 78 101 79 102 //! Input buffer, store the packets until all slots are full for a timestep 80 103 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; 81 110 }; // class CInputPin 82 111 } // namespace xios
Note: See TracChangeset
for help on using the changeset viewer.