Generated on Tue Apr 18 10:23:10 2017 for Gecode by doxygen 1.6.3

Gecode::Archive Class Reference

Archive representation More...

#include <archive.hpp>

List of all members.

Public Member Functions

 Archive (void)
 Construct empty representation.
 ~Archive (void)
 Destructor.
 Archive (const Archive &e)
 Copy constructor.
Archiveoperator= (const Archive &e)
 Assignment operator.
void put (unsigned int i)
 Add i to the contents.
int size (void) const
 Return size.
unsigned int operator[] (int i) const
 Return array element i.
unsigned int get (void)
 Return next element to read.

Related Functions

(Note that these are not member functions.)



Archiveoperator<< (Archive &e, unsigned int i)
Archiveoperator<< (Archive &e, int i)
Archiveoperator<< (Archive &e, unsigned short i)
Archiveoperator<< (Archive &e, short i)
Archiveoperator<< (Archive &e, unsigned char i)
Archiveoperator<< (Archive &e, char i)
Archiveoperator<< (Archive &e, bool i)
Archiveoperator<< (Archive &e, float d)
Archiveoperator<< (Archive &e, double d)
Archiveoperator>> (Archive &e, unsigned int &i)
Archiveoperator>> (Archive &e, int &i)
Archiveoperator>> (Archive &e, unsigned short &i)
Archiveoperator>> (Archive &e, short &i)
Archiveoperator>> (Archive &e, unsigned char &i)
Archiveoperator>> (Archive &e, char &i)
Archiveoperator>> (Archive &e, bool &i)
Archiveoperator>> (Archive &e, float &d)
Archiveoperator>> (Archive &e, double &d)

Detailed Description

Archive representation

An Archive is an array of unsigned integers, used as an external representation of internal data structures (such as Choice objects).

Definition at line 45 of file archive.hpp.


Constructor & Destructor Documentation

Gecode::Archive::Archive ( void   )  [inline]

Construct empty representation.

Definition at line 174 of file archive.hpp.

Gecode::Archive::~Archive ( void   ) 

Destructor.

Definition at line 64 of file archive.cpp.

Gecode::Archive::Archive ( const Archive e  ) 

Copy constructor.

Definition at line 49 of file archive.cpp.


Member Function Documentation

Archive & Gecode::Archive::operator= ( const Archive e  ) 

Assignment operator.

Definition at line 55 of file archive.cpp.

void Gecode::Archive::put ( unsigned int  i  )  [inline]

Add i to the contents.

Definition at line 177 of file archive.hpp.

int Gecode::Archive::size ( void   )  const [inline]

Return size.

Definition at line 184 of file archive.hpp.

unsigned int Gecode::Archive::operator[] ( int  i  )  const [inline]

Return array element i.

Definition at line 187 of file archive.hpp.

unsigned int Gecode::Archive::get ( void   )  [inline]

Return next element to read.

Definition at line 193 of file archive.hpp.


Friends And Related Function Documentation

Archive & operator<< ( Archive e,
unsigned int  i 
) [related]

Add i to the end of e

Definition at line 199 of file archive.hpp.

Archive & operator<< ( Archive e,
int  i 
) [related]

Add i to the end of e

Definition at line 204 of file archive.hpp.

Archive & operator<< ( Archive e,
unsigned short  i 
) [related]

Add i to the end of e

Definition at line 209 of file archive.hpp.

Archive & operator<< ( Archive e,
short  i 
) [related]

Add i to the end of e

Definition at line 214 of file archive.hpp.

Archive & operator<< ( Archive e,
unsigned char  i 
) [related]

Add i to the end of e

Definition at line 219 of file archive.hpp.

Archive & operator<< ( Archive e,
char  i 
) [related]

Add i to the end of e

Definition at line 224 of file archive.hpp.

Archive & operator<< ( Archive e,
bool  i 
) [related]

Add i to the end of e

Definition at line 229 of file archive.hpp.

Archive & operator<< ( Archive e,
float  d 
) [related]

Add d to the end of e

Definition at line 234 of file archive.hpp.

Archive & operator<< ( Archive e,
double  d 
) [related]

Add d to the end of e

Definition at line 240 of file archive.hpp.

Archive & operator>> ( Archive e,
unsigned int &  i 
) [related]

Read next element from e into i

Definition at line 247 of file archive.hpp.

Archive & operator>> ( Archive e,
int &  i 
) [related]

Read next element from e into i

Definition at line 252 of file archive.hpp.

Archive & operator>> ( Archive e,
unsigned short &  i 
) [related]

Read next element from e into i

Definition at line 257 of file archive.hpp.

Archive & operator>> ( Archive e,
short &  i 
) [related]

Read next element from e into i

Definition at line 262 of file archive.hpp.

Archive & operator>> ( Archive e,
unsigned char &  i 
) [related]

Read next element from e into i

Definition at line 267 of file archive.hpp.

Archive & operator>> ( Archive e,
char &  i 
) [related]

Read next element from e into i

Definition at line 272 of file archive.hpp.

Archive & operator>> ( Archive e,
bool &  i 
) [related]

Read next element from e into i

Definition at line 277 of file archive.hpp.

Archive & operator>> ( Archive e,
float &  d 
) [related]

Read next element from e into d

Definition at line 282 of file archive.hpp.

Archive & operator>> ( Archive e,
double &  d 
) [related]

Read next element from e into d

Definition at line 289 of file archive.hpp.


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