Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Typed_SV_Message Class Template Reference

Defines the header file for the C++ wrapper for System V message queues. More...

#include <Typed_SV_Message.h>

Collaboration diagram for ACE_Typed_SV_Message:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Typed_SV_Message (long type=0, int length=sizeof(T), int max_size=sizeof(T))
 ACE_Typed_SV_Message (const T &data, long type=0, int length=sizeof(T), int max_size=sizeof(T))
 ~ACE_Typed_SV_Message (void)
long type (void) const
 Get the type of the message. More...

void type (long type)
 Set the type of the message. More...

int length (void) const
 Get the length of the message. More...

void length (int l)
 Set the length of the message. More...

int max_size (void) const
 Get the maximum size of the message. More...

void max_size (int m)
 Set the maximum size of the message. More...

T & data (void)
 Get a pointer to the data in the message. More...

void data (const T &data)
 Set a pointer to the data in the message. More...

void dump (void) const
 Dump the state of an object. More...


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...


Private Attributes

long type_
 Type of message. More...

int length_
 Length of this message. More...

int max_
 Maximum length of any message. More...

data_
 Data stored in a message. More...


Detailed Description

template<class T>
class ACE_Typed_SV_Message< T >

Defines the header file for the C++ wrapper for System V message queues.

Definition at line 34 of file Typed_SV_Message.h.


Constructor & Destructor Documentation

template<class T>
ACE_INLINE ACE_Typed_SV_Message< T >::ACE_Typed_SV_Message long    type = 0,
int    length = sizeof(T),
int    max_size = sizeof(T)
 

Definition at line 7 of file Typed_SV_Message.i.

References ACE_TRACE, length, and max_size.

00010   : type_ (t)
00011 {
00012   ACE_TRACE ("ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message");
00013   this->length (l);
00014   this->max_size (m);
00015 }

template<class T>
ACE_INLINE ACE_Typed_SV_Message< T >::ACE_Typed_SV_Message const T &    data,
long    type = 0,
int    length = sizeof(T),
int    max_size = sizeof(T)
 

Definition at line 18 of file Typed_SV_Message.i.

References ACE_TRACE, length, and max_size.

00022   : type_ (t),
00023     data_ (d)
00024 {
00025   ACE_TRACE ("ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message");
00026   this->length (l);
00027   this->max_size (m);
00028 }

template<class T>
ACE_INLINE ACE_Typed_SV_Message< T >::~ACE_Typed_SV_Message void   
 

Definition at line 31 of file Typed_SV_Message.i.

References ACE_TRACE.

00032 {
00033   ACE_TRACE ("ACE_Typed_SV_Message<T>::~ACE_Typed_SV_Message");
00034 }


Member Function Documentation

template<class T>
void ACE_Typed_SV_Message< T >::data const T &    data
 

Set a pointer to the data in the message.

Definition at line 86 of file Typed_SV_Message.i.

References ACE_TRACE, and data_.

00087 {
00088   ACE_TRACE ("ACE_Typed_SV_Message<T>::data");
00089   this->data_ = d;
00090 }

template<class T>
T & ACE_Typed_SV_Message< T >::data void   
 

Get a pointer to the data in the message.

Definition at line 79 of file Typed_SV_Message.i.

References ACE_TRACE, and data_.

00080 {
00081   ACE_TRACE ("ACE_Typed_SV_Message<T>::data");
00082   return this->data_;
00083 }

template<class T>
void ACE_Typed_SV_Message< T >::dump void    const
 

Dump the state of an object.

Definition at line 21 of file Typed_SV_Message.cpp.

References ACE_TRACE.

00022 {
00023   ACE_TRACE ("ACE_Typed_SV_Message<T>::dump");
00024 }

template<class T>
ACE_INLINE void ACE_Typed_SV_Message< T >::length int    l
 

Set the length of the message.

Definition at line 58 of file Typed_SV_Message.i.

References ACE_TRACE, data_, length_, and type_.

00059 {
00060   ACE_TRACE ("ACE_Typed_SV_Message<T>::length");
00061   this->length_ = len + (sizeof *this - (sizeof this->type_ + sizeof this->data_));
00062 }

template<class T>
ACE_INLINE int ACE_Typed_SV_Message< T >::length void    const
 

Get the length of the message.

Definition at line 51 of file Typed_SV_Message.i.

References ACE_TRACE, and length_.

Referenced by ACE_Typed_SV_Message, ACE_Typed_SV_Message_Queue::recv, and ACE_Typed_SV_Message_Queue::send.

00052 {
00053   ACE_TRACE ("ACE_Typed_SV_Message<T>::length");
00054   return this->length_;
00055 }

template<class T>
ACE_INLINE void ACE_Typed_SV_Message< T >::max_size int    m
 

Set the maximum size of the message.

Definition at line 72 of file Typed_SV_Message.i.

References ACE_TRACE, data_, max_, and type_.

00073 {
00074   ACE_TRACE ("ACE_Typed_SV_Message<T>::max_size");
00075   this->max_ = m + (sizeof *this - (sizeof this->type_ + sizeof this->data_));
00076 }

template<class T>
ACE_INLINE int ACE_Typed_SV_Message< T >::max_size void    const
 

Get the maximum size of the message.

Definition at line 65 of file Typed_SV_Message.i.

References ACE_TRACE, and max_.

Referenced by ACE_Typed_SV_Message, and ACE_Typed_SV_Message_Queue::recv.

00066 {
00067   ACE_TRACE ("ACE_Typed_SV_Message<T>::max_size");
00068   return this->max_;
00069 }

template<class T>
ACE_INLINE void ACE_Typed_SV_Message< T >::type long    type
 

Set the type of the message.

Definition at line 44 of file Typed_SV_Message.i.

References ACE_TRACE, and type_.

00045 {
00046   ACE_TRACE ("ACE_Typed_SV_Message<T>::type");
00047   this->type_ = t;
00048 }

template<class T>
ACE_INLINE long ACE_Typed_SV_Message< T >::type void    const
 

Get the type of the message.

Definition at line 37 of file Typed_SV_Message.i.

References ACE_TRACE, and type_.

Referenced by ACE_Typed_SV_Message_Queue::recv.

00038 {
00039   ACE_TRACE ("ACE_Typed_SV_Message<T>::type");
00040   return this->type_;
00041 }


Member Data Documentation

template<class T>
ACE_Typed_SV_Message::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Definition at line 75 of file Typed_SV_Message.h.

template<class T>
T ACE_Typed_SV_Message::data_ [private]
 

Data stored in a message.

Definition at line 88 of file Typed_SV_Message.h.

Referenced by data, length, and max_size.

template<class T>
int ACE_Typed_SV_Message::length_ [private]
 

Length of this message.

Definition at line 82 of file Typed_SV_Message.h.

Referenced by length.

template<class T>
int ACE_Typed_SV_Message::max_ [private]
 

Maximum length of any message.

Definition at line 85 of file Typed_SV_Message.h.

Referenced by max_size.

template<class T>
long ACE_Typed_SV_Message::type_ [private]
 

Type of message.

Definition at line 79 of file Typed_SV_Message.h.

Referenced by length, max_size, and type.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:58:48 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002