46 #include <Xyce_config.h>
53 #include <N_PDS_Comm.h>
68 int bCnt =
sizeof(int);
72 bCnt +=
data.size() *
sizeof(double);
75 bCnt +=
dataInt.size() *
sizeof(int);
78 bCnt +=
dataSizeT.size() *
sizeof(size_t);
97 comm->pack( &length, 1, buf, bsize, pos );
98 comm->pack(
ID.c_str(), length, buf, bsize, pos );
101 length =
data.size();
102 comm->pack( &length, 1, buf, bsize, pos );
103 comm->pack( &(
data[0]), length, buf, bsize, pos );
107 comm->pack( &length, 1, buf, bsize, pos );
108 comm->pack( &(
dataInt[0]), length, buf, bsize, pos );
112 comm->pack( &length, 1, buf, bsize, pos );
113 comm->pack( &(
dataSizeT[0]), length, buf, bsize, pos );
129 comm->unpack( buf, bsize, pos, &length, 1 );
130 ID = std::string( (buf+pos), length);
134 comm->unpack( buf, bsize, pos, &length, 1 );
136 comm->unpack( buf, bsize, pos, &(
data[0]), length );
139 comm->unpack( buf, bsize, pos, &length, 1 );
141 comm->unpack( buf, bsize, pos, &(
dataInt[0]), length );
144 comm->unpack( buf, bsize, pos, &length, 1 );
146 comm->unpack( buf, bsize, pos, &(
dataSizeT[0]), length );
159 os <<
"Device State: " << ds.
ID << std::endl;
160 os <<
" -------------" << std::endl;
161 for(
int i = 0; i < ds.
data.size(); ++i )
162 os <<
" " << i <<
": " << ds.
data[i] << std::endl;
163 os <<
" -------------" << std::endl;
181 int size =
data.size();
183 for(
int i = 0; i < size; ++i )
184 os <<
data[i] <<
" ";
189 for(
int i = 0; i < size; ++i )
195 for(
int i = 0; i < size; ++i )
214 for(
int i = 0; i < size; ++i )
219 for(
int i = 0; i < size; ++i )
224 for(
int i = 0; i < size; ++i )