Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ProxyUsageKey Class Reference

#include <Rebalancer.h>

List of all members.

Public Member Functions

 ProxyUsageKey (int pe, int patch)
CkHashCode hash (void) const
int compare (const ProxyUsageKey &in) const

Static Public Member Functions

CkHashCode staticHash (const void *x, size_t size)
int staticCompare (const void *a, const void *b, size_t size)

Protected Attributes

int processor
int patch


Constructor & Destructor Documentation

ProxyUsageKey::ProxyUsageKey int  pe,
int  patch
[inline]
 

Definition at line 47 of file Rebalancer.h.

00047                                     {
00048     this->processor = pe;
00049     this->patch     = patch;
00050   }


Member Function Documentation

int ProxyUsageKey::compare const ProxyUsageKey in  )  const [inline]
 

Definition at line 60 of file Rebalancer.h.

References patch, and processor.

00060                                               {
00061     if ((in.patch == patch) && (in.processor == processor))
00062       return 1;
00063     
00064     return 0;
00065   }

CkHashCode ProxyUsageKey::hash void   )  const [inline]
 

Definition at line 52 of file Rebalancer.h.

00052                                {
00053     return (patch << 16) + processor;
00054   }

int ProxyUsageKey::staticCompare const void *  a,
const void *  b,
size_t  size
[inline, static]
 

Definition at line 67 of file Rebalancer.h.

00067                                                                        {
00068     return ((ProxyUsageKey *)a)->compare(* (ProxyUsageKey *)b);
00069   }

CkHashCode ProxyUsageKey::staticHash const void *  x,
size_t  size
[inline, static]
 

Definition at line 56 of file Rebalancer.h.

00056                                                              {
00057     return ((ProxyUsageKey *)x)->hash();
00058   }


Member Data Documentation

int ProxyUsageKey::patch [protected]
 

Definition at line 44 of file Rebalancer.h.

Referenced by compare().

int ProxyUsageKey::processor [protected]
 

Definition at line 43 of file Rebalancer.h.

Referenced by compare().


The documentation for this class was generated from the following file:
Generated on Sun May 19 04:07:55 2013 for NAMD by  doxygen 1.3.9.1