Template Class PortGroup

Class Documentation

template<PortType port_type, Utilities::SizedEnum signal_variable_type>
class PortGroup

Group of ports indexed by their associated signal-variable enum.

Public Functions

inline PortT &operator[](SignalVariableT variable)

Overload permitting mutable indexing into this port group by signal variable.

inline const PortT &operator[](SignalVariableT variable) const

Overload permitting indexing into this port group by signal variable.

template<SignalVariableT variable>
inline PortT &port()

Checked mutable indexing into this port group by signal variable.

template<SignalVariableT variable>
inline const PortT &port() const

Checked indexing into this port group by signal variable.

Public Static Functions

static inline std::size_t size() noexcept

The size of this port group.