ordertype.i
来自「pRTI 自带的include文件包」· I 代码 · 共 69 行
I
69 行
/***********************************************************************
IEEE 1516.1 High Level Architecture Interface Specification C++ API
File: RTI/OrderType.i
***********************************************************************/
RTI_INLINE
RTI::OrderType::
OrderType(unsigned orderType)
throw()
: _orderType(orderType)
{
}
RTI_INLINE
RTI::OrderType::
OrderType(OrderType const & rhs)
throw()
: _orderType(rhs._orderType)
{
}
RTI_INLINE
RTI::OrderType const
RTI::OrderType::
receive()
throw()
{
return 1;
}
RTI_INLINE
RTI::OrderType const
RTI::OrderType::
timestamp() throw()
{
return 2;
}
RTI_INLINE
RTI::OrderType &
RTI::OrderType::
operator=(OrderType const & rhs)
throw()
{
if (this != &rhs)
{
_orderType = rhs._orderType;
}
return *this;
}
RTI_INLINE
bool
RTI::OrderType::
operator==(OrderType const & rhs) const
throw()
{
return ((_orderType == rhs._orderType) ? true : false);
}
RTI_INLINE
bool
RTI::OrderType::
operator!=(OrderType const & rhs) const
throw()
{
return ((_orderType != rhs._orderType) ? true : false);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?