64 void put(
unsigned int i);
70 unsigned int get(
void);
202 e.
put(
static_cast<unsigned int>(i));
212 e.
put(
static_cast<unsigned int>(i));
222 e.
put(
static_cast<unsigned int>(i));
227 e.
put(
static_cast<unsigned int>(i));
232 for (
size_t i=0; i<
sizeof(float); i++)
233 e.
put(
static_cast<unsigned int>(
reinterpret_cast<char*
>(&d)[i]));
238 for (
size_t i=0; i<
sizeof(double); i++)
239 e.
put(
static_cast<unsigned int>(
reinterpret_cast<char*
>(&d)[i]));
250 i =
static_cast<int>(e.
get());
255 i =
static_cast<unsigned short>(e.
get());
260 i =
static_cast<short>(e.
get());
265 i =
static_cast<unsigned char>(e.
get());
270 i =
static_cast<char>(e.
get());
280 char* cd =
reinterpret_cast<char*
>(&d);
281 for (
size_t i=0; i<
sizeof(float); i++)
282 cd[i] =
static_cast<char>(e.
get());
287 char* cd =
reinterpret_cast<char*
>(&d);
288 for (
size_t i=0; i<
sizeof(double); i++)
289 cd[i] =
static_cast<char>(e.
get());
void put(unsigned int i)
Add i to the contents.
int size(void) const
Return size.
Archive(void)
Construct empty representation.
~Archive(void)
Destructor.
unsigned int operator[](int i) const
Return array element i.
Archive & operator=(const Archive &e)
Assignment operator.
unsigned int get(void)
Return next element to read.
#define GECODE_KERNEL_EXPORT
Gecode toplevel namespace
Archive & operator<<(Archive &e, FloatNumBranch nl)
Archive & operator>>(Archive &e, FloatNumBranch &nl)