Public Member Functions | Private Attributes | List of all members
micros_swarm::OutMsgQueue Class Reference

#include <msg_queue_manager.h>

Public Member Functions

bool empty ()
 
const std::vector< uint8_t > & front ()
 
bool full ()
 
 OutMsgQueue (const std::string &name, int size, MsgQueueManager *manager_ptr)
 
void pop ()
 
void push (const std::vector< uint8_t > &msg)
 
int size ()
 
 ~OutMsgQueue ()
 

Private Attributes

boost::shared_mutex mutex_
 
std::string name_
 
boost::shared_ptr< cqueue< std::vector< uint8_t > > > queue_
 
MsgQueueManagerqueue_manager_ptr_
 
int size_
 

Detailed Description

Definition at line 34 of file msg_queue_manager.h.

Constructor & Destructor Documentation

micros_swarm::OutMsgQueue::OutMsgQueue ( const std::string &  name,
int  size,
MsgQueueManager manager_ptr 
)

Definition at line 27 of file msg_queue_manager.cpp.

micros_swarm::OutMsgQueue::~OutMsgQueue ( )

Definition at line 32 of file msg_queue_manager.cpp.

Member Function Documentation

bool micros_swarm::OutMsgQueue::empty ( )

Definition at line 43 of file msg_queue_manager.cpp.

const std::vector< uint8_t > & micros_swarm::OutMsgQueue::front ( )

Definition at line 55 of file msg_queue_manager.cpp.

bool micros_swarm::OutMsgQueue::full ( )

Definition at line 37 of file msg_queue_manager.cpp.

void micros_swarm::OutMsgQueue::pop ( )

Definition at line 61 of file msg_queue_manager.cpp.

void micros_swarm::OutMsgQueue::push ( const std::vector< uint8_t > &  msg)

Definition at line 67 of file msg_queue_manager.cpp.

int micros_swarm::OutMsgQueue::size ( )

Definition at line 49 of file msg_queue_manager.cpp.

Member Data Documentation

boost::shared_mutex micros_swarm::OutMsgQueue::mutex_
private

Definition at line 49 of file msg_queue_manager.h.

std::string micros_swarm::OutMsgQueue::name_
private

Definition at line 46 of file msg_queue_manager.h.

boost::shared_ptr<cqueue<std::vector<uint8_t> > > micros_swarm::OutMsgQueue::queue_
private

Definition at line 50 of file msg_queue_manager.h.

MsgQueueManager* micros_swarm::OutMsgQueue::queue_manager_ptr_
private

Definition at line 48 of file msg_queue_manager.h.

int micros_swarm::OutMsgQueue::size_
private

Definition at line 47 of file msg_queue_manager.h.


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


micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06