OMNeT++ Parallel Simulation Support 6.1
Discrete Event Simulation Library
cMemCommBuffer Class Reference

Description

Communication buffer that packs data into a memory buffer without any transformation.

Inheritance diagram for cMemCommBuffer:
[legend]
Collaboration diagram for cMemCommBuffer:
[legend]

Public Member Functions

 cMemCommBuffer ()
 
virtual ~cMemCommBuffer ()
 
Pack basic types
virtual void pack (char d) override
 
virtual void pack (unsigned char d) override
 
virtual void pack (bool d) override
 
virtual void pack (short d) override
 
virtual void pack (unsigned short d) override
 
virtual void pack (int d) override
 
virtual void pack (unsigned int d) override
 
virtual void pack (long d) override
 
virtual void pack (unsigned long d) override
 
virtual void pack (long long d) override
 
virtual void pack (unsigned long long d) override
 
virtual void pack (float d) override
 
virtual void pack (double d) override
 
virtual void pack (long double d) override
 
virtual void pack (const char *d) override
 
virtual void pack (const opp_string &d) override
 
virtual void pack (SimTime d) override
 
Pack arrays of basic types
virtual void pack (const char *d, int size) override
 
virtual void pack (const unsigned char *d, int size) override
 
virtual void pack (const bool *d, int size) override
 
virtual void pack (const short *d, int size) override
 
virtual void pack (const unsigned short *d, int size) override
 
virtual void pack (const int *d, int size) override
 
virtual void pack (const unsigned int *d, int size) override
 
virtual void pack (const long *d, int size) override
 
virtual void pack (const unsigned long *d, int size) override
 
virtual void pack (const long long *d, int size) override
 
virtual void pack (const unsigned long long *d, int size) override
 
virtual void pack (const float *d, int size) override
 
virtual void pack (const double *d, int size) override
 
virtual void pack (const long double *d, int size) override
 
virtual void pack (const char **d, int size) override
 
virtual void pack (const opp_string *d, int size) override
 
virtual void pack (const SimTime *d, int size) override
 
Unpack basic types
virtual void unpack (char &d) override
 
virtual void unpack (unsigned char &d) override
 
virtual void unpack (bool &d) override
 
virtual void unpack (short &d) override
 
virtual void unpack (unsigned short &d) override
 
virtual void unpack (int &d) override
 
virtual void unpack (unsigned int &d) override
 
virtual void unpack (long &d) override
 
virtual void unpack (unsigned long &d) override
 
virtual void unpack (long long &d) override
 
virtual void unpack (unsigned long long &d) override
 
virtual void unpack (float &d) override
 
virtual void unpack (double &d) override
 
virtual void unpack (long double &d) override
 
virtual void unpack (const char *&d) override
 
virtual void unpack (opp_string &d) override
 
virtual void unpack (SimTime &d) override
 
Unpack arrays of basic types
virtual void unpack (char *d, int size) override
 
virtual void unpack (unsigned char *d, int size) override
 
virtual void unpack (bool *d, int size) override
 
virtual void unpack (short *d, int size) override
 
virtual void unpack (unsigned short *d, int size) override
 
virtual void unpack (int *d, int size) override
 
virtual void unpack (unsigned int *d, int size) override
 
virtual void unpack (long *d, int size) override
 
virtual void unpack (unsigned long *d, int size) override
 
virtual void unpack (long long *d, int size) override
 
virtual void unpack (unsigned long long *d, int size) override
 
virtual void unpack (float *d, int size) override
 
virtual void unpack (double *d, int size) override
 
virtual void unpack (long double *d, int size) override
 
virtual void unpack (const char **d, int size) override
 
virtual void unpack (opp_string *d, int size) override
 
virtual void unpack (SimTime *d, int size) override
 
- Public Member Functions inherited from cCommBufferBase
 cCommBufferBase ()
 
virtual ~cCommBufferBase ()
 
char * getBuffer () const
 
int getBufferLength () const
 
void allocateAtLeast (int size)
 
void setMessageSize (int size)
 
int getMessageSize () const
 
void reset ()
 
virtual bool isBufferEmpty () const override
 
virtual void assertBufferEmpty () override
 
virtual void swap (cCommBufferBase *other)
 

Constructor & Destructor Documentation

◆ cMemCommBuffer()

cMemCommBuffer ( )
inline

Constructor.

◆ ~cMemCommBuffer()

virtual ~cMemCommBuffer ( )
inlinevirtual

Destructor.


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