Gecode::Support::Pointer< P > Class Template Reference
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] |
Member Function Documentation
template<class P>
P* Gecode::Support::Pointer< P >::operator() | ( | void | ) | [inline] |
template<class P>
bool Gecode::Support::Pointer< P >::operator== | ( | const Pointer< P > & | p0 | ) | const [inline] |
template<class P>
int Gecode::Support::Pointer< P >::hash | ( | int | m | ) | const [inline] |
Member Data Documentation
template<class P>
P* Gecode::Support::Pointer< P >::p [protected] |
The documentation for this class was generated from the following file:
- gecode/support/map.icc (Revision: 5654)