Project

General

Profile

Actions

Feature #2279

closed

Signal: allow only owner to emit events

Added by Alex Afanasyev over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Utils
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

template<typename Owner, typename ...TArgs>
class Signal
{
...
private:
  void
  operator()(const TArgs&... args) const;

  friend Owner;
};

class Face
{
public:
  Signal<Face, Interest> onReceiveInterest;

protected:
  void
  emit_onReceiveInterest(const Interest& interest)
  {
    onReceiveInterest(interest);
  }
};

Related issues 3 (0 open3 closed)

Related to ndn-cxx - Task #2116: Rewrite EventEmitterClosedJunxiao Shi

Actions
Blocks NFD - Feature #2272: Strategy API: access to FaceTableClosedJunxiao Shi

Actions
Blocks ndn-cxx - Feature #1529: PIB serviceAbandonedYingdi Yu

Actions
Actions

Also available in: Atom PDF