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

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

Protected Attributes

int processor
int patch


Detailed Description

Definition at line 41 of file Rebalancer.h.


Constructor & Destructor Documentation

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

Definition at line 47 of file Rebalancer.h.

References processor.

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.

References patch, and processor.

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

static 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   }

static 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(), and hash().

int ProxyUsageKey::processor [protected]

Definition at line 43 of file Rebalancer.h.

Referenced by compare(), hash(), and ProxyUsageKey().


The documentation for this class was generated from the following file:
Generated on Sat Sep 23 01:17:21 2017 for NAMD by  doxygen 1.4.7