src: Updating code style to conform (more or less) to ndn-cxx style
Also, adding .clang-format that describes the applied style. Note that
this style requires a slightly customized version of clang-format.
diff --git a/plugins/ip-faces/ndn-udp-face.hpp b/plugins/ip-faces/ndn-udp-face.hpp
index 207eac0..f0c3293 100644
--- a/plugins/ip-faces/ndn-udp-face.hpp
+++ b/plugins/ip-faces/ndn-udp-face.hpp
@@ -29,46 +29,46 @@
namespace ns3 {
namespace ndn {
-
+
/**
* \ingroup ndn-face
* \brief Implementation of UDP/IP NDN face
*
* \see ndn::AppFace, ndn::NetDeviceFace, ndn::Ipv4Face, ndn::TcpFace
*/
-class UdpFace : public Face
-{
+class UdpFace : public Face {
public:
static TypeId
- GetTypeId ();
-
+ GetTypeId();
+
/**
* \brief Constructor
*
* @param node Node associated with the face
*/
- UdpFace (Ptr<Node> node, Ptr<Socket> socket, Ipv4Address address);
+ UdpFace(Ptr<Node> node, Ptr<Socket> socket, Ipv4Address address);
virtual ~UdpFace();
Ipv4Address
- GetAddress () const;
+ GetAddress() const;
virtual bool
- ReceiveFromUdp (Ptr<const Packet> p);
+ ReceiveFromUdp(Ptr<const Packet> p);
////////////////////////////////////////////////////////////////////
// methods overloaded from ndn::Face
virtual std::ostream&
- Print (std::ostream &os) const;
+ Print(std::ostream& os) const;
protected:
// also from ndn::Face
virtual bool
- Send (Ptr<Packet> p);
+ Send(Ptr<Packet> p);
-private:
- UdpFace (const UdpFace &); ///< \brief Disabled copy constructor
- UdpFace& operator= (const UdpFace &); ///< \brief Disabled copy operator
+private:
+ UdpFace(const UdpFace&); ///< \brief Disabled copy constructor
+ UdpFace&
+ operator=(const UdpFace&); ///< \brief Disabled copy operator
private:
Ptr<Socket> m_socket;