COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Attributes | Static Private Attributes | Friends | List of all members
covise::SharedMemory Class Reference

#include <covise_shm.h>

Collaboration diagram for covise::SharedMemory:
Collaboration graph
[legend]

Public Member Functions

 SharedMemory ()
 
 SharedMemory (int shm_key, shmSizeType shm_size, int noDelete=0)
 
 SharedMemory (int *shm_key, shmSizeType shm_size)
 
 ~SharedMemory ()
 
voidget_pointer (int no)
 
voidget_pointer ()
 
SharedMemoryget_next_shm ()
 
int get_seq_no ()
 
int is_attached ()
 
int detach ()
 
int get_key ()
 
shmSizeType get_size ()
 
void get_shmlist (int *)
 
void print ()
 

Static Public Member Functions

static int num_attached ()
 

Static Public Attributes

static shmCallbackshmC = NULL
 

Private Types

enum  state { attached, detached, invalid, valid }
 

Private Attributes

class SharedMemorynext
 
int shmfd
 
int shmid
 
shmSizeType size
 
char * data
 
state shmstate
 
int key
 
int seq_no
 
int noDelete
 

Static Private Attributes

static class SharedMemory ** shm_array = 0L
 
static List< SharedMemory > * shmlist = 0L
 
static int global_seq_no = 0
 

Friends

class DataManagerProcess
 
SHMEXPORT SharedMemoryget_shared_memory ()
 

Member Enumeration Documentation

Enumerator
attached 
detached 
invalid 
valid 

Constructor & Destructor Documentation

covise::SharedMemory::SharedMemory ( )
inline
SharedMemory::SharedMemory ( int  shm_key,
shmSizeType  shm_size,
int  noDelete = 0 
)
SharedMemory::SharedMemory ( int *  shm_key,
shmSizeType  shm_size 
)
SharedMemory::~SharedMemory ( )

Member Function Documentation

int SharedMemory::detach ( )
int covise::SharedMemory::get_key ( )
inline
SharedMemory* covise::SharedMemory::get_next_shm ( )
inline
void* covise::SharedMemory::get_pointer ( int  no)
inline
void* covise::SharedMemory::get_pointer ( )
inline
int covise::SharedMemory::get_seq_no ( )
inline
void SharedMemory::get_shmlist ( int *  ptr)
shmSizeType covise::SharedMemory::get_size ( )
inline
int covise::SharedMemory::is_attached ( )
inline
static int covise::SharedMemory::num_attached ( )
inlinestatic
void covise::SharedMemory::print ( void  )
inline

Friends And Related Function Documentation

friend class DataManagerProcess
friend
SHMEXPORT SharedMemory* get_shared_memory ( )
friend

Member Data Documentation

char* covise::SharedMemory::data
private
int SharedMemory::global_seq_no = 0
staticprivate
int covise::SharedMemory::key
private
class SharedMemory* covise::SharedMemory::next
private
int covise::SharedMemory::noDelete
private
int covise::SharedMemory::seq_no
private
SharedMemory ** SharedMemory::shm_array = 0L
staticprivate
shmCallback * SharedMemory::shmC = NULL
static
int covise::SharedMemory::shmfd
private
int covise::SharedMemory::shmid
private
List< SharedMemory > * SharedMemory::shmlist = 0L
staticprivate
state covise::SharedMemory::shmstate
private
shmSizeType covise::SharedMemory::size
private

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