#include <ipc.simple.shmem.H>
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 |
SimpleSHMEM::SimpleSHMEM | ( | int | key | ) | [inline] |
virtual SimpleSHMEM::~SimpleSHMEM | ( | ) | [inline, virtual] |
References _local_addr, and _valid.
int SimpleSHMEM::create | ( | int | size, | |
int | perms = 0644 | |||
) | [inline] |
References _id, _key, _local_addr, _size, and _valid.
int SimpleSHMEM::num_attached | ( | ) | [inline] |
bool SimpleSHMEM::lost_attached | ( | ) | [inline] |
References _last_num_attached, and num_attached().
int SimpleSHMEM::attach | ( | ) | [inline] |
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.
int SimpleSHMEM::_key [protected] |
int SimpleSHMEM::_valid [protected] |
Referenced by attach(), create(), remove(), valid(), and ~SimpleSHMEM().
int SimpleSHMEM::_id [protected] |
Referenced by attach(), create(), local_addr(), num_attached(), and remove().
int SimpleSHMEM::_size [protected] |
int SimpleSHMEM::_last_num_attached [protected] |
Referenced by lost_attached().
char* SimpleSHMEM::_local_addr [protected] |
Referenced by attach(), create(), detach(), local_addr(), remove(), and ~SimpleSHMEM().
struct shmid_ds SimpleSHMEM::_shmem_description [read, protected] |
Referenced by num_attached().