📄 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 + -