NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
signal-emit.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
33 #ifndef NDN_UTIL_SIGNAL_EMIT_HPP
34 #define NDN_UTIL_SIGNAL_EMIT_HPP
35 
36 namespace ndn {
37 namespace util {
38 namespace signal {
39 
43 {
44 };
45 
46 } // namespace signal
47 } // namespace util
48 } // namespace ndn
49 
59 #define DECLARE_SIGNAL_EMIT(signalName) \
60  template<typename ...TArgs> \
61  void emit_##signalName(const TArgs&... args) \
62  { \
63  signalName(args...); \
64  }
65 
71 #define NDN_CXX_SIGNAL_EMIT(signalName, ...) \
72  emit_##signalName(__VA_ARGS__)
73 
76 #define emitSignal(...) \
77  NDN_CXX_SIGNAL_EMIT(__VA_ARGS__, ::ndn::util::signal::DummyExtraArg())
78 
79 #endif // NDN_UTIL_SIGNAL_EMIT_HPP
Copyright (c) 2011-2015 Regents of the University of California.
(implementation detail) a filler for extra argument
Definition: signal-emit.hpp:42