00001 /* -*- C++ -*- */ 00002 // $Id: Typed_SV_Message.i,v 1.1.1.2 2001/12/04 14:33:11 chad Exp $ 00003 00004 // Typed_SV_Message.i 00005 00006 template <class T> ACE_INLINE 00007 ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (long t, 00008 int l, 00009 int m) 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 } 00016 00017 template <class T> ACE_INLINE 00018 ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (const T &d, 00019 long t, 00020 int l, 00021 int m) 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 } 00029 00030 template <class T> ACE_INLINE 00031 ACE_Typed_SV_Message<T>::~ACE_Typed_SV_Message (void) 00032 { 00033 ACE_TRACE ("ACE_Typed_SV_Message<T>::~ACE_Typed_SV_Message"); 00034 } 00035 00036 template <class T> ACE_INLINE long 00037 ACE_Typed_SV_Message<T>::type (void) const 00038 { 00039 ACE_TRACE ("ACE_Typed_SV_Message<T>::type"); 00040 return this->type_; 00041 } 00042 00043 template <class T> ACE_INLINE void 00044 ACE_Typed_SV_Message<T>::type (long t) 00045 { 00046 ACE_TRACE ("ACE_Typed_SV_Message<T>::type"); 00047 this->type_ = t; 00048 } 00049 00050 template <class T> ACE_INLINE int 00051 ACE_Typed_SV_Message<T>::length (void) const 00052 { 00053 ACE_TRACE ("ACE_Typed_SV_Message<T>::length"); 00054 return this->length_; 00055 } 00056 00057 template <class T> ACE_INLINE void 00058 ACE_Typed_SV_Message<T>::length (int len) 00059 { 00060 ACE_TRACE ("ACE_Typed_SV_Message<T>::length"); 00061 this->length_ = len + (sizeof *this - (sizeof this->type_ + sizeof this->data_)); 00062 } 00063 00064 template <class T> ACE_INLINE int 00065 ACE_Typed_SV_Message<T>::max_size (void) const 00066 { 00067 ACE_TRACE ("ACE_Typed_SV_Message<T>::max_size"); 00068 return this->max_; 00069 } 00070 00071 template <class T> ACE_INLINE void 00072 ACE_Typed_SV_Message<T>::max_size (int m) 00073 { 00074 ACE_TRACE ("ACE_Typed_SV_Message<T>::max_size"); 00075 this->max_ = m + (sizeof *this - (sizeof this->type_ + sizeof this->data_)); 00076 } 00077 00078 template <class T> T & 00079 ACE_Typed_SV_Message<T>::data (void) 00080 { 00081 ACE_TRACE ("ACE_Typed_SV_Message<T>::data"); 00082 return this->data_; 00083 } 00084 00085 template <class T> void 00086 ACE_Typed_SV_Message<T>::data (const T &d) 00087 { 00088 ACE_TRACE ("ACE_Typed_SV_Message<T>::data"); 00089 this->data_ = d; 00090 } 00091
1.2.14 written by Dimitri van Heesch,
© 1997-2002