shm_message Class Reference

Text message class. More...

#include <shm_message.h>

Collaboration diagram for shm_message:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 shm_message ()
void * operator new (size_t s, shm_allocator &a)
void operator delete (void *p, shm_allocator &a)
int getId ()
int setId (int id)
char * getText (const shm_segment &seg)
int setText (std::string line, const shm_segment &seg, shm_allocator &a)

Public Attributes

int sequence_num
shm_ptr< char > message

Detailed Description

Text message class.

Definition at line 13 of file shm_message.h.


Constructor & Destructor Documentation

shm_message::shm_message (  )  [inline]

Definition at line 17 of file shm_message.h.


Member Function Documentation

void* shm_message::operator new ( size_t  s,
shm_allocator a 
) [inline]

Definition at line 29 of file shm_message.h.

References shm_allocator::alloc().

Here is the call graph for this function:

void shm_message::operator delete ( void *  p,
shm_allocator a 
) [inline]

Definition at line 34 of file shm_message.h.

References shm_allocator::free().

Here is the call graph for this function:

int shm_message::getId (  )  [inline]

Definition at line 39 of file shm_message.h.

References sequence_num.

int shm_message::setId ( int  id  )  [inline]

Definition at line 41 of file shm_message.h.

References sequence_num.

char* shm_message::getText ( const shm_segment seg  )  [inline]

Definition at line 43 of file shm_message.h.

References shm_ptr< T >::get(), and message.

Here is the call graph for this function:

int shm_message::setText ( std::string  line,
const shm_segment seg,
shm_allocator a 
) [inline]

Definition at line 45 of file shm_message.h.

References shm_allocator::alloc(), shm_ptr< T >::get(), message, shm_ptr< T >::off(), and shm_ptr< T >::reset().

Here is the call graph for this function:


Member Data Documentation

int shm_message::sequence_num

Definition at line 50 of file shm_message.h.

Referenced by getId(), main(), and setId().

shm_ptr<char> shm_message::message

Definition at line 53 of file shm_message.h.

Referenced by getText(), main(), and setText().


The documentation for this class was generated from the following file:
Project shmq hosted by   SourceForge.net
Documentation generated on Sat Sep 2 10:07:40 2006 for shmq by   doxygen.org 1.4.6