chronon::PortBase
#include <Port.hpp>
Inherited by chronon::sender::InPort< T >, chronon::sender::OutPort< T >
Public Functions
| Name | |
|---|---|
| virtual | ~PortBase() =default |
| virtual void | prepareConsumerCycle(uint64_t ) |
| Unit * | owner() const |
| const std::string & | name() const |
| virtual std::optional< uint64_t > | minArrivalCycle() const Earliest pending arrival visible through this port, if any. |
Protected Functions
| Name | |
|---|---|
| PortBase(Unit * owner, std::string name) |
Protected Attributes
| Name | |
|---|---|
| Unit * | owner_ |
| std::string | name_ |
Detailed Description
class chronon::PortBase;
PortBase - Type-erased base class for all ports.
Public Functions Documentation
function ~PortBase
virtual ~PortBase() =default
function prepareConsumerCycle
inline virtual void prepareConsumerCycle(
uint64_t
)
Receiver-owned cycle-boundary preparation.
Only ports that explicitly register this hook are called by Unit. The default is therefore absent from the ordinary port/tick hot path rather than a virtual call on every PortBase each cycle.
function owner
inline Unit * owner() const
function name
inline const std::string & name() const
function minArrivalCycle
inline virtual std::optional< uint64_t > minArrivalCycle() const
Earliest pending arrival visible through this port, if any.
Protected Functions Documentation
function PortBase
inline PortBase(
Unit * owner,
std::string name
)
Protected Attributes Documentation
variable owner_
Unit * owner_;
variable name_
std::string name_;
Updated on 2026-07-23 at 16:24:33 +0000