rotor_light
real-time C++ actor micro-framework for embedded systems, supervisable
rotor_light::ItemGuard Struct Reference

Message removal helper after message delivery. More...

#include <queue.hpp>

Public Member Functions

 ItemGuard (Message *message_, ItemQueueBase *item_queue_)
 
 ItemGuard (const ItemGuard &)=delete
 
 ItemGuard (ItemGuard &&)=delete
 
ItemGuardoperator= (const ItemGuard &)=default
 
 operator bool ()
 
Messageoperator* ()
 

Public Attributes

Messagemessage
 
ItemQueueBaseitem_queue
 

Detailed Description

Message removal helper after message delivery.

Constructor & Destructor Documentation

◆ ItemGuard()

rotor_light::ItemGuard::ItemGuard ( Message message_,
ItemQueueBase item_queue_ 
)
inline

records message for removal

Member Function Documentation

◆ operator bool()

rotor_light::ItemGuard::operator bool ( )
inline

returns true if the guard holds a message

◆ operator*()

Message & rotor_light::ItemGuard::operator* ( )
inline

derefers to a message

◆ operator=()

ItemGuard & rotor_light::ItemGuard::operator= ( const ItemGuard )
default

copy-assignment operator

Member Data Documentation

◆ item_queue

ItemQueueBase* rotor_light::ItemGuard::item_queue

message origin/queue

◆ message

Message* rotor_light::ItemGuard::message

guarded message


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