X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FINet%2FINet4Address.hh;h=a77903d96142e7139dde3062d073b47b0850ec2b;hb=6f50bf49e282c0528f51faa0a245bbfa2b867399;hp=1c46498554713e7a60a4b631f5ebdbd36b8023f8;hpb=821f1bf89a0e3ef83469c56e4a9a21c39b956cb4;p=senf.git diff --git a/Socket/Protocols/INet/INet4Address.hh b/Socket/Protocols/INet/INet4Address.hh index 1c46498..a77903d 100644 --- a/Socket/Protocols/INet/INet4Address.hh +++ b/Socket/Protocols/INet/INet4Address.hh @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -32,14 +32,15 @@ #include #include #include -#include "Utils/SafeBool.hh" +#include "../../../Utils/safe_bool.hh" +#include "../../../Utils/Tags.hh" //#include "INet4Address.mpp" ///////////////////////////////hh.p//////////////////////////////////////// namespace senf { - /** \brief IpV4 Internet address + /** \brief IPv4 Internet address INet4Address represents a simple IP address. It is modelled as a fixed-size container/sequence of 4 bytes. @@ -56,7 +57,7 @@ namespace senf { */ class INet4Address : public boost::array, - public ComparableSafeBool + public comparable_safe_bool { public: /////////////////////////////////////////////////////////////////////////// @@ -69,14 +70,12 @@ namespace senf { static INet4Address const Loopback; ///< The loopback (127.0.0.1) address static INet4Address const Broadcast; ////< The global broadcast (255.255.255.255) address - enum NoInit_t { noinit }; - /////////////////////////////////////////////////////////////////////////// ///\name Structors and default members ///@{ INet4Address(); ///< Construct an empty address - explicit INet4Address(NoInit_t); ///< Construct uninitialized (!) address + explicit INet4Address(senf::NoInit_t); ///< Construct uninitialized (!) address explicit INet4Address(address_type value); ///< Construct an address constant @@ -187,13 +186,13 @@ namespace senf { static bool match(INet4Address const & addr); }; - /** \brief IpV4 network prefix + /** \brief IPv4 network prefix - This class represents an IpV4 network prefix in CIDR notation. + This class represents an IPv4 network prefix in CIDR notation. */ class INet4Network : public boost::equality_comparable, - public ComparableSafeBool + public comparable_safe_bool { public: ///////////////////////////////////////////////////////////////////////////