X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80221Bundle%2FMIHTypes.hh;h=bd8d174c2b30bffb33f769910b4b4cd7c8098718;hb=9cb871b939efe93e35dd96808d25089399acfc46;hp=64ae62b62126994af0fb9dcc349534cc4717bf57;hpb=3a43b572a2c0028b353d47e86fa7546633d6e2cf;p=senf.git diff --git a/senf/Packets/80221Bundle/MIHTypes.hh b/senf/Packets/80221Bundle/MIHTypes.hh index 64ae62b..bd8d174 100644 --- a/senf/Packets/80221Bundle/MIHTypes.hh +++ b/senf/Packets/80221Bundle/MIHTypes.hh @@ -39,8 +39,8 @@ namespace senf { - class MIHFId - : public boost::variant< boost::blank, senf::MACAddress, senf::INet4Address, + class MIHFId + : public boost::variant< boost::blank, senf::MACAddress, senf::INet4Address, senf::INet6Address, std::string, senf::EUI64 >, public boost::less_than_comparable, public boost::equality_comparable @@ -49,18 +49,18 @@ namespace senf { static MIHFId const Multicast; ///< The multicast (empty) MIHF Id static MIHFId const None; ///< The multicast (empty) MIHF Id enum Type { Empty, MACAddress, INet4Address, INet6Address, String, EUI64 }; - + MIHFId(); ///< Create empty instance. - MIHFId(senf::MACAddress const & addr); ///< Construct id with given MACAddress + MIHFId(senf::MACAddress const & addr); ///< Construct id with given MACAddress MIHFId(senf::INet4Address const & addr); ///< Construct id with given INet4Address MIHFId(senf::INet6Address const & addr); ///< Construct id with given INet6Address MIHFId(std::string const & addr); ///< Construct id with given String MIHFId(senf::EUI64 const & addr); ///< Construct id with given EUI64 - + Type type() const; bool operator==(MIHFId const & other) const; - bool operator<(MIHFId const & other) const; - + bool operator<(MIHFId const & other) const; + private: struct GetTypeVisitor : public boost::static_visitor { Type operator()(boost::blank const &) const { return Empty; }