OMK::Name::hash_compare_Name Struct Reference

a function object for a hash function More...

#include <OMKName.h>

Inheritance diagram for OMK::Name::hash_compare_Name:

Inheritance graph
[legend]
Collaboration diagram for OMK::Name::hash_compare_Name:

Collaboration graph
[legend]
List of all members.

Public Member Functions

size_t operator() (const Name &s) const
bool operator() (const Name &x, const Name &y) const

Detailed Description

a function object for a hash function

Definition at line 229 of file OMKName.h.


Member Function Documentation

size_t OMK::Name::hash_compare_Name::operator() ( const Name s  )  const [inline]

Definition at line 232 of file OMKName.h.

References OMK::Name::getCString().

00233     {
00234       return __gnu_cxx::hash<const char*>()( s.getCString() ) ;
00235     }

bool OMK::Name::hash_compare_Name::operator() ( const Name x,
const Name y 
) const [inline]

Definition at line 237 of file OMKName.h.

References OMK::Name::getString().

00238     {
00239       return x.getString() < y.getString() ;
00240     }


logo OpenMask

Documentation generated on Mon Jun 9 11:46:02 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007