Public Types | |
using | TimeType = uint64_t |
using | DataType = uint64_t |
using | Point = std::pair< TimeType, DataType > |
using | PointAllocator = boost::interprocess::allocator< Point, boost::interprocess::managed_shared_memory::segment_manager > |
a point is pair (timestamp,nclusters) More... | |
using | PointVector = boost::interprocess::vector< Point, PointAllocator > |
using | interprocess_mutex = boost::interprocess::interprocess_mutex |
using | scoped_lock = boost::interprocess::scoped_lock< interprocess_mutex > |
Public Member Functions | |
MessageBuffer (const char *shmemName, const char *bufName, size_t Capacity=10) | |
~MessageBuffer () | |
void | addPoint (Point p) |
bool | isFull () |
size_t | size () |
size_t | capacity () |
void | clear () |
nsnmessages::NSNPackedMessage | makeMessage () |
scoped_lock | ScopedLock () |
Private Attributes | |
novaddt::sm_cleaner | _sm_cleaner |
boost::interprocess::managed_shared_memory | _segment |
const PointAllocator | _allocator |
PointVector * | _buffer |
interprocess_mutex * | _mutex |
unsigned * | _counter |
size_t | _capacity |
Definition at line 33 of file MessageBuffer.h.
using novaddt::MessageBuffer::DataType = uint64_t |
Definition at line 38 of file MessageBuffer.h.
using novaddt::MessageBuffer::interprocess_mutex = boost::interprocess::interprocess_mutex |
Definition at line 43 of file MessageBuffer.h.
using novaddt::MessageBuffer::Point = std::pair<TimeType, DataType> |
Definition at line 39 of file MessageBuffer.h.
using novaddt::MessageBuffer::PointAllocator = boost::interprocess::allocator <Point,boost::interprocess::managed_shared_memory::segment_manager> |
a point is pair (timestamp,nclusters)
Definition at line 41 of file MessageBuffer.h.
using novaddt::MessageBuffer::PointVector = boost::interprocess::vector<Point, PointAllocator> |
Definition at line 42 of file MessageBuffer.h.
using novaddt::MessageBuffer::scoped_lock = boost::interprocess::scoped_lock<interprocess_mutex> |
Definition at line 44 of file MessageBuffer.h.
using novaddt::MessageBuffer::TimeType = uint64_t |
a class to manage point buffer in shared memory When 10 points are accumulated, we can form an NSNPackedMessage
Definition at line 37 of file MessageBuffer.h.
|
inline |
Definition at line 46 of file MessageBuffer.h.
References om::cout, and allTimeWatchdog::endl.
|
inline |
Definition at line 61 of file MessageBuffer.h.
Definition at line 64 of file MessageBuffer.h.
Referenced by novaddt::SNMessageService::PushPoint().
|
inline |
Definition at line 71 of file MessageBuffer.h.
|
inline |
Definition at line 72 of file MessageBuffer.h.
Referenced by novaddt::SNMessageService::PushPoint().
|
inline |
Definition at line 69 of file MessageBuffer.h.
Referenced by novaddt::SNMessageService::PushPoint().
|
inline |
Definition at line 74 of file MessageBuffer.h.
References MECModelEnuComparisons::i, and m.
Referenced by novaddt::SNMessageService::PushPoint().
|
inline |
Definition at line 84 of file MessageBuffer.h.
Referenced by novaddt::SNMessageService::PushPoint().
|
inline |
Definition at line 70 of file MessageBuffer.h.
|
private |
Definition at line 88 of file MessageBuffer.h.
|
private |
Definition at line 89 of file MessageBuffer.h.
Referenced by srt_ntide_dump_file.ide_dump_file::get_line(), and srt_ntide_dump_file.ide_dump_file::load_buffer().
|
private |
Definition at line 92 of file MessageBuffer.h.
|
private |
Definition at line 91 of file MessageBuffer.h.
|
private |
Definition at line 90 of file MessageBuffer.h.
|
private |
Definition at line 87 of file MessageBuffer.h.
|
private |
Definition at line 86 of file MessageBuffer.h.