Panda3D
Public Member Functions | List of all members
indirect_method_hash< Key, Compare > Class Template Reference

This hash_compare class hashes a pointer to a class object. More...

#include "stl_compares.h"

Inheritance diagram for indirect_method_hash< Key, Compare >:
stl_hash_compare< Key, Compare >

Public Member Functions

size_t operator() (const Key &key) const
 Calls the Key's get_hash() method. More...
 
bool operator() (const Key &a, const Key &b) const
 
- Public Member Functions inherited from stl_hash_compare< Key, Compare >
bool is_equal (const Key &a, const Key &b) const
 
size_t operator() (const Key &key) const
 
bool operator() (const Key &a, const Key &b) const
 

Detailed Description

template<class Key, class Compare>
class indirect_method_hash< Key, Compare >

This hash_compare class hashes a pointer to a class object.

It assumes the Key is a pointer to a class that provides a method called get_hash() that returns a size_t.

Definition at line 182 of file stl_compares.h.

Member Function Documentation

◆ operator()()

template<class Key, class Compare >
size_t indirect_method_hash< Key, Compare >::operator() ( const Key &  key) const
inline

Calls the Key's get_hash() method.

Definition at line 193 of file stl_compares.I.


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