vpr::GUID::hash Struct Reference

Hash trait/functor for vpr::GUID. More...

#include <GUID.h>

List of all members.

Public Types

enum  { bucket_size = 4, min_buckets = 8 }

Public Member Functions

size_t operator() (const vpr::GUID &guid) const
bool operator() (const vpr::GUID &guid1, const vpr::GUID &guid2) const


Detailed Description

Hash trait/functor for vpr::GUID.

Definition at line 232 of file GUID.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
bucket_size 
min_buckets 

Definition at line 234 of file GUID.h.

00235       {
00236          bucket_size = 4,
00237          min_buckets = 8
00238       };


Member Function Documentation

size_t vpr::GUID::hash::operator() ( const vpr::GUID guid  )  const [inline]

Definition at line 239 of file GUID.h.

References vpr::GUID::_vpr_guid::_packed::l0, vpr::GUID::_vpr_guid::_packed::l1, vpr::GUID::_vpr_guid::_packed::l2, vpr::GUID::_vpr_guid::_packed::l3, vpr::GUID::mGuid, and vpr::GUID::_vpr_guid::packed.

00240       {
00241          return guid.mGuid.packed.l0 + guid.mGuid.packed.l1 +
00242                 guid.mGuid.packed.l2 + guid.mGuid.packed.l3;
00243       }

bool vpr::GUID::hash::operator() ( const vpr::GUID guid1,
const vpr::GUID guid2 
) const [inline]

Definition at line 244 of file GUID.h.

00245       { 
00246          return (guid1 < guid2);
00247       }


The documentation for this struct was generated from the following file:
Generated on Thu Jan 4 10:56:07 2007 for VR Juggler Portable Runtime by  doxygen 1.5.1