Typed_SV_Message.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Typed_SV_Message.inl,v 4.3 2005/10/28 23:55:10 ossama Exp
00004 
00005 #include "ace/config-all.h"
00006 #include "ace/Global_Macros.h"
00007 
00008 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00009 
00010 template <class T> ACE_INLINE
00011 ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (long t,
00012                                                int l,
00013                                                int m)
00014   : type_ (t)
00015 {
00016   ACE_TRACE ("ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message");
00017   this->length (l);
00018   this->max_size (m);
00019 }
00020 
00021 template <class T> ACE_INLINE
00022 ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (const T &d,
00023                                                long t,
00024                                                int l,
00025                                                int m)
00026   : type_ (t),
00027     data_ (d)
00028 {
00029   ACE_TRACE ("ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message");
00030   this->length (l);
00031   this->max_size (m);
00032 }
00033 
00034 template <class T> ACE_INLINE
00035 ACE_Typed_SV_Message<T>::~ACE_Typed_SV_Message (void)
00036 {
00037   ACE_TRACE ("ACE_Typed_SV_Message<T>::~ACE_Typed_SV_Message");
00038 }
00039 
00040 template <class T> ACE_INLINE long
00041 ACE_Typed_SV_Message<T>::type (void) const
00042 {
00043   ACE_TRACE ("ACE_Typed_SV_Message<T>::type");
00044   return this->type_;
00045 }
00046 
00047 template <class T> ACE_INLINE void
00048 ACE_Typed_SV_Message<T>::type (long t)
00049 {
00050   ACE_TRACE ("ACE_Typed_SV_Message<T>::type");
00051   this->type_ = t;
00052 }
00053 
00054 template <class T> ACE_INLINE int
00055 ACE_Typed_SV_Message<T>::length (void) const
00056 {
00057   ACE_TRACE ("ACE_Typed_SV_Message<T>::length");
00058   return this->length_;
00059 }
00060 
00061 template <class T> ACE_INLINE void
00062 ACE_Typed_SV_Message<T>::length (int len)
00063 {
00064   ACE_TRACE ("ACE_Typed_SV_Message<T>::length");
00065   this->length_ = len + (sizeof *this - (sizeof this->type_ + sizeof this->data_));
00066 }
00067 
00068 template <class T> ACE_INLINE int
00069 ACE_Typed_SV_Message<T>::max_size (void) const
00070 {
00071   ACE_TRACE ("ACE_Typed_SV_Message<T>::max_size");
00072   return this->max_;
00073 }
00074 
00075 template <class T> ACE_INLINE void
00076 ACE_Typed_SV_Message<T>::max_size (int m)
00077 {
00078   ACE_TRACE ("ACE_Typed_SV_Message<T>::max_size");
00079   this->max_ = m + (sizeof *this - (sizeof this->type_ + sizeof this->data_));
00080 }
00081 
00082 template <class T> T &
00083 ACE_Typed_SV_Message<T>::data (void)
00084 {
00085   ACE_TRACE ("ACE_Typed_SV_Message<T>::data");
00086   return this->data_;
00087 }
00088 
00089 template <class T> void
00090 ACE_Typed_SV_Message<T>::data (const T &d)
00091 {
00092   ACE_TRACE ("ACE_Typed_SV_Message<T>::data");
00093   this->data_ = d;
00094 }
00095 
00096 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:42:08 2006 for ACE by doxygen 1.3.6