A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DataPacket Class Reference

#include <DataPacket.h>

+ Collaboration diagram for DataPacket:

Public Member Functions

 DataPacket (void *bytes, size_t size)
 
 ~DataPacket ()
 
void * getBytes ()
 
size_t getSize ()
 
int getRefCount ()
 
void incRefCount ()
 
void decRefCount ()
 

Private Attributes

void * bytes
 
size_t size
 
pthread_mutex_t mutex
 
int refCount
 

Detailed Description

Definition at line 25 of file DataPacket.h.

Constructor & Destructor Documentation

DataPacket::DataPacket ( void *  bytes,
size_t  size 
)
inline

Definition at line 43 of file DataPacket.h.

DataPacket::~DataPacket ( )
inline

Definition at line 51 of file DataPacket.h.

Member Function Documentation

void DataPacket::decRefCount ( )
inline

Definition at line 78 of file DataPacket.h.

void* DataPacket::getBytes ( )
inline

Definition at line 56 of file DataPacket.h.

int DataPacket::getRefCount ( )
inline

Definition at line 66 of file DataPacket.h.

size_t DataPacket::getSize ( )
inline

Definition at line 61 of file DataPacket.h.

void DataPacket::incRefCount ( )
inline

Definition at line 71 of file DataPacket.h.

Member Data Documentation

void* DataPacket::bytes
private

Definition at line 29 of file DataPacket.h.

pthread_mutex_t DataPacket::mutex
private

Definition at line 35 of file DataPacket.h.

int DataPacket::refCount
private

Definition at line 39 of file DataPacket.h.

size_t DataPacket::size
private

Definition at line 32 of file DataPacket.h.


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