SimpleSHMEM Class Reference

#include <ipc.simple.shmem.H>

List of all members.

Public Member Functions

 SimpleSHMEM (int key)
virtual ~SimpleSHMEM ()
int create (int size, int perms=0644)
int num_attached ()
bool lost_attached ()
int attach ()
void detach ()
int valid () const
int size () const
int remove ()
int removed ()
char * local_addr ()

Protected Attributes

int _key
int _valid
int _id
int _size
int _last_num_attached
char * _local_addr
struct shmid_ds _shmem_description


Constructor & Destructor Documentation

SimpleSHMEM::SimpleSHMEM ( int  key  )  [inline]

virtual SimpleSHMEM::~SimpleSHMEM (  )  [inline, virtual]

References _local_addr, and _valid.


Member Function Documentation

int SimpleSHMEM::create ( int  size,
int  perms = 0644 
) [inline]

References _id, _key, _local_addr, _size, and _valid.

int SimpleSHMEM::num_attached (  )  [inline]

References _id, and _shmem_description.

Referenced by lost_attached().

bool SimpleSHMEM::lost_attached (  )  [inline]

int SimpleSHMEM::attach (  )  [inline]

This is really noisy cuz we spin on attach() == 0

References _id, _key, _local_addr, _size, and _valid.

void SimpleSHMEM::detach (  )  [inline]

References _key, and _local_addr.

int SimpleSHMEM::valid (  )  const [inline]

References _valid.

int SimpleSHMEM::size (  )  const [inline]

References _size.

int SimpleSHMEM::remove (  )  [inline]

References _id, _local_addr, and _valid.

int SimpleSHMEM::removed (  )  [inline]

References _key.

char* SimpleSHMEM::local_addr (  )  [inline]

References _id, and _local_addr.


Member Data Documentation

int SimpleSHMEM::_key [protected]

Referenced by attach(), create(), detach(), and removed().

int SimpleSHMEM::_valid [protected]

int SimpleSHMEM::_id [protected]

int SimpleSHMEM::_size [protected]

Referenced by attach(), create(), and size().

Referenced by lost_attached().

char* SimpleSHMEM::_local_addr [protected]

struct shmid_ds SimpleSHMEM::_shmem_description [read, protected]

Referenced by num_attached().


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

Generated on Wed Jan 26 06:31:20 2011 for IS3D by  doxygen 1.5.6