RingBuffer Class Reference
Implements a ring buffer. It is not possible to create plane copies of this class. It is not possible to use the default constructor.
More...
#include <uamonitoreditem.h>
List of all members.
Detailed Description
Implements a ring buffer. It is not possible to create plane copies of this class. It is not possible to use the default constructor.
RingBuffer
Constructor & Destructor Documentation
RingBuffer::RingBuffer |
( |
OpcUa_UInt32 |
uSize |
) |
|
construction
- Parameters:
-
| uSize | the size of the buffer |
RingBuffer::~RingBuffer |
( |
|
) |
|
Member Function Documentation
void RingBuffer::changeSize |
( |
OpcUa_UInt32 |
newSize |
) |
|
Change size of the buffer.
- Parameters:
-
| newSize | the new size the buffer will get. |
OpcUa_UInt32 RingBuffer::getSize |
( |
|
) |
|
Get size of the buffer.
- Returns:
- the size of the buffer
OpcUa_UInt32 RingBuffer::getCount |
( |
|
) |
|
Get number of data pieces in the buffer.
- Returns:
- the count of data pieces
OpcUa_StatusCode RingBuffer::pushSafe |
( |
OpcUa_Void * |
pData |
) |
|
Push data to the buffer. Returns an error if the buffer is full.
- Parameters:
-
| pData | Data to push into the buffer. |
- Returns:
- OPC UA status code
OpcUa_Void * RingBuffer::push |
( |
OpcUa_Void * |
pData |
) |
|
Push data to the buffer. Adds the data and returns the oldest data if the buffer is full.
- Parameters:
-
| pData | Data to push into the buffer. |
OpcUa_Void * RingBuffer::pop |
( |
|
) |
|
Pop the data from the buffer.
The documentation for this class was generated from the following files:
- src/uaserver/uaservercpp/uamodule/uamonitoreditem.h
- src/uaserver/uaservercpp/uamodule/uamonitoreditem.cpp