LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2008 INRIA | 3 * Copyright (c) 2008 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 * \param [in] a One value. | 598 * \param [in] a One value. |
599 * \param [in] b The other value. | 599 * \param [in] b The other value. |
600 * \returns The result of the comparison. | 600 * \returns The result of the comparison. |
601 * @{ | 601 * @{ |
602 */ | 602 */ |
603 inline bool operator == (TypeId a, TypeId b); | 603 inline bool operator == (TypeId a, TypeId b); |
604 inline bool operator != (TypeId a, TypeId b); | 604 inline bool operator != (TypeId a, TypeId b); |
605 bool operator < (TypeId a, TypeId b); | 605 bool operator < (TypeId a, TypeId b); |
606 /** @} */ | 606 /** @} */ |
607 | 607 |
608 #ifdef _WIN32 | 608 ATTRIBUTE_HELPER_HEADER_LIB (TypeId, NS3CORELIB); |
609 ATTRIBUTE_HELPER_HEADER_LIB (TypeId,NS3CORELIB); | |
610 #else | |
611 ATTRIBUTE_HELPER_HEADER (TypeId); | |
612 #endif | |
613 | 609 |
614 } // namespace ns3· | 610 } // namespace ns3· |
615 | 611 |
616 namespace ns3 { | 612 namespace ns3 { |
617 | 613 |
618 TypeId::TypeId () | 614 TypeId::TypeId () |
619 : m_tid (0) { | 615 : m_tid (0) { |
620 } | 616 } |
621 TypeId::TypeId (const TypeId &o) | 617 TypeId::TypeId (const TypeId &o) |
622 : m_tid (o.m_tid) { | 618 : m_tid (o.m_tid) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 } | 658 } |
663 }; | 659 }; |
664 Callback<ObjectBase *> cb = MakeCallback (&Maker::Create); | 660 Callback<ObjectBase *> cb = MakeCallback (&Maker::Create); |
665 DoAddConstructor (cb); | 661 DoAddConstructor (cb); |
666 return *this; | 662 return *this; |
667 } | 663 } |
668 | 664 |
669 } // namespace ns3 | 665 } // namespace ns3 |
670 | 666 |
671 #endif /* TYPE_ID_H */ | 667 #endif /* TYPE_ID_H */ |
LEFT | RIGHT |