gem5  [DEVELOP-FOR-23.0]
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
gem5::SignalSourcePort< State > Class Template Reference

#include <signal.hh>

Public Member Functions

 SignalSourcePort (const std::string &_name, PortID _id=InvalidPortID)
 
void set (const State &new_state)
 
const State & state () const
 
void bind (Port &peer) override
 
void unbind () override
 

Private Attributes

SignalSinkPort< State > * sink = nullptr
 
State _state = {}
 

Detailed Description

template<typename State>
class gem5::SignalSourcePort< State >

Definition at line 40 of file signal.hh.

Constructor & Destructor Documentation

◆ SignalSourcePort()

template<typename State >
gem5::SignalSourcePort< State >::SignalSourcePort ( const std::string &  _name,
PortID  _id = InvalidPortID 
)
inline

Definition at line 100 of file signal.hh.

Member Function Documentation

◆ bind()

template<typename State >
void gem5::SignalSourcePort< State >::bind ( Port peer)
inlineoverride

Definition at line 114 of file signal.hh.

◆ set()

template<typename State >
void gem5::SignalSourcePort< State >::set ( const State &  new_state)
inline

◆ state()

template<typename State >
const State& gem5::SignalSourcePort< State >::state ( ) const
inline

Definition at line 111 of file signal.hh.

◆ unbind()

template<typename State >
void gem5::SignalSourcePort< State >::unbind ( )
inlineoverride

Definition at line 122 of file signal.hh.

Member Data Documentation

◆ _state

template<typename State >
State gem5::SignalSourcePort< State >::_state = {}
private

◆ sink

template<typename State >
SignalSinkPort<State>* gem5::SignalSourcePort< State >::sink = nullptr
private

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

Generated on Sun Jul 30 2023 01:57:17 for gem5 by doxygen 1.8.17