Generated on Wed Mar 19 07:30:12 2008 for Gecode by doxygen 1.5.5

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 (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 126 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 128 of file symbol.cc.

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

Copy constructor.

Definition at line 133 of file symbol.cc.

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

Destructor.

Definition at line 216 of file symbol.cc.


Member Function Documentation

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

Assignment operator.

Definition at line 140 of file symbol.cc.

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

Test if this Symbol is equal to s0.

Definition at line 191 of file symbol.cc.

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

Test if this Symbol is equal to s0.

Definition at line 198 of file symbol.cc.

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

Return if Symbol is empty.

Definition at line 155 of file symbol.cc.

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

Return a copy.

Definition at line 160 of file symbol.cc.

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

Concatenate with s.

Definition at line 172 of file symbol.cc.

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

Hash value according to modulo M.

Definition at line 184 of file symbol.cc.

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

Print this Symbol to os.

Definition at line 205 of file symbol.cc.

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

Return the Symbol as string.

Definition at line 211 of file symbol.cc.


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