Panda3D
Public Member Functions | Static Public Member Functions
sequence_hash< Key, Compare > Class Template Reference

This hash_compare class hashes a string. More...

#include "stl_compares.h"

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

List of all members.

Public Member Functions

size_t operator() (const Key &key) const
 Trivially computes a size_t hash from the components of the string.
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 elements of the indicated key into a running hash.

Detailed Description

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

This hash_compare class hashes a string.

It assumes the Key is a string or provides begin() and end() methods that iterate through Key::value_type.

Definition at line 175 of file stl_compares.h.


Member Function Documentation

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

Adds the elements of the indicated key into a running hash.

Definition at line 205 of file stl_compares.I.

References AddHash::add_hash().

Referenced by CullBinAttrib::get_hash_impl(), and TexGenAttrib::get_hash_impl().

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

Trivially computes a size_t hash from the components of the string.

Reimplemented from stl_hash_compare< Key, Compare >.

Definition at line 193 of file stl_compares.I.


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