NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::Testing::BorrowedPort Class Reference

A borrowed port from the port pool of nes test base class. It manages garbage collection internally when dtor is called. More...

#include <BorrowedPort.hpp>

Public Member Functions

 BorrowedPort (uint16_t port, uint32_t portIndex, detail::PortDispatcher *parent)
 Creates a new port wrapper object. More...
 
 ~BorrowedPort () noexcept
 
 operator uint16_t () const
 

Detailed Description

A borrowed port from the port pool of nes test base class. It manages garbage collection internally when dtor is called.

Constructor & Destructor Documentation

◆ BorrowedPort()

NES::Testing::BorrowedPort::BorrowedPort ( uint16_t  port,
uint32_t  portIndex,
detail::PortDispatcher parent 
)
explicit

Creates a new port wrapper object.

Parameters
portthe port value
portIndexthe index of the port in the pool
parentthe pool object

◆ ~BorrowedPort()

NES::Testing::BorrowedPort::~BorrowedPort ( )
noexcept

References NES::Testing::detail::PortDispatcher::recyclePort().

Here is the call graph for this function:

Member Function Documentation

◆ operator uint16_t()

NES::Testing::BorrowedPort::operator uint16_t ( ) const

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