#include <SafetyProfileSequence.h>
Public Member Functions | |
Element (CharT *&element, seq_flag_type release) | |
Element (const Element &elt) | |
Element & | operator= (const CharT *rhs) |
Element & | operator= (CharT *rhs) |
Element & | operator= (const ::TAO::String_var< CharT > &rhs) |
Element & | operator= (const ::TAO::String_Manager_T< CharT > &rhs) |
operator const CharT * () const | |
const CharT * | in () const |
CharT *& | inout () |
::TAO::String_out< CharT > | out () const |
CharT * | _retn () |
Private Member Functions | |
Element & | move_from (::TAO::String_var< CharT > &rhs) |
Private Attributes | |
CharT *& | element_ |
seq_flag_type | release_ |
Friends | |
bool | operator>> (DCPS::Serializer &ser, Element elt) |
Definition at line 129 of file SafetyProfileSequence.h.
OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::Element | ( | CharT *& | element, | |
seq_flag_type | release | |||
) | [inline] |
OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::Element | ( | const Element & | elt | ) | [inline] |
CharT* OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::_retn | ( | ) | [inline] |
Definition at line 170 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::element_.
00171 { 00172 CharT* const tmp = element_; 00173 element_ = StringTraits<CharT>::empty(); 00174 return tmp; 00175 }
const CharT* OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::in | ( | ) | const [inline] |
Definition at line 161 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::element_.
00161 { return element_; }
CharT*& OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::inout | ( | ) | [inline] |
Definition at line 162 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::element_.
00162 { return element_; }
Element& OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::move_from | ( | ::TAO::String_var< CharT > & | rhs | ) | [inline, private] |
Definition at line 178 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::element_, and OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::release_.
Referenced by OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::operator=().
00179 { 00180 if (release_) StringTraits<CharT>::free(element_); 00181 element_ = rhs._retn(); 00182 return *this; 00183 }
OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::operator const CharT * | ( | ) | const [inline] |
Definition at line 160 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::element_.
00160 { return element_; }
Element& OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::operator= | ( | const ::TAO::String_Manager_T< CharT > & | rhs | ) | [inline] |
Definition at line 154 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::move_from().
00155 { 00156 ::TAO::String_var<CharT> tmp(rhs); 00157 return move_from(tmp); 00158 }
Element& OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::operator= | ( | const ::TAO::String_var< CharT > & | rhs | ) | [inline] |
Definition at line 148 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::move_from().
00149 { 00150 ::TAO::String_var<CharT> tmp(rhs); 00151 return move_from(tmp); 00152 }
Element& OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::operator= | ( | CharT * | rhs | ) | [inline] |
Definition at line 142 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::move_from().
00143 { 00144 ::TAO::String_var<CharT> tmp(rhs); 00145 return move_from(tmp); 00146 }
Element& OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::operator= | ( | const CharT * | rhs | ) | [inline] |
Definition at line 136 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::move_from().
00137 { 00138 ::TAO::String_var<CharT> tmp(rhs); 00139 return move_from(tmp); 00140 }
::TAO::String_out<CharT> OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::out | ( | ) | const [inline] |
Definition at line 164 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::element_, and OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::release_.
bool operator>> | ( | DCPS::Serializer & | ser, | |
Element | elt | |||
) | [friend] |
Definition at line 188 of file SafetyProfileSequence.h.
00189 { 00190 ser.read_string(elt.out(), StringTraits<CharT>::alloc, 00191 StringTraits<CharT>::free); 00192 return ser.good_bit(); 00193 }
CharT*& OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::element_ [private] |
Definition at line 185 of file SafetyProfileSequence.h.
Referenced by OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::_retn(), OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::in(), OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::inout(), OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::move_from(), OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::operator const CharT *(), and OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::out().
seq_flag_type OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::release_ [private] |
Definition at line 186 of file SafetyProfileSequence.h.
Referenced by OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::move_from(), and OpenDDS::SafetyProfile::StringEltPolicy< CharT >::Element::out().