OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
CostEstimator::TransportPath Class Reference

#include <TransportPath.hh>

Collaboration diagram for CostEstimator::TransportPath:
Collaboration graph

Public Member Functions

 TransportPath (const TTAMachine::Port &sourcePort, const TTAMachine::Socket &sourceSocket, const TTAMachine::Bus &bus, const TTAMachine::Socket &destinationSocket, const TTAMachine::Port &destinationPort)
 
virtual ~TransportPath ()
 
const TTAMachine::PortsourcePort () const
 
const TTAMachine::SocketsourceSocket () const
 
const TTAMachine::Busbus () const
 
const TTAMachine::SocketdestinationSocket () const
 
const TTAMachine::PortdestinationPort () const
 

Private Attributes

const TTAMachine::PortsourcePort_
 
const TTAMachine::SocketsourceSocket_
 
const TTAMachine::Busbus_
 
const TTAMachine::SocketdestinationSocket_
 
const TTAMachine::PortdestinationPort_
 

Detailed Description

Represents a single transport path in a machine.

The class is simply a storage for source port, source socket, bus, destination socket, destination port components that make a path for data transports in a machine.

Definition at line 52 of file TransportPath.hh.

Constructor & Destructor Documentation

◆ TransportPath()

CostEstimator::TransportPath::TransportPath ( const TTAMachine::Port sourcePort,
const TTAMachine::Socket sourceSocket,
const TTAMachine::Bus bus,
const TTAMachine::Socket destinationSocket,
const TTAMachine::Port destinationPort 
)

◆ ~TransportPath()

CostEstimator::TransportPath::~TransportPath ( )
virtual

Destructor.

Definition at line 53 of file TransportPath.cc.

53  {
54 }

Member Function Documentation

◆ bus()

const TTAMachine::Bus & CostEstimator::TransportPath::bus ( ) const

Returns the bus.

Returns
The bus.

Definition at line 82 of file TransportPath.cc.

82  {
83  return bus_;
84 }

References bus_.

Referenced by DefaultICDecoderEstimator::estimateICDelayOfPath(), and CostEstimator::Estimator::longestPath().

◆ destinationPort()

const TTAMachine::Port & CostEstimator::TransportPath::destinationPort ( ) const

Returns the destination port.

Parameters
Destinationport.

Definition at line 102 of file TransportPath.cc.

102  {
103  return destinationPort_;
104 }

References destinationPort_.

Referenced by CostEstimator::Estimator::longestPath().

◆ destinationSocket()

const TTAMachine::Socket & CostEstimator::TransportPath::destinationSocket ( ) const

Returns the destination socket.

Parameters
Destinationsocket.

Definition at line 92 of file TransportPath.cc.

92  {
93  return destinationSocket_;
94 }

References destinationSocket_.

Referenced by DefaultICDecoderEstimator::estimateICDelayOfPath(), and CostEstimator::Estimator::longestPath().

◆ sourcePort()

const TTAMachine::Port & CostEstimator::TransportPath::sourcePort ( ) const

Returns the source port.

Returns
Source port.

Definition at line 62 of file TransportPath.cc.

62  {
63  return sourcePort_;
64 }

References sourcePort_.

Referenced by CostEstimator::Estimator::longestPath().

◆ sourceSocket()

const TTAMachine::Socket & CostEstimator::TransportPath::sourceSocket ( ) const

Returns the source socket.

Returns
Source socket.

Definition at line 72 of file TransportPath.cc.

72  {
73  return sourceSocket_;
74 }

References sourceSocket_.

Referenced by DefaultICDecoderEstimator::estimateICDelayOfPath(), and CostEstimator::Estimator::longestPath().

Member Data Documentation

◆ bus_

const TTAMachine::Bus& CostEstimator::TransportPath::bus_
private

Definition at line 71 of file TransportPath.hh.

Referenced by bus().

◆ destinationPort_

const TTAMachine::Port& CostEstimator::TransportPath::destinationPort_
private

Definition at line 73 of file TransportPath.hh.

Referenced by destinationPort().

◆ destinationSocket_

const TTAMachine::Socket& CostEstimator::TransportPath::destinationSocket_
private

Definition at line 72 of file TransportPath.hh.

Referenced by destinationSocket().

◆ sourcePort_

const TTAMachine::Port& CostEstimator::TransportPath::sourcePort_
private

Definition at line 69 of file TransportPath.hh.

Referenced by sourcePort().

◆ sourceSocket_

const TTAMachine::Socket& CostEstimator::TransportPath::sourceSocket_
private

Definition at line 70 of file TransportPath.hh.

Referenced by sourceSocket().


The documentation for this class was generated from the following files:
CostEstimator::TransportPath::destinationPort_
const TTAMachine::Port & destinationPort_
Definition: TransportPath.hh:73
CostEstimator::TransportPath::bus_
const TTAMachine::Bus & bus_
Definition: TransportPath.hh:71
CostEstimator::TransportPath::sourcePort_
const TTAMachine::Port & sourcePort_
Definition: TransportPath.hh:69
CostEstimator::TransportPath::bus
const TTAMachine::Bus & bus() const
Definition: TransportPath.cc:82
CostEstimator::TransportPath::destinationSocket
const TTAMachine::Socket & destinationSocket() const
Definition: TransportPath.cc:92
CostEstimator::TransportPath::destinationSocket_
const TTAMachine::Socket & destinationSocket_
Definition: TransportPath.hh:72
CostEstimator::TransportPath::sourceSocket
const TTAMachine::Socket & sourceSocket() const
Definition: TransportPath.cc:72
CostEstimator::TransportPath::destinationPort
const TTAMachine::Port & destinationPort() const
Definition: TransportPath.cc:102
CostEstimator::TransportPath::sourcePort
const TTAMachine::Port & sourcePort() const
Definition: TransportPath.cc:62
CostEstimator::TransportPath::sourceSocket_
const TTAMachine::Socket & sourceSocket_
Definition: TransportPath.hh:70