transportationtype.i

来自「pRTI 自带的include文件包」· I 代码 · 共 72 行

I
72
字号
/***********************************************************************
  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 + =
减小字号Ctrl + -
显示快捷键?