CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
esi::TypedReadPort< T > Class Template Reference

#include <TypedPorts.h>

Collaboration diagram for esi::TypedReadPort< T >:
Collaboration graph
[legend]

Public Member Functions

 TypedReadPort (ReadChannelPort &port)
 
 TypedReadPort (ReadChannelPort *port)
 
void connect (const ChannelPort::ConnectOptions &opts={})
 
void connect (std::function< bool(const T &)> callback, const ChannelPort::ConnectOptions &opts={})
 
read ()
 
std::future< T > readAsync ()
 
void disconnect ()
 
bool isConnected () const
 
ReadChannelPortraw ()
 
const ReadChannelPortraw () const
 

Private Attributes

ReadChannelPortinner
 
WireInfo wireInfo_
 

Detailed Description

template<typename T>
class esi::TypedReadPort< T >

Definition at line 329 of file TypedPorts.h.

Constructor & Destructor Documentation

◆ TypedReadPort() [1/2]

template<typename T >
esi::TypedReadPort< T >::TypedReadPort ( ReadChannelPort port)
inlineexplicit

Definition at line 331 of file TypedPorts.h.

◆ TypedReadPort() [2/2]

template<typename T >
esi::TypedReadPort< T >::TypedReadPort ( ReadChannelPort port)
inline

Definition at line 333 of file TypedPorts.h.

Member Function Documentation

◆ connect() [1/2]

template<typename T >
void esi::TypedReadPort< T >::connect ( const ChannelPort::ConnectOptions opts = {})
inline

Definition at line 335 of file TypedPorts.h.

Referenced by runLoopbackI8().

◆ connect() [2/2]

template<typename T >
void esi::TypedReadPort< T >::connect ( std::function< bool(const T &)>  callback,
const ChannelPort::ConnectOptions opts = {} 
)
inline

Definition at line 343 of file TypedPorts.h.

◆ disconnect()

template<typename T >
void esi::TypedReadPort< T >::disconnect ( )
inline

◆ isConnected()

template<typename T >
bool esi::TypedReadPort< T >::isConnected ( ) const
inline

◆ raw() [1/2]

template<typename T >
ReadChannelPort & esi::TypedReadPort< T >::raw ( )
inline

Definition at line 376 of file TypedPorts.h.

References esi::TypedReadPort< T >::inner.

◆ raw() [2/2]

template<typename T >
const ReadChannelPort & esi::TypedReadPort< T >::raw ( ) const
inline

Definition at line 377 of file TypedPorts.h.

References esi::TypedReadPort< T >::inner.

◆ read()

template<typename T >
T esi::TypedReadPort< T >::read ( )
inline

◆ readAsync()

template<typename T >
std::future< T > esi::TypedReadPort< T >::readAsync ( )
inline

Member Data Documentation

◆ inner

template<typename T >
ReadChannelPort* esi::TypedReadPort< T >::inner
private

◆ wireInfo_

template<typename T >
WireInfo esi::TypedReadPort< T >::wireInfo_
private

The documentation for this class was generated from the following file: