NAMD
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ProxyUsageKey Class Reference

#include <Rebalancer.h>

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 patch, and processor.

47  {
48  this->processor = pe;
49  this->patch = patch;
50  }

Member Function Documentation

int ProxyUsageKey::compare ( const ProxyUsageKey in) const
inline

Definition at line 60 of file Rebalancer.h.

References patch, and processor.

60  {
61  if ((in.patch == patch) && (in.processor == processor))
62  return 1;
63 
64  return 0;
65  }
CkHashCode ProxyUsageKey::hash ( void  ) const
inline

Definition at line 52 of file Rebalancer.h.

References patch, and processor.

52  {
53  return (patch << 16) + processor;
54  }
static int ProxyUsageKey::staticCompare ( const void a,
const void b,
size_t  size 
)
inlinestatic

Definition at line 67 of file Rebalancer.h.

67  {
68  return ((ProxyUsageKey *)a)->compare(* (ProxyUsageKey *)b);
69  }
static CkHashCode ProxyUsageKey::staticHash ( const void x,
size_t  size 
)
inlinestatic

Definition at line 56 of file Rebalancer.h.

56  {
57  return ((ProxyUsageKey *)x)->hash();
58  }
gridSize x

Member Data Documentation

int ProxyUsageKey::patch
protected

Definition at line 44 of file Rebalancer.h.

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

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: