NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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
42
class
DummyExtraArg
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
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::util::signal::DummyExtraArg
(implementation detail) a filler for extra argument
Definition:
signal-emit.hpp:42
ndn::util::signal
Definition:
signal-connection.cpp:26
ndnSIM
ndn-cxx
src
util
signal-emit.hpp
Generated on Fri Feb 23 2018 12:30:55 for ndnSIM by
1.8.14