X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FConnectors.hh;h=37a563ae3207fdecec5ad1d480b9a8b853aed117;hb=HEAD;hp=ff44b48afd30a9abee004bfc22a5dcf4df220dba;hpb=ab7ff164ab5ae711ec09ce2b24228510f1ffdcff;p=senf.git diff --git a/senf/PPI/Connectors.hh b/senf/PPI/Connectors.hh index ff44b48..37a563a 100644 --- a/senf/PPI/Connectors.hh +++ b/senf/PPI/Connectors.hh @@ -196,7 +196,7 @@ namespace connector { virtual void v_connected(); private: - virtual std::type_info const & packetTypeID(); + virtual std::type_info const & v_packetTypeId(); void setModule(module::Module & module); @@ -399,7 +399,7 @@ namespace connector { typedef Queue::size_type size_type; ///< Unsigned type for counting queue elements - Packet operator()(); ///< Get a packet + Packet const & operator()(); ///< Get a packet /**< This member is the primary method to access received data. On passive connectors, this operator will just dequeue a packet from the packet queue. If the @@ -408,14 +408,10 @@ namespace connector { request cannot be fulfilled an in-valid Packet is returned. */ - Packet read(); ///< Alias for operator()() + Packet const & read(); ///< Alias for operator()() OutputConnector & peer() const; - queue_iterator begin() const; ///< Access queue begin (head) - queue_iterator end() const; ///< Access queue past-the-end (tail) - Packet peek() const; ///< Return head element from the queue - size_type queueSize() const; ///< Return number of elements in the queue bool empty() const; ///< Return queueSize() == 0 @@ -434,6 +430,8 @@ namespace connector { OutputConnector * peer_; Queue queue_; + Packet const * fastPacket_; + Packet slowPacket_; friend class OutputConnector; }; @@ -595,7 +593,7 @@ namespace connector { using mixin::operator(); \ using mixin::TypedConnector_ ## dir ; \ private: \ - virtual std::type_info const & packetTypeID() \ + virtual std::type_info const & v_packetTypeId() \ { return typeid(typename PacketType::type); } \ friend class detail::Typed ## dir ## Mixin, PacketType>; \ }; \