?? transportationtype.i
字號:
/***********************************************************************
IEEE 1516.1 High Level Architecture Interface Specification C++ API
File: RTI/TransportationType.i
***********************************************************************/
RTI_INLINE
RTI::TransportationType::
TransportationType(unsigned transportationType)
throw()
: _transportationType(transportationType)
{
}
RTI_INLINE
RTI::TransportationType::
TransportationType(TransportationType const & rhs)
throw()
: _transportationType(rhs._transportationType)
{
}
RTI_INLINE
RTI::TransportationType const
RTI::TransportationType::
reliable()
throw()
{
return 1;
}
RTI_INLINE
RTI::TransportationType const
RTI::TransportationType::
bestEffort()
throw()
{
return 2;
}
RTI_INLINE
RTI::TransportationType &
RTI::TransportationType::
operator =(TransportationType const & rhs)
throw()
{
if (this != &rhs)
{
_transportationType = rhs._transportationType;
}
return *this;
}
RTI_INLINE
bool
RTI::TransportationType::
operator==(TransportationType const & rhs) const
throw()
{
return ((_transportationType == rhs._transportationType) ?
true : false);
}
RTI_INLINE
bool
RTI::TransportationType::
operator!=(TransportationType const & rhs) const
throw()
{
return ((_transportationType != rhs._transportationType) ?
true : false);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -