This documenta- tion describes the current state of development.
Note that interfaces and functionality may still change.

Prokee Modules:
  A
  B
  C
  D
  E
  F
  G
  I
  L
  M
  N
  O
  P
  R
  S
  T
  U
  W

     open all    |    close all

GUI Elements:
  B
  C
  I
  M
  P
  R
  S
  T

     open all    |    close all

GUI Interactions:
  B
  F
  H
  S

     open all    |    close all

GUI Layouts:
  L

     open all    |    close all

Games/Demos:
  M

     open all    |    close all

Third Party Libraries:
  P
  F
  Z

     open all    |    close all

Information about this Website / Informationen zu dieser Webseite:
In case of any questions, or comments, please feel free to contact me via email at apoll500@gmail.com.

Module mqueue [Version: v01] (Interface AbsMsgQueue)

   [AbsMsgItem]   [AbsMsgQueue]

Contents

Inheritance:
AbsMsgQueue
Implementations: MsgQueue

Constructors:
MsgQueue
AbsMsgQueue *createMsgQueue(unsigned int maxln)

Methods:
enqueue (version 1)
int enqueue(uint64_t msgID,uint64_t msgParam,uint64_t msgFlags,void *data)
enqueue (version 2)
int enqueue(uint64_t msgID,uint64_t msgFlags,void *data)
enqueue (version 3)
int enqueue(uint64_t msgID,uint64_t msgParam)
enqueue (version 4)
int enqueue(uint64_t msgID)
enqueue (version 5)
int enqueue(AbsMsgItem *msgItem)
dequeue
AbsMsgItem *dequeue()
peek
AbsMsgItem *peek()
isEmpty
bool isEmpty()
length
unsigned int length()
print
void print()

Constructors

   MsgQueue


A message queue.

Constructor:
MsgQueue(unsigned int maxln)

Factory Method:
AbsMsgQueue *AbsMsgQueueInterface::createMsgQueue(unsigned int maxln)

Wrapper Class:
MsgQueueWrapper(unsigned int maxln)

The static method AbsMsgQueueInterface::createMsgQueue creates a new instance of class MsgQueue.

Parameters:
Type Name Direction Description
unsigned int maxlnThe initial amount of memory to allocate. The queue will be able to hold up to maxln items without reallocation of memory.

Return value:
Returns an instance of MsgQueue.


Methods

   enqueue (version 1)


Inserts a new item at the end of the queue.

Signature:
int enqueue(uint64_t msgID,uint64_t msgParam,uint64_t msgFlags,void *data)

Parameters:
Type Name Direction Description
uint64_t msgIDThe ID of the message.
uint64_t msgParamThe parameter of the message.
uint64_t msgFlagsThe flags of the message.
void *dataAdditional data the message carries.


Return value:
Returns 0 if successful, otherwise a value other than 0.

   enqueue (version 2)


Inserts a new item at the end of the queue.

Signature:
int enqueue(uint64_t msgID,uint64_t msgFlags,void *data)

Parameters:
Type Name Direction Description
uint64_t msgIDThe ID of the message.
uint64_t msgFlagsThe flags of the message.
void *dataAdditional data the message carries.


Return value:
Returns 0 if successful, otherwise a value other than 0.

   enqueue (version 3)


Inserts a new item at the end of the queue.

Signature:
int enqueue(uint64_t msgID,uint64_t msgParam)

Parameters:
Type Name Direction Description
uint64_t msgIDThe ID of the message.
uint64_t msgParamThe parameter of the message.


Return value:
Returns 0 if successful, otherwise a value other than 0.

   enqueue (version 4)


Inserts a new item at the end of the queue.

Signature:
int enqueue(uint64_t msgID)

Parameters:
Type Name Direction Description
uint64_t msgIDThe ID of the message.


Return value:
Returns 0 if successful, otherwise a value other than 0.

   enqueue (version 5)


Inserts a new item at the end of the queue.

Signature:
int enqueue(AbsMsgItem *msgItem)

Parameters:
Type Name Direction Description
AbsMsgItem *msgItem[IN]A message to be put an the queue.


Return value:
Returns 0 if successful, otherwise a value other than 0.

   dequeue


Returns the Item on the Top of the queue and removes it from the queue.

Signature:
AbsMsgItem *dequeue()

Return value:
The topmost item of the queue

   peek


Returns the Item on the Top of the queue (without removing it).

Signature:
AbsMsgItem *peek()

Return value:
The topmost item of the queue

   isEmpty


Tests if the queue is empty.

Signature:
bool isEmpty()

Return value:
Returns true, if the queue is empty and false otherwise.

   length


Returns the number of items items queue.

Signature:
unsigned int length()

Return value:
the length of the queue.

   print


Printing debug info.

Signature:
void print()


Copyright © 2017 - 2019 by Andreas Pollhammer