Ensō 0.4.6
Software API reference
Loading...
Searching...
No Matches
enso::PktIterator Class Reference

Packet iterator. More...

#include <pipe.h>

Inheritance diagram for enso::PktIterator:
enso::MessageIteratorBase< PktIterator >

Public Member Functions

 PktIterator (uint8_t *addr, int32_t message_limit, RxPipe::MessageBatch< PktIterator > *batch)
 
 PktIterator (const PktIterator &)=default
 
PktIteratoroperator= (const PktIterator &)=default
 
 PktIterator (PktIterator &&)=default
 
PktIteratoroperator= (PktIterator &&)=default
 
_enso_always_inline uint8_t * GetNextMessage (uint8_t *current_message)
 Computes the next message address based on the current message.
 
constexpr void OnAdvanceMessage (uint32_t nb_bytes)
 Called when the iterator is done processing a message.
 
- Public Member Functions inherited from enso::MessageIteratorBase< PktIterator >
constexpr uint8_t * operator* ()
 
constexpr bool operator!= (const MessageIteratorBase &other) const
 
constexpr PktIteratoroperator++ ()
 

Additional Inherited Members

- Protected Member Functions inherited from enso::MessageIteratorBase< PktIterator >
 MessageIteratorBase (const MessageIteratorBase &)=default
 
 MessageIteratorBase (MessageIteratorBase &&)=default
 
 MessageIteratorBase (uint8_t *addr, int32_t message_limit, RxPipe::MessageBatch< PktIterator > *batch)
 
MessageIteratorBaseoperator= (const MessageIteratorBase &)=default
 
MessageIteratorBaseoperator= (MessageIteratorBase &&)=default
 
- Protected Attributes inherited from enso::MessageIteratorBase< PktIterator >
uint8_t * addr_
 
int32_t missing_messages_
 
RxPipe::MessageBatch< PktIterator > * batch_
 
uint8_t * next_addr_
 

Detailed Description

Packet iterator.

See also
RxPipe::RecvPkts
RxTxPipe::RecvPkts
PeekPktIterator

Definition at line 1350 of file pipe.h.

Constructor & Destructor Documentation

◆ PktIterator() [1/2]

enso::PktIterator::PktIterator ( )
inline

Definition at line 1352 of file pipe.h.

◆ PktIterator() [2/2]

enso::PktIterator::PktIterator ( uint8_t *  addr,
int32_t  message_limit,
RxPipe::MessageBatch< PktIterator > *  batch 
)
inline

Definition at line 1357 of file pipe.h.

Member Function Documentation

◆ GetNextMessage()

_enso_always_inline uint8_t * enso::PktIterator::GetNextMessage ( uint8_t *  current_message)
inline

Computes the next message address based on the current message.

Parameters
current_messageThe current message.
Returns
The next message.

Definition at line 1373 of file pipe.h.

◆ OnAdvanceMessage()

constexpr void enso::PktIterator::OnAdvanceMessage ( uint32_t  nb_bytes)
inlineconstexpr

Called when the iterator is done processing a message.

Parameters
nb_bytesThe number of bytes processed.

Definition at line 1382 of file pipe.h.


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