PPL Logo

CkViewableID Class Reference

A CkViewableID uniquely identifies a CkViewable across processors. More...

#include <ckviewable.h>

Collaboration diagram for CkViewableID:

Collaboration graph
[legend]

Public Types

enum  { nId = 4 }

Public Member Functions

 CkViewableID ()
 CkViewableID (int len, const int *src)
unsigned int hash (void) const
int compare (const CkViewableID &v) const
void pup (PUP::er &p)

Static Public Member Functions

static unsigned int staticHash (const void *key, size_t keyLen)
static int staticCompare (const void *a, const void *b, size_t keyLen)

Data Fields

int id [nId]

Detailed Description

A CkViewableID uniquely identifies a CkViewable across processors.

The first 3 ints of the id are the array index; the last int is the viewable inside that array index. This object can be used in a CkHashtable.

Definition at line 20 of file ckviewable.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
nId 

Definition at line 22 of file ckviewable.h.


Constructor & Destructor Documentation

CkViewableID::CkViewableID (  )  [inline]

Definition at line 25 of file ckviewable.h.

References nId.

CkViewableID::CkViewableID ( int  len,
const int src 
) [inline]

Definition at line 26 of file ckviewable.h.

References nId.


Member Function Documentation

unsigned int CkViewableID::hash ( void   )  const [inline]

Definition at line 33 of file ckviewable.h.

int CkViewableID::compare ( const CkViewableID v  )  const [inline]

Definition at line 36 of file ckviewable.h.

References id, and nId.

static unsigned int CkViewableID::staticHash ( const void *  key,
size_t  keyLen 
) [inline, static]

Definition at line 40 of file ckviewable.h.

static int CkViewableID::staticCompare ( const void *  a,
const void *  b,
size_t  keyLen 
) [inline, static]

Definition at line 43 of file ckviewable.h.

void CkViewableID::pup ( PUP::er p  )  [inline]

Definition at line 47 of file ckviewable.h.

References nId, and p.


Field Documentation


The documentation for this class was generated from the following file:

Generated on Mon Sep 21 08:21:43 2020 for Charm++ by  doxygen 1.5.5