NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
signal-connection.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_UTIL_SIGNAL_CONNECTION_HPP
23
#define NDN_UTIL_SIGNAL_CONNECTION_HPP
24
25
#include "../common.hpp"
26
27
namespace
ndn
{
28
namespace
util {
29
namespace
signal
{
30
34
class
Connection
35
{
36
public
:
37
Connection
();
38
45
void
46
disconnect
();
47
51
bool
52
isConnected
()
const
;
53
59
bool
60
operator==
(
const
Connection
& other)
const
;
61
62
bool
63
operator!=
(
const
Connection
& other)
const
;
64
65
private
:
68
explicit
69
Connection
(weak_ptr<
function
<
void
()>> disconnect);
70
71
template
<
typename
Owner,
typename
...TArgs>
72
friend
class
Signal
;
73
74
private
:
82
weak_ptr<function<void()>> m_disconnect;
83
};
84
85
}
// namespace signal
86
}
// namespace util
87
}
// namespace ndn
88
89
#endif // NDN_UTIL_SIGNAL_CONNECTION_HPP
ndn::util::signal::Connection::operator!=
bool operator!=(const Connection &other) const
Definition:
signal-connection.cpp:63
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::util::signal::Connection
represents a connection to a signal
Definition:
signal-connection.hpp:34
ndn::util::signal::Signal
provides a lightweight signal / event system
Definition:
signal-signal.hpp:50
ndn::util::signal::Connection::disconnect
void disconnect()
disconnects from the signal
Definition:
signal-connection.cpp:40
ndn::util::signal::Connection::isConnected
bool isConnected() const
check if connected to the signal
Definition:
signal-connection.cpp:49
ndn::util::signal::Connection::operator==
bool operator==(const Connection &other) const
compare for equality
Definition:
signal-connection.cpp:55
ndn::util::signal::Connection::Connection
Connection()
Definition:
signal-connection.cpp:30
ndn::util::signal
Definition:
signal-connection.cpp:26
ndnSIM
ndn-cxx
src
util
signal-connection.hpp
Generated on Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11