Panda3D
Public Member Functions | Static Public Member Functions

integer_hash< Key, Compare > Class Template Reference

This is the default hash_compare class, which assumes the Key is a size_t value or can be implicitly converted to a size_t value (for instance, via a size_t typecast operator). More...

#include "stl_compares.h"

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

List of all members.

Public Member Functions

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

Static Public Member Functions

static size_t add_hash (size_t start, const Key &key)
 Adds the indicated key into a running hash.

Detailed Description

template<class Key, class Compare = less<Key>>
class integer_hash< Key, Compare >

This is the default hash_compare class, which assumes the Key is a size_t value or can be implicitly converted to a size_t value (for instance, via a size_t typecast operator).

It is the same as the system-provided hash_compare.

Definition at line 138 of file stl_compares.h.


Member Function Documentation

template<class Key , class Compare >
size_t integer_hash< Key, Compare >::add_hash ( size_t  start,
const Key &  key 
) [inline, static]

Adds the indicated key into a running hash.

Definition at line 122 of file stl_compares.I.

References AddHash::add_hash().

Referenced by RenderState::get_hash().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations