OMNeT++ Parallel Simulation Support
6.0.3
cmemcommbuffer.h
1
//=========================================================================
2
// CMEMCOMMBUFFER.H - part of
3
//
4
// OMNeT++/OMNEST
5
// Discrete System Simulation in C++
6
//
7
//=========================================================================
8
9
/*--------------------------------------------------------------*
10
Copyright (C) 1992-2017 Andras Varga
11
Copyright (C) 2006-2017 OpenSim Ltd.
12
13
This file is distributed WITHOUT ANY WARRANTY. See the file
14
`license' for details on this and other legal matters.
15
*--------------------------------------------------------------*/
16
17
#ifndef __OMNETPP_CMEMCOMMBUFFER_H
18
#define __OMNETPP_CMEMCOMMBUFFER_H
19
20
#include "ccommbufferbase.h"
21
22
namespace
omnetpp {
23
24
31
class
SIM_API
cMemCommBuffer
:
public
cCommBufferBase
32
{
33
public
:
37
cMemCommBuffer
() {}
38
42
virtual
~cMemCommBuffer
() {}
43
46
virtual
void
pack(
char
d)
override
;
47
virtual
void
pack(
unsigned
char
d)
override
;
48
virtual
void
pack(
bool
d)
override
;
49
virtual
void
pack(
short
d)
override
;
50
virtual
void
pack(
unsigned
short
d)
override
;
51
virtual
void
pack(
int
d)
override
;
52
virtual
void
pack(
unsigned
int
d)
override
;
53
virtual
void
pack(
long
d)
override
;
54
virtual
void
pack(
unsigned
long
d)
override
;
55
virtual
void
pack(
long
long
d)
override
;
56
virtual
void
pack(
unsigned
long
long
d)
override
;
57
virtual
void
pack(
float
d)
override
;
58
virtual
void
pack(
double
d)
override
;
59
virtual
void
pack(
long
double
d)
override
;
60
virtual
void
pack(
const
char
*d)
override
;
61
virtual
void
pack(
const
opp_string
& d)
override
;
62
virtual
void
pack(
SimTime
d)
override
;
64
67
virtual
void
pack(
const
char
*d,
int
size)
override
;
68
virtual
void
pack(
const
unsigned
char
*d,
int
size)
override
;
69
virtual
void
pack(
const
bool
*d,
int
size)
override
;
70
virtual
void
pack(
const
short
*d,
int
size)
override
;
71
virtual
void
pack(
const
unsigned
short
*d,
int
size)
override
;
72
virtual
void
pack(
const
int
*d,
int
size)
override
;
73
virtual
void
pack(
const
unsigned
int
*d,
int
size)
override
;
74
virtual
void
pack(
const
long
*d,
int
size)
override
;
75
virtual
void
pack(
const
unsigned
long
*d,
int
size)
override
;
76
virtual
void
pack(
const
long
long
*d,
int
size)
override
;
77
virtual
void
pack(
const
unsigned
long
long
*d,
int
size)
override
;
78
virtual
void
pack(
const
float
*d,
int
size)
override
;
79
virtual
void
pack(
const
double
*d,
int
size)
override
;
80
virtual
void
pack(
const
long
double
*d,
int
size)
override
;
81
virtual
void
pack(
const
char
**d,
int
size)
override
;
82
virtual
void
pack(
const
opp_string
*d,
int
size)
override
;
83
virtual
void
pack(
const
SimTime
*d,
int
size)
override
;
85
88
virtual
void
unpack(
char
& d)
override
;
89
virtual
void
unpack(
unsigned
char
& d)
override
;
90
virtual
void
unpack(
bool
& d)
override
;
91
virtual
void
unpack(
short
& d)
override
;
92
virtual
void
unpack(
unsigned
short
& d)
override
;
93
virtual
void
unpack(
int
& d)
override
;
94
virtual
void
unpack(
unsigned
int
& d)
override
;
95
virtual
void
unpack(
long
& d)
override
;
96
virtual
void
unpack(
unsigned
long
& d)
override
;
97
virtual
void
unpack(
long
long
& d)
override
;
98
virtual
void
unpack(
unsigned
long
long
& d)
override
;
99
virtual
void
unpack(
float
& d)
override
;
100
virtual
void
unpack(
double
& d)
override
;
101
virtual
void
unpack(
long
double
& d)
override
;
102
virtual
void
unpack(
const
char
*&d)
override
;
103
virtual
void
unpack(
opp_string
& d)
override
;
104
virtual
void
unpack(
SimTime
& d)
override
;
106
109
virtual
void
unpack(
char
*d,
int
size)
override
;
110
virtual
void
unpack(
unsigned
char
*d,
int
size)
override
;
111
virtual
void
unpack(
bool
*d,
int
size)
override
;
112
virtual
void
unpack(
short
*d,
int
size)
override
;
113
virtual
void
unpack(
unsigned
short
*d,
int
size)
override
;
114
virtual
void
unpack(
int
*d,
int
size)
override
;
115
virtual
void
unpack(
unsigned
int
*d,
int
size)
override
;
116
virtual
void
unpack(
long
*d,
int
size)
override
;
117
virtual
void
unpack(
unsigned
long
*d,
int
size)
override
;
118
virtual
void
unpack(
long
long
*d,
int
size)
override
;
119
virtual
void
unpack(
unsigned
long
long
*d,
int
size)
override
;
120
virtual
void
unpack(
float
*d,
int
size)
override
;
121
virtual
void
unpack(
double
*d,
int
size)
override
;
122
virtual
void
unpack(
long
double
*d,
int
size)
override
;
123
virtual
void
unpack(
const
char
**d,
int
size)
override
;
124
virtual
void
unpack(
opp_string
*d,
int
size)
override
;
125
virtual
void
unpack(
SimTime
*d,
int
size)
override
;
127
};
128
129
}
// namespace omnetpp
130
131
132
#endif
133
omnetpp::cMemCommBuffer::cMemCommBuffer
cMemCommBuffer()
Definition:
cmemcommbuffer.h:37
omnetpp::cCommBufferBase
Adds buffer (re)allocation functions to cCommBuffer. This functionality is not always needed,...
Definition:
ccommbufferbase.h:28
omnetpp::cMemCommBuffer
Communication buffer that packs data into a memory buffer without any transformation.
Definition:
cmemcommbuffer.h:31
omnetpp::opp_string
omnetpp::SimTime
omnetpp::cMemCommBuffer::~cMemCommBuffer
virtual ~cMemCommBuffer()
Definition:
cmemcommbuffer.h:42
src
sim
parsim
cmemcommbuffer.h
Generated on Tue Jan 30 2024 20:11:37 for OMNeT++ Parallel Simulation Support by
1.8.17