INET Framework for OMNeT++/OMNEST
omnetpp Namespace Reference

Functions

template<typename T , typename A >
void doParsimPacking (omnetpp::cCommBuffer *buffer, const std::vector< T, A > &v)
 
template<typename T , typename A >
void doParsimUnpacking (omnetpp::cCommBuffer *buffer, std::vector< T, A > &v)
 
template<typename T , typename A >
void doParsimPacking (omnetpp::cCommBuffer *buffer, const std::list< T, A > &l)
 
template<typename T , typename A >
void doParsimUnpacking (omnetpp::cCommBuffer *buffer, std::list< T, A > &l)
 
template<typename T , typename Tr , typename A >
void doParsimPacking (omnetpp::cCommBuffer *buffer, const std::set< T, Tr, A > &s)
 
template<typename T , typename Tr , typename A >
void doParsimUnpacking (omnetpp::cCommBuffer *buffer, std::set< T, Tr, A > &s)
 
template<typename K , typename V , typename Tr , typename A >
void doParsimPacking (omnetpp::cCommBuffer *buffer, const std::map< K, V, Tr, A > &m)
 
template<typename K , typename V , typename Tr , typename A >
void doParsimUnpacking (omnetpp::cCommBuffer *buffer, std::map< K, V, Tr, A > &m)
 
template<typename T >
void doParsimArrayPacking (omnetpp::cCommBuffer *b, const T *t, int n)
 
template<typename T >
void doParsimArrayUnpacking (omnetpp::cCommBuffer *b, T *t, int n)
 
template<typename T >
void doParsimPacking (omnetpp::cCommBuffer *, const T &t)
 
template<typename T >
void doParsimUnpacking (omnetpp::cCommBuffer *, T &t)
 

Function Documentation

template<typename T >
void omnetpp::doParsimArrayPacking ( omnetpp::cCommBuffer *  b,
const T *  t,
int  n 
)
124 {
125  for (int i = 0; i < n; i++)
126  doParsimPacking(b, t[i]);
127 }
void doParsimPacking(omnetpp::cCommBuffer *b, const PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:83
value< double, units::m > b
Definition: Units.h:1054
template<typename T >
void omnetpp::doParsimArrayUnpacking ( omnetpp::cCommBuffer *  b,
T *  t,
int  n 
)
131 {
132  for (int i = 0; i < n; i++)
133  doParsimUnpacking(b, t[i]);
134 }
void doParsimUnpacking(omnetpp::cCommBuffer *b, PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:84
value< double, units::m > b
Definition: Units.h:1054
template<typename T , typename A >
void omnetpp::doParsimPacking ( omnetpp::cCommBuffer *  buffer,
const std::vector< T, A > &  v 
)

Referenced by doParsimArrayPacking(), and doParsimPacking().

39 {
40  int n = v.size();
41  doParsimPacking(buffer, n);
42  for (int i = 0; i < n; i++)
43  doParsimPacking(buffer, v[i]);
44 }
void doParsimPacking(omnetpp::cCommBuffer *b, const PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:83
template<typename T , typename A >
void omnetpp::doParsimPacking ( omnetpp::cCommBuffer *  buffer,
const std::list< T, A > &  l 
)
59 {
60  doParsimPacking(buffer, (int)l.size());
61  for (typename std::list<T,A>::const_iterator it = l.begin(); it != l.end(); ++it)
62  doParsimPacking(buffer, (T&)*it);
63 }
compose< Wb, pow< m,-2 > > T
Definition: Units.h:781
void doParsimPacking(omnetpp::cCommBuffer *b, const PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:83
template<typename T , typename Tr , typename A >
void omnetpp::doParsimPacking ( omnetpp::cCommBuffer *  buffer,
const std::set< T, Tr, A > &  s 
)
79 {
80  doParsimPacking(buffer, (int)s.size());
81  for (typename std::set<T,Tr,A>::const_iterator it = s.begin(); it != s.end(); ++it)
82  doParsimPacking(buffer, *it);
83 }
void doParsimPacking(omnetpp::cCommBuffer *b, const PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:83
value< double, units::s > s
Definition: Units.h:1049
template<typename K , typename V , typename Tr , typename A >
void omnetpp::doParsimPacking ( omnetpp::cCommBuffer *  buffer,
const std::map< K, V, Tr, A > &  m 
)
100 {
101  doParsimPacking(buffer, (int)m.size());
102  for (typename std::map<K,V,Tr,A>::const_iterator it = m.begin(); it != m.end(); ++it) {
103  doParsimPacking(buffer, it->first);
104  doParsimPacking(buffer, it->second);
105  }
106 }
void doParsimPacking(omnetpp::cCommBuffer *b, const PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:83
value< double, units::m > m
Definition: Units.h:1047
template<typename T >
void omnetpp::doParsimPacking ( omnetpp::cCommBuffer *  ,
const T &  t 
)
139 {
140  throw omnetpp::cRuntimeError("Parsim error: No doParsimPacking() function for type %s", omnetpp::opp_typename(typeid(t)));
141 }
template<typename T , typename A >
void omnetpp::doParsimUnpacking ( omnetpp::cCommBuffer *  buffer,
std::vector< T, A > &  v 
)

Referenced by doParsimArrayUnpacking(), and doParsimUnpacking().

48 {
49  int n;
50  doParsimUnpacking(buffer, n);
51  v.resize(n);
52  for (int i = 0; i < n; i++)
53  doParsimUnpacking(buffer, v[i]);
54 }
void doParsimUnpacking(omnetpp::cCommBuffer *b, PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:84
template<typename T , typename A >
void omnetpp::doParsimUnpacking ( omnetpp::cCommBuffer *  buffer,
std::list< T, A > &  l 
)
67 {
68  int n;
69  doParsimUnpacking(buffer, n);
70  for (int i=0; i<n; i++) {
71  l.push_back(T());
72  doParsimUnpacking(buffer, l.back());
73  }
74 }
compose< Wb, pow< m,-2 > > T
Definition: Units.h:781
void doParsimUnpacking(omnetpp::cCommBuffer *b, PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:84
template<typename T , typename Tr , typename A >
void omnetpp::doParsimUnpacking ( omnetpp::cCommBuffer *  buffer,
std::set< T, Tr, A > &  s 
)
87 {
88  int n;
89  doParsimUnpacking(buffer, n);
90  for (int i=0; i<n; i++) {
91  T x;
92  doParsimUnpacking(buffer, x);
93  s.insert(x);
94  }
95 }
compose< Wb, pow< m,-2 > > T
Definition: Units.h:781
void doParsimUnpacking(omnetpp::cCommBuffer *b, PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:84
value< double, units::s > s
Definition: Units.h:1049
template<typename K , typename V , typename Tr , typename A >
void omnetpp::doParsimUnpacking ( omnetpp::cCommBuffer *  buffer,
std::map< K, V, Tr, A > &  m 
)
110 {
111  int n;
112  doParsimUnpacking(buffer, n);
113  for (int i=0; i<n; i++) {
114  K k; V v;
115  doParsimUnpacking(buffer, k);
116  doParsimUnpacking(buffer, v);
117  m[k] = v;
118  }
119 }
void doParsimUnpacking(omnetpp::cCommBuffer *b, PacketDrillInfo &obj)
Definition: PacketDrillInfo_m.h:84
value< double, units::K > K
Definition: Units.h:1050
compose< W, pow< A,-1 > > V
Definition: Units.h:772
const double k
Definition: QAM16Modulation.cc:24
value< double, units::m > m
Definition: Units.h:1047
template<typename T >
void omnetpp::doParsimUnpacking ( omnetpp::cCommBuffer *  ,
T &  t 
)
145 {
146  throw omnetpp::cRuntimeError("Parsim error: No doParsimUnpacking() function for type %s", omnetpp::opp_typename(typeid(t)));
147 }