1 #ifndef SEARCHPOINTER_H
2 #define SEARCHPOINTER_H
4 #include "common/hash.h"
10 SearchPointer(const T
*ptr
) : _ptr(ptr
) {}
12 const T
*data() const {return _ptr
;}
13 bool operator==(const SearchPointer
<T
> &other
) const
14 {return *data() == *(other
.data());}
21 inline HASH_T
qHash(const SearchPointer
<T
> &t
)
23 return ::qHash(*(t
.data()));
26 #endif // SEARCHPOINTER_H