-// Copyright (C) 2007
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// $Id$
+//
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
#include <boost/array.hpp>
#include <boost/utility.hpp>
#include <boost/type_traits.hpp>
-#include "Utils/SafeBool.hh"
+#include "../../../Utils/safe_bool.hh"
+#include "../../../Utils/Tags.hh"
//#include "MACAddress.mpp"
///////////////////////////////hh.p////////////////////////////////////////
doubles as string literal and as arbitrary data iterator. The iterator constructor can
therefore not be distinguished from initialization with a string literal. Therefore we
need to disambiguate using the named constructors.
+
+ \ingroup addr_group
*/
struct MACAddress
: public boost::array<boost::uint8_t,6>,
- public ComparableSafeBool<MACAddress>
+ public comparable_safe_bool<MACAddress>
{
static MACAddress const Broadcast; ///< The broadcast address
static MACAddress const None; ///< The empty (0) address
- enum NoInit_t { noinit };
-
MACAddress(); ///< Construct zero-initialized address
- MACAddress(NoInit_t); ///< Construct uninitialized (!) address
+ MACAddress(senf::NoInit_t); ///< Construct uninitialized (!) address
explicit MACAddress(boost::uint64_t v); ///< Construct MACAddress constants
static MACAddress from_string(std::string const & s);