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

Gecode::Support::Pointer< P > Class Template Reference

List of all members.


Detailed Description

template<class P>
class Gecode::Support::Pointer< P >

Pointer wrapper class to make pointers hashable.

Definition at line 83 of file map.icc.


Public Member Functions

 Pointer (P *p0)
 Constructor.
P * operator() (void)
 Cast.
bool operator== (const Pointer< P > &p0) const
 Comparison.
int hash (int m) const
 Hash function.

Protected Attributes

P * p
 The actual pointer.

Constructor & Destructor Documentation

template<class P>
Gecode::Support::Pointer< P >::Pointer ( P *  p0  )  [inline]

Constructor.

Definition at line 89 of file map.icc.


Member Function Documentation

template<class P>
P* Gecode::Support::Pointer< P >::operator() ( void   )  [inline]

Cast.

Definition at line 91 of file map.icc.

template<class P>
bool Gecode::Support::Pointer< P >::operator== ( const Pointer< P > &  p0  )  const [inline]

Comparison.

Definition at line 93 of file map.icc.

template<class P>
int Gecode::Support::Pointer< P >::hash ( int  m  )  const [inline]

Hash function.

Definition at line 97 of file map.icc.


Member Data Documentation

template<class P>
P* Gecode::Support::Pointer< P >::p [protected]

The actual pointer.

Definition at line 86 of file map.icc.


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