|
CIRCT 24.0.0git
|
#include <TypedPorts.h>


Public Member Functions | |
| TypedWritePort (WriteChannelPort &port) | |
| TypedWritePort (WriteChannelPort *port) | |
| void | connect (const ChannelPort::ConnectOptions &opts={std::nullopt, false}) |
| void | write (const T &data) |
| void | write (std::unique_ptr< T > &data) |
| Write by taking ownership. | |
| bool | tryWrite (const T &data) |
| bool | tryWrite (std::unique_ptr< T > &data) |
| Non-blocking write by taking ownership. | |
| bool | flush () |
| void | disconnect () |
| bool | isConnected () const |
| WriteChannelPort & | raw () |
| const WriteChannelPort & | raw () const |
Private Attributes | |
| WriteChannelPort * | inner |
| WireInfo | wireInfo_ |
Definition at line 613 of file TypedPorts.h.
|
inlineexplicit |
Definition at line 615 of file TypedPorts.h.
References inner.
|
inline |
Definition at line 617 of file TypedPorts.h.
References inner.
|
inline |
Definition at line 619 of file TypedPorts.h.
Referenced by autoSerialCoordTranslateTest(), runCustomServiceDeclChannel(), runLoopbackI8(), serialCoordTranslate(), and serialCoordTranslateTest().
|
inline |
Definition at line 671 of file TypedPorts.h.
References inner.
Referenced by autoSerialCoordTranslateTest(), and serialCoordTranslateTest().
|
inline |
Definition at line 670 of file TypedPorts.h.
References inner.
|
inline |
Definition at line 672 of file TypedPorts.h.
References inner.
|
inline |
Definition at line 674 of file TypedPorts.h.
References inner.
|
inline |
Definition at line 675 of file TypedPorts.h.
References inner.
|
inline |
Definition at line 644 of file TypedPorts.h.
References inner, esi::toMessageData(), and wireInfo_.
Referenced by tryWrite().
|
inline |
Non-blocking write by taking ownership.
On success, data is consumed (left null) and true is returned. On failure, data is left untouched so the caller can retry. If T is a SegmentedMessageData, this hands the message directly to the port's segmented tryWrite path.
Definition at line 652 of file TypedPorts.h.
References inner, and tryWrite().
|
inline |
Definition at line 629 of file TypedPorts.h.
References inner, esi::toMessageData(), and wireInfo_.
Referenced by autoSerialCoordTranslateTest(), runCustomServiceDeclChannel(), runLoopbackI8(), serialCoordTranslate(), serialCoordTranslateTest(), and write().
|
inline |
Write by taking ownership.
If T is a SegmentedMessageData, this hands the message directly to the port's segmented write path.
Definition at line 633 of file TypedPorts.h.
|
private |
Definition at line 678 of file TypedPorts.h.
Referenced by disconnect(), flush(), isConnected(), raw(), raw(), tryWrite(), tryWrite(), TypedWritePort(), TypedWritePort(), write(), and write().
|
private |
Definition at line 679 of file TypedPorts.h.
Referenced by tryWrite(), and write().