Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
uavcan::CanTxQueue Class Reference

#include <can_io.hpp>

Inheritance diagram for uavcan::CanTxQueue:
Inheritance graph
[legend]

Public Member Functions

 CanTxQueue (IPoolAllocator &allocator, ISystemClock &sysclock, std::size_t allocator_quota)
 
bool contains (const CanFrame &frame) const
 
uint32_t getRejectedFrameCount () const
 
CanTxQueueEntrypeek ()
 
void push (const CanFrame &frame, MonotonicTime tx_deadline, CanIOFlags flags)
 
void remove (CanTxQueueEntry *entry)
 
bool topPriorityHigherOrEqual (const CanFrame &rhs_frame)
 
 ~CanTxQueue () override
 
- Public Member Functions inherited from uavcan::AvlTree< CanTxQueueEntry >
 AvlTree (IPoolAllocator &allocator, std::size_t allocator_quota)
 
bool contains (const CanTxQueueEntry *data) const
 
size_t getSize () const
 
bool insert (CanTxQueueEntry *data)
 
bool isEmpty () const
 
CanTxQueueEntrymax () const
 
void removeEntry (CanTxQueueEntry *data)
 
void walkPostOrder (std::function< void(CanTxQueueEntry *&)> forEach)
 
virtual ~AvlTree ()
 

Protected Member Functions

bool linkedListContains (Node *head, const CanFrame &frame) const
 
void safeIncrementRejectedFrames ()
 
AvlTree::NodesearchForNonExpiredMax (Node *n)
 
- Protected Member Functions inherited from uavcan::AvlTree< CanTxQueueEntry >
void postOrderNodeTraverseRecursively (Node *n, std::function< void(Node *&)> forEach)
 
NoderemoveNode (Node *node, CanTxQueueEntry *data)
 

Protected Attributes

uint32_t rejected_frames_cnt_
 
ISystemClocksysclock_
 
- Protected Attributes inherited from uavcan::AvlTree< CanTxQueueEntry >
LimitedPoolAllocator allocator_
 
Noderoot_
 

Private Member Functions

void postOrderTraverseEntryCleanup (Node *n)
 

Additional Inherited Members

- Static Protected Member Functions inherited from uavcan::AvlTree< CanTxQueueEntry >
static bool linkedListContains (Node *head, const CanTxQueueEntry *data)
 

Detailed Description

Definition at line 78 of file can_io.hpp.

Constructor & Destructor Documentation

◆ CanTxQueue()

uavcan::CanTxQueue::CanTxQueue ( IPoolAllocator allocator,
ISystemClock sysclock,
std::size_t  allocator_quota 
)
inline

Definition at line 92 of file can_io.hpp.

◆ ~CanTxQueue()

uavcan::CanTxQueue::~CanTxQueue ( )
override

Definition at line 51 of file uc_can_io.cpp.

Member Function Documentation

◆ contains()

bool uavcan::CanTxQueue::contains ( const CanFrame frame) const

Definition at line 67 of file uc_can_io.cpp.

◆ getRejectedFrameCount()

uint32_t uavcan::CanTxQueue::getRejectedFrameCount ( ) const
inline

Definition at line 105 of file can_io.hpp.

◆ linkedListContains()

bool uavcan::CanTxQueue::linkedListContains ( Node head,
const CanFrame frame 
) const
protected

Definition at line 86 of file uc_can_io.cpp.

◆ peek()

CanTxQueueEntry * uavcan::CanTxQueue::peek ( )

Definition at line 143 of file uc_can_io.cpp.

◆ postOrderTraverseEntryCleanup()

void uavcan::CanTxQueue::postOrderTraverseEntryCleanup ( Node n)
private

Definition at line 57 of file uc_can_io.cpp.

◆ push()

void uavcan::CanTxQueue::push ( const CanFrame frame,
MonotonicTime  tx_deadline,
CanIOFlags  flags 
)

Definition at line 104 of file uc_can_io.cpp.

◆ remove()

void uavcan::CanTxQueue::remove ( CanTxQueueEntry entry)

Definition at line 132 of file uc_can_io.cpp.

◆ safeIncrementRejectedFrames()

void uavcan::CanTxQueue::safeIncrementRejectedFrames ( )
protected

Definition at line 98 of file uc_can_io.cpp.

◆ searchForNonExpiredMax()

uavcan::AvlTree< uavcan::CanTxQueueEntry >::Node * uavcan::CanTxQueue::searchForNonExpiredMax ( Node n)
protected

Definition at line 161 of file uc_can_io.cpp.

◆ topPriorityHigherOrEqual()

bool uavcan::CanTxQueue::topPriorityHigherOrEqual ( const CanFrame rhs_frame)

Definition at line 153 of file uc_can_io.cpp.

Member Data Documentation

◆ rejected_frames_cnt_

uint32_t uavcan::CanTxQueue::rejected_frames_cnt_
protected

Definition at line 85 of file can_io.hpp.

◆ sysclock_

ISystemClock& uavcan::CanTxQueue::sysclock_
protected

Definition at line 84 of file can_io.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:04