Generated on Thu Apr 5 2018 19:44:19 for Gecode by doxygen 1.8.13
Gecode::Archive Class Reference

Archive representation More...

#include <archive.hpp>

Public Member Functions

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

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 46 of file archive.hpp.

Constructor & Destructor Documentation

◆ Archive() [1/2]

Gecode::Archive::Archive ( void  )
inline

Construct empty representation.

Definition at line 175 of file archive.hpp.

◆ ~Archive()

Gecode::Archive::~Archive ( void  )

Destructor.

Definition at line 64 of file archive.cpp.

◆ Archive() [2/2]

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

Copy constructor.

Definition at line 49 of file archive.cpp.

Member Function Documentation

◆ operator=()

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

Assignment operator.

Definition at line 55 of file archive.cpp.

◆ put()

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

Add i to the contents.

Definition at line 178 of file archive.hpp.

◆ size()

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

Return size.

Definition at line 185 of file archive.hpp.

◆ operator[]()

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

Return array element i.

Definition at line 188 of file archive.hpp.

◆ get()

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

Return next element to read.

Definition at line 194 of file archive.hpp.

Friends And Related Function Documentation

◆ operator<<() [1/9]

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

Add i to the end of e

Definition at line 200 of file archive.hpp.

◆ operator<<() [2/9]

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

Add i to the end of e

Definition at line 205 of file archive.hpp.

◆ operator<<() [3/9]

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

Add i to the end of e

Definition at line 210 of file archive.hpp.

◆ operator<<() [4/9]

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

Add i to the end of e

Definition at line 215 of file archive.hpp.

◆ operator<<() [5/9]

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

Add i to the end of e

Definition at line 220 of file archive.hpp.

◆ operator<<() [6/9]

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

Add i to the end of e

Definition at line 225 of file archive.hpp.

◆ operator<<() [7/9]

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

Add i to the end of e

Definition at line 230 of file archive.hpp.

◆ operator<<() [8/9]

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

Add d to the end of e

Definition at line 235 of file archive.hpp.

◆ operator<<() [9/9]

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

Add d to the end of e

Definition at line 241 of file archive.hpp.

◆ operator>>() [1/9]

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

Read next element from e into i

Definition at line 248 of file archive.hpp.

◆ operator>>() [2/9]

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

Read next element from e into i

Definition at line 253 of file archive.hpp.

◆ operator>>() [3/9]

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

Read next element from e into i

Definition at line 258 of file archive.hpp.

◆ operator>>() [4/9]

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

Read next element from e into i

Definition at line 263 of file archive.hpp.

◆ operator>>() [5/9]

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

Read next element from e into i

Definition at line 268 of file archive.hpp.

◆ operator>>() [6/9]

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

Read next element from e into i

Definition at line 273 of file archive.hpp.

◆ operator>>() [7/9]

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

Read next element from e into i

Definition at line 278 of file archive.hpp.

◆ operator>>() [8/9]

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

Read next element from e into d

Definition at line 283 of file archive.hpp.

◆ operator>>() [9/9]

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

Read next element from e into d

Definition at line 290 of file archive.hpp.


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