Generated on Mon Aug 25 11:35:54 2008 for Gecode by doxygen 1.5.6

Gecode::Support::Symbol Class Reference

List of all members.


Detailed Description

Immutable Symbols.

Definition at line 49 of file symbol.icc.


Public Member Functions

 Symbol (void)
 Construct empty Symbol.
 Symbol (const char *s0, bool copy=false)
 Construct Symbol from s0, make a copy if copy is true.
 Symbol (int i)
 Construct Symbol from i.
 Symbol (unsigned int i)
 Construct Symbol from i.
 Symbol (const Symbol &s0)
 Copy constructor.
const Symboloperator= (const Symbol &s0)
 Assignment operator.
bool operator== (const Symbol &s0) const
 Test if this Symbol is equal to s0.
bool operator== (const char *s0) const
 Test if this Symbol is equal to s0.
bool empty (void) const
 Return if Symbol is empty.
Symbol copy (void) const
 Return a copy.
Symboloperator+= (const Symbol &s)
 Concatenate with s.
int hash (int m) const
 Hash value according to modulo M.
std::ostream & print (std::ostream &os) const
 Print this Symbol to os.
std::string toString (void) const
 Return the Symbol as string.
 ~Symbol (void)
 Destructor.

Constructor & Destructor Documentation

Gecode::Support::Symbol::Symbol ( void   ) 

Construct empty Symbol.

Definition at line 127 of file symbol.cc.

Gecode::Support::Symbol::Symbol ( const char *  s0,
bool  copy = false 
)

Construct Symbol from s0, make a copy if copy is true.

Definition at line 129 of file symbol.cc.

Gecode::Support::Symbol::Symbol ( int  i  ) 

Construct Symbol from i.

Definition at line 134 of file symbol.cc.

Gecode::Support::Symbol::Symbol ( unsigned int  i  ) 

Construct Symbol from i.

Definition at line 141 of file symbol.cc.

Gecode::Support::Symbol::Symbol ( const Symbol s0  ) 

Copy constructor.

Definition at line 148 of file symbol.cc.

Gecode::Support::Symbol::~Symbol ( void   ) 

Destructor.

Definition at line 231 of file symbol.cc.


Member Function Documentation

const Symbol & Gecode::Support::Symbol::operator= ( const Symbol s0  ) 

Assignment operator.

Definition at line 155 of file symbol.cc.

bool Gecode::Support::Symbol::operator== ( const Symbol s0  )  const

Test if this Symbol is equal to s0.

Definition at line 206 of file symbol.cc.

bool Gecode::Support::Symbol::operator== ( const char *  s0  )  const

Test if this Symbol is equal to s0.

Definition at line 213 of file symbol.cc.

bool Gecode::Support::Symbol::empty ( void   )  const

Return if Symbol is empty.

Definition at line 170 of file symbol.cc.

Symbol Gecode::Support::Symbol::copy ( void   )  const

Return a copy.

Definition at line 175 of file symbol.cc.

Symbol & Gecode::Support::Symbol::operator+= ( const Symbol s  ) 

Concatenate with s.

Definition at line 187 of file symbol.cc.

int Gecode::Support::Symbol::hash ( int  m  )  const

Hash value according to modulo M.

Definition at line 199 of file symbol.cc.

std::ostream & Gecode::Support::Symbol::print ( std::ostream &  os  )  const

Print this Symbol to os.

Definition at line 220 of file symbol.cc.

std::string Gecode::Support::Symbol::toString ( void   )  const

Return the Symbol as string.

Definition at line 226 of file symbol.cc.


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