ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SCT_PortMap Class Reference

Helper class to map the input/output ports of a chip. More...

#include <SCT_PortMap.h>

Collaboration diagram for SCT_PortMap:

Public Member Functions

 SCT_PortMap (SCT_Parameters::ChipType in0, SCT_Parameters::ChipType in1, SCT_Parameters::ChipType out0, SCT_Parameters::ChipType out1)
 Constuctor from input and output chip types. More...
 
 ~SCT_PortMap ()=default
 
SCT_Parameters::ChipType input (int port) const
 Functions to retrieve the chip mapped to the input and output ports. More...
 
SCT_Parameters::ChipType output (int port) const
 

Private Attributes

SCT_Parameters::ChipType m_input [2]
 Port type for the chip's two inputs. More...
 
SCT_Parameters::ChipType m_output [2]
 Port type for the chip's two outputs. More...
 

Detailed Description

Helper class to map the input/output ports of a chip.

Definition at line 26 of file SCT_PortMap.h.

Constructor & Destructor Documentation

◆ SCT_PortMap()

SCT_PortMap::SCT_PortMap ( SCT_Parameters::ChipType  in0,
SCT_Parameters::ChipType  in1,
SCT_Parameters::ChipType  out0,
SCT_Parameters::ChipType  out1 
)
inline

Constuctor from input and output chip types.

Definition at line 31 of file SCT_PortMap.h.

31  {
32  m_input[0] = in0;
33  m_input[1] = in1;
34  m_output[0] = out0;
35  m_output[1] = out1;
36  }

◆ ~SCT_PortMap()

SCT_PortMap::~SCT_PortMap ( )
default

Member Function Documentation

◆ input()

SCT_Parameters::ChipType SCT_PortMap::input ( int  port) const
inline

Functions to retrieve the chip mapped to the input and output ports.

Definition at line 41 of file SCT_PortMap.h.

41 { return m_input[port]; }

◆ output()

SCT_Parameters::ChipType SCT_PortMap::output ( int  port) const
inline

Definition at line 42 of file SCT_PortMap.h.

42 { return m_output[port]; }

Member Data Documentation

◆ m_input

SCT_Parameters::ChipType SCT_PortMap::m_input[2]
private

Port type for the chip's two inputs.

Definition at line 46 of file SCT_PortMap.h.

◆ m_output

SCT_Parameters::ChipType SCT_PortMap::m_output[2]
private

Port type for the chip's two outputs.

Definition at line 47 of file SCT_PortMap.h.


The documentation for this class was generated from the following file:
SCT_PortMap::m_input
SCT_Parameters::ChipType m_input[2]
Port type for the chip's two inputs.
Definition: SCT_PortMap.h:46
SCT_PortMap::m_output
SCT_Parameters::ChipType m_output[2]
Port type for the chip's two outputs.
Definition: SCT_PortMap.h:47