Modules | |
Factories | |
Classes | |
struct | IConnection |
Represents a connection between an Input port and Signal. Acts as a queue for packets sent by the signal, which can be read by the input port and the input port's owner. More... | |
class | ConnectionPtr |
Represents a connection between an Input port and Signal. Acts as a queue for packets sent by the signal, which can be read by the input port and the input port's owner. More... | |
Functions | |
void | enqueue (const daq::PacketPtr &packet) const |
Places a packet at the back of the queue. More... | |
void | enqueueOnThisThread (const daq::PacketPtr &packet) const |
Places a packet at the back of the queue. More... | |
daq::PacketPtr | dequeue () const |
Removes the packet at the front of the queue and returns it. More... | |
daq::PacketPtr | peek () const |
Returns the packet at the front of the queue without removing it. More... | |
daq::SizeT | getPacketCount () const |
Gets the number of queued packets. More... | |
daq::ObjectPtr< ISignal > | getSignal () const |
Gets the Signal that is sending packets through the Connection. More... | |
daq::ObjectPtr< IInputPort > | getInputPort () const |
Gets the Input port to which packets are being sent. More... | |
daq::SizeT | getAvailableSamples () const |
Gets the number of samples available in the queued packets. The returned value ignores any Sample-Descriptor changes. More... | |
daq::SizeT | getSamplesUntilNextDescriptor () const |
Gets the number of same-type samples available in the queued packets. The returned value is up-to the next Sample-Descriptor-Changed packet if any. More... | |
daq::Bool | isRemote () const |
Returns true if the type of connection is remote. More... | |
void | enqueue (daq::PacketPtr &&packet) const |
Places a packet at the back of the queue. The reference of the packet is stolen. More... | |
void | enqueueMultiple (const daq::ListPtr< daq::IPacket > &packets) const |
Places multiple packets at the back of the queue. More... | |
void | enqueueMultiple (daq::ListPtr< daq::IPacket > &&packets) const |
Places multiple packets at the back of the queue. The references of the packets are stolen. More... | |
daq::ListPtr< daq::IPacket > | dequeueAll () const |
Removes all packets from the queue. More... | |
daq::SizeT | getSamplesUntilNextEventPacket () const |
Gets the number of samples available in the queued packets until the next event packet. The returned value is up-to the next Event packet if any. More... | |
daq::SizeT | getSamplesUntilNextGapPacket () const |
Gets the number of samples available in the queued packets until the next gap packet. The returned value is up-to the next Gap packet if any. More... | |
daq::Bool | hasEventPacket () const |
Queries if the connection has an event packet. More... | |
daq::Bool | hasGapPacket () const |
Queries if the connection has a gap packet. More... | |
|
inline |
Removes the packet at the front of the queue and returns it.
nullptr
if the connection has no packets. OPENDAQ_NO_MORE_ITEMS | When the connection does not hold any packets. |
|
inline |
Removes all packets from the queue.
Removing all packets can be more efficient than dequeuing packet by packet in heavily loaded systems.
|
inline |
Places a packet at the back of the queue.
packet | The packet to be enqueued. |
|
inline |
Places a packet at the back of the queue. The reference of the packet is stolen.
packet | The packet to be enqueued. |
After calling the method, the packet should not be touched again. The ownership of the packet is taken by underlying connections and it could be destroyed before the function returns.
|
inline |
Places multiple packets at the back of the queue.
packets | The packets to be enqueued. |
|
inline |
Places multiple packets at the back of the queue. The references of the packets are stolen.
packets | The packets to be enqueued. |
After calling the method, the packets should not be touched again. The ownership of the packets is taken by underlying connections and it could be destroyed before the function returns.
|
inline |
Places a packet at the back of the queue.
packet | The packet to be enqueued. |
The connection notifies the listener on the same thread that this method was called.
|
inline |
Gets the number of samples available in the queued packets. The returned value ignores any Sample-Descriptor changes.
|
inline |
Gets the Input port to which packets are being sent.
|
inline |
Gets the number of queued packets.
|
inline |
Gets the number of same-type samples available in the queued packets. The returned value is up-to the next Sample-Descriptor-Changed packet if any.
|
inline |
Gets the number of samples available in the queued packets until the next event packet. The returned value is up-to the next Event packet if any.
|
inline |
Gets the number of samples available in the queued packets until the next gap packet. The returned value is up-to the next Gap packet if any.
|
inline |
Gets the Signal that is sending packets through the Connection.
|
inline |
Queries if the connection has an event packet.
|
inline |
Queries if the connection has a gap packet.
|
inline |
Returns true if the type of connection is remote.
Remote connections do not pass any packets. They represent the connection between input ports and signals on remote devices.
|
inline |
Returns the packet at the front of the queue without removing it.
nullptr
if the connection has no packets. OPENDAQ_NO_MORE_ITEMS | When the connection does not hold any packets. |