StormByte-Buffer 4.0.0
C++26 buffer module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Buffer::Detail::HopperEntry< T > Struct Template Reference

Safe entry owned by its template provider; payload retains its SafeValue contract. More...

#include <StormByte/buffer/hopper.hxx>

Collaboration diagram for StormByte::Buffer::Detail::HopperEntry< T >:

Public Member Functions

 HopperEntry () noexcept=default
 Construct an empty entry before moving the caller's payload.
 HopperEntry (const HopperEntry &)=delete
 HopperEntry (HopperEntry &&other) noexcept=default
 Transfer payload and accounting.
 ~HopperEntry () noexcept=default
 Release the payload and its shared charge in their providers.
HopperEntry & operator= (const HopperEntry &)=delete
HopperEntry & operator= (HopperEntry &&other) noexcept=default
 Transfer payload and accounting.

Public Attributes

T Item {}
 Caller payload.
StormByte::ByteSize Bytes {0}
 Caller-defined logical weight.
ByteBudget::Lease Charge
 Shared aggregate charge.

Detailed Description

template<HopperValue T>
struct StormByte::Buffer::Detail::HopperEntry< T >

Safe entry owned by its template provider; payload retains its SafeValue contract.

Template Parameters
TNonthrowing supported payload.

Constructor & Destructor Documentation

◆ HopperEntry() [1/3]

template<HopperValue T>
StormByte::Buffer::Detail::HopperEntry< T >::HopperEntry ( )
defaultnoexcept

Construct an empty entry before moving the caller's payload.

◆ HopperEntry() [2/3]

template<HopperValue T>
StormByte::Buffer::Detail::HopperEntry< T >::HopperEntry ( const HopperEntry< T > & )
delete

◆ HopperEntry() [3/3]

template<HopperValue T>
StormByte::Buffer::Detail::HopperEntry< T >::HopperEntry ( HopperEntry< T > && other)
defaultnoexcept

Transfer payload and accounting.

Parameters
otherSource.

◆ ~HopperEntry()

template<HopperValue T>
StormByte::Buffer::Detail::HopperEntry< T >::~HopperEntry ( )
defaultnoexcept

Release the payload and its shared charge in their providers.

Member Function Documentation

◆ operator=() [1/2]

template<HopperValue T>
HopperEntry & StormByte::Buffer::Detail::HopperEntry< T >::operator= ( const HopperEntry< T > & )
delete

◆ operator=() [2/2]

template<HopperValue T>
HopperEntry & StormByte::Buffer::Detail::HopperEntry< T >::operator= ( HopperEntry< T > && other)
defaultnoexcept

Transfer payload and accounting.

Parameters
otherSource.
Returns
This entry.

Member Data Documentation

◆ Bytes

template<HopperValue T>
StormByte::ByteSize StormByte::Buffer::Detail::HopperEntry< T >::Bytes {0}

Caller-defined logical weight.

◆ Charge

template<HopperValue T>
ByteBudget::Lease StormByte::Buffer::Detail::HopperEntry< T >::Charge

Shared aggregate charge.

◆ Item

template<HopperValue T>
T StormByte::Buffer::Detail::HopperEntry< T >::Item {}

Caller payload.


The documentation for this struct was generated from the following file: