File indexing completed on 2025-01-18 09:39:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef BOOST_LOG_DETAIL_ID_HPP_INCLUDED_
0017 #define BOOST_LOG_DETAIL_ID_HPP_INCLUDED_
0018
0019 #include <boost/log/detail/config.hpp>
0020 #include <boost/log/detail/header.hpp>
0021
0022 #ifdef BOOST_HAS_PRAGMA_ONCE
0023 #pragma once
0024 #endif
0025
0026 namespace boost {
0027
0028 BOOST_LOG_OPEN_NAMESPACE
0029
0030 namespace aux {
0031
0032
0033 template< typename DescriptorT >
0034 class id
0035 {
0036 public:
0037
0038 typedef typename DescriptorT::native_type native_type;
0039
0040 private:
0041 native_type m_NativeID;
0042
0043 public:
0044 BOOST_CONSTEXPR id() BOOST_NOEXCEPT : m_NativeID(0) {}
0045
0046 explicit id(native_type native) BOOST_NOEXCEPT : m_NativeID(native) {}
0047
0048 native_type native_id() const BOOST_NOEXCEPT { return m_NativeID; }
0049
0050 bool operator== (id const& that) const BOOST_NOEXCEPT
0051 {
0052 return (m_NativeID == that.m_NativeID);
0053 }
0054 bool operator!= (id const& that) const BOOST_NOEXCEPT
0055 {
0056 return (m_NativeID != that.m_NativeID);
0057 }
0058 bool operator< (id const& that) const BOOST_NOEXCEPT
0059 {
0060 return (m_NativeID < that.m_NativeID);
0061 }
0062 bool operator> (id const& that) const BOOST_NOEXCEPT
0063 {
0064 return (m_NativeID > that.m_NativeID);
0065 }
0066 bool operator<= (id const& that) const BOOST_NOEXCEPT
0067 {
0068 return (m_NativeID <= that.m_NativeID);
0069 }
0070 bool operator>= (id const& that) const BOOST_NOEXCEPT
0071 {
0072 return (m_NativeID >= that.m_NativeID);
0073 }
0074 };
0075
0076 }
0077
0078 BOOST_LOG_CLOSE_NAMESPACE
0079
0080 }
0081
0082 #include <boost/log/detail/footer.hpp>
0083
0084 #endif